cargo

What is the easiest way to start tomcat in embedded mode from the cargo-maven2-plugin?

I have defined tomcat:catalina:5.5.23 as a dependency to the cargo plugin, however I still get the following exception: java.lang.ClassNotFoundException: org.apache.catalina.Connector at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findCla...

How to deploy a WAR onto an existing Tomcat 6 instance using Cargo?

I installed Tomcat using the Windows installer ages ago and it runs fine as a service on my development laptop. Now I'm mavenising my project and would like to use Cargo (or something similar) to deploy updated WARs onto the local Tomcat. I can't find any fully worked examples of a POM file containing the right XML to do this and am str...

exception when invoking ehcache-server within embedded Jetty via Cargo: WebApplicationProviderImpl could not be instantiated

I'm working on a web application that uses a standalone ehcache server to cache certain data. The ehcache server is accessed via REST (as opposed to SOAP). For functional testing purposes, I need to run an embedded instance of the ehcache server. The echcache-server project itself does this for its own functional tests, using the Cargo ...

Problem using Maven with Cargo plug-in

When I'm using Maven with the cargo plug-ing to handle hot deployments to tomcat, maven fails on the clean task if the .war artifact doesn't currently exist. So if I run mvn clean, then mvn clean package - it errors out. What can I do to have cargo ignore that? C:\work2\Fresh\fresh-ui>mvn clean [INFO] Scanning for projects... [INFO...

Maven2: Cargo plugin hot deployment & Jonas support

I am trying to get the Cargo plugin works on my maven project in order to benefit from war hot-deployment targetting the Jonas server. The official documentation is not that clear on what is supported and what is not (for example you can find this: http://cargo.codehaus.org/Hot+Deployment but also this http://cargo.codehaus.org/JOnAS+4....

Cargo not working over proxy integrated with maven 2

Hello, I have integrated Cargo plugin in my maven 2 project POM.xml. During hot deployment I am unable to connect to my Tomcat container that is available across a proxy. My maven settings.xml already contain proxy setting but cargo is not picking it up. I tried defining proxy settings for Cargo plugin expilicitly but that too didn't ...

Where can I find a complete Maven Cargo plugin example for EJB tests?

For tests of some small JBoss enterprise apps I would like to use JUnit, and the Maven Cargo plugin. (I know that there is also JSFUnit but first I would like to take a closer look at Cargo.) Is there a simple example available online which I could use as a reference for running a JUnit test which invokes a EJB operation using JBoss (4....

How to control a tomcat container during the runtime with maven?

I have a Maven project which executes integration tests for another web-application. This application is deployed and started within a tomcat container. The configuration for this is done in the “cargo-maven2-plugin”: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> ...

Java start JBoss from ant using Cargo: Failed to create a JBoss 4.2.2 existing configuration

Hello, I am trying to start JBoss from ant, using Cargo. In build.xml I have the following targets set: <project name="" default="" basedir="."> <property name="jboss.logging" value="${jboss.home}/server/default/log/jboss.logging.log" /> <property name="jboss.log" value="${jboss.home}/server/default/log" /> <property name="myear" ...

How to deploy remotely EAR to JBoss 5.1.0.GA using Cargo maven plugin?

Has someone successfully deployed EAR remotely to JBoss 5.1.0.GA? My pom.xml configuration is as follows: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.1-SNAPSHOT</version> <configuration> <container> <containerId>jboss51x</containerId> ...

Using maven and embedded jetty: ClassCastException

I have a web-application written in java. I would like to run integration tests on a embedded jetty server. For that purpose I have a maven project (just for running integration tests). For deploying I use cargo-maven2-plugin. But while jetty startup I receive following: java.lang.ClassCastException: org.mortbay.jetty.webapp.WebIn...

How to start/stop/redeploy maven web app using cargo start inside Ecipse

I have Maven2 war project built, I'm using the cargo start plugin, and it works great for deploying the web app. To run the maven command, I use a .bat file in my workspace, and I have en external run config to run the the bat file. I can't seem to stop the server from the Eclipse console, or re-deploy. Does anyone have any advice on ...

How can I use use JSP 2.1 with Cargo maven plugin and Jetty6x embedded?

Hi I have a webapp that is using JSP 2.1, Servlets 2.5 and JSTL 1.2 on Java 6. I do my testing using the maven-jetty-plugin 6.1.1rc1 without any problems. From this link: http://docs.codehaus.org/display/JETTY/JSP+2.0+v+JSP+2.1, I understand that jetty 6 will select JSP 2.1 if on JDK 5+, which is working fine. Here is the relevant sec...

How to deploy a specific child project with cargo:start using maven

Hi experts, I have a developed application and I am just trying to make the build process easy. The POM file for parent looks like this: <parent> <groupId>com.shc.obu.ca</groupId> <artifactId>shcobuca-pom</artifactId> <version>1.1.0</version> </parent> <groupId>com.shc.obu.ca.osol</groupId> <artifactId>apps-pom</artifa...

How use cargo-maven2-plugin deploy to jboss as5?

I trying cargo-maven2-plugin, but I don't deploy in jboss5x I pom.xml is <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.2</version> <configuration> <container> <containerId>jboss51x</containerId> ...

Deployed war in JBoss via cargo-maven2-plugin not accessible via JBoss AS Admin console

I'm deploying a war to a remote JBoss 5.1.0 using the following POM config <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.2</version> <configuration> <container> <containerId>jboss51x</containerId> <type>...

Pointers on how to to get a test jar to run a separate war for testing (perhaps with cargo?)

Hello, Let me explain some of my constraints. We have a war that has a CXF Soap service and a Spring MVC REST Service. Both the CXF and Spring MVC implementations are in a separate jar and are brought in as dependencies. The REST service has its unit tests in its project. I was wondering if there was any way to, while doing something ...

Maven 2 multi module pom

I have recently started migrating my project from ant to maven. I have two module in my application which I am able to build using maven. Now I have automated tests project which use Web Driver for testing UI functionality. What I am trying to do using maven is to build both module wars and deploy them on to tomcat. Then run automation...