Hi guys

I created a maven2 archetype with cargo using the command:

mvn archetype:create -DarchetypeGroupId=org.codehaus.cargo
-DarchetypeArtifactId=cargo-archetype-webapp-functional-tests-module
-DarchetypeVersion=<version> -DgroupId=<application groupId>
-DartifactId=<application artifactId>

as showed in the instructions in the cargo webpage.
problems:

1- the package it uses is different form the package refered by the
group-id and the one used for the classes, but the package declaration
uses another one (that i can't remember as I changed already)
2- After correcting the above it runs ok but I get a :

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.yelltest.it.WebappTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.546 sec

Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [cargo:stop {execution: stop}]
[INFO] [beddedLocalContainer] Jetty 6.x Embedded is stopping...
[INFO] [.JettyExecutorThread] Ignoring unimplemented method server.destroy()
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to stop the Jetty 6.x Embedded container.
Deployable failed to finish deploying within the timeout period
[120000]. The Deployable state is thus unknown.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.codehaus.cargo.container.ContainerException: Failed to stop the
Jetty 6.x Embedded container.
        at 
org.codehaus.cargo.container.spi.AbstractLocalContainer.stop(AbstractLocalContainer.java:185)
        at 
org.codehaus.cargo.maven2.ContainerStopMojo.execute(ContainerStopMojo.java:48)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.codehaus.cargo.container.ContainerException: Deployable
failed to finish deploying within the timeout period [120000]. The De
ployable state is thus unknown.
        at 
org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch(DeployerWatchdog.java:109)
        at 
org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion(AbstractLocalContainer.java:205)
        at 
org.codehaus.cargo.container.spi.AbstractLocalContainer.stop(AbstractLocalContainer.java:180)
        ... 19 more
[INFO] [.JettyExecutorThread] Ignoring unimplemented method server.destroy()

On 27/08/07, Manuel J. Recena Soto <[EMAIL PROTECTED]> wrote:
> Hi Alexander:
>
> On Sat, 25 Aug 2007 20:14:39 -0400, Alexander Sack wrote
> > Does anyone have Cargo working?  If so, could you post a sample POM?
> >  I would really appreciate it.
> >
> > -aps
> >
> > --
> > "What lies behind us and what lies in front of us is of little
> > concern to what lies within us." -Ralph Waldo Emerson
>
> This is a example with Cargo:
> http://www.manuelrecena.com/blog/uploads/code_snippets/cargo_plugin_conf.txt
>
> Regards,
>
> --
> Manuel J. Recena Soto
> * www.manuelrecena.com[/blog]
> * [EMAIL PROTECTED]
> * +34 609710280 (ES)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to