Hi guys,

I was looked the maven-jetty-plugin and i discovered that it was possible
running in daemon mode. That it solves my problem already that i want to
start the jetty before of execute the integration tests.

[...]
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
       <daemon>true</daemon>
</configuration>
</execution>
[...]

On Tue, May 25, 2010 at 1:06 PM, Everton Cardoso <ercard...@gmail.com>wrote:

> Hi guys,
>
> I have a problem! I'm trying start a jetty6x embedded with the maven
> using the cargo-maven2-plugin, but, when i execute the command: mvn
> cargo:start , it throw a exception:
>
> [INFO] Trace
> org.codehaus.cargo.container.ContainerException: Failed to start the
> Jetty 6.x Embedded container.
> at
> org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:168)
> ...
> Caused by: org.codehaus.cargo.container.ContainerException: Failed to
> create Jetty Server instance
> at
> org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalContainer.createServerObject(AbstractJettyEmbeddedLocalContainer.java:78)
> ....
> Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.Server
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>
> My configuration in the pom.xml contains:
>
> <plugin>
> <groupId>org.codehaus.cargo</groupId>
> <artifactId>cargo-maven2-plugin</artifactId>
> <version>1.0</version>
> <configuration>
> <container>
> <containerId>jetty6x</containerId>
> <type>embedded</type>
> </container>
> </configuration>
> </plugin>
>
>
> Anyone know what's the problem?
>
> att,
>
> --
> Everton Cardoso
> http://vertocardoso.wordpress.com
>

att,

-- 
Everton Cardoso
http://vertocardoso.wordpress.com

Reply via email to