We're updating the issue view to help you get more done. 

Can't shoutdown port 8080 for JBoss 5.1 on windows

Description

cargo:server-stop fails with:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 [DEBUG] [talledLocalContainer] Socket Socket[addr=localhost/127.0.0.1,port=8080,localport=4641] for port 8080 managed to connect [DEBUG] [talledLocalContainer] Socket Socket[addr=localhost/127.0.0.1,port=8080,localport=4641] for port 8080 shutdown [DEBUG] [talledLocalContainer] Socket Socket[addr=localhost/127.0.0.1,port=8080,localport=4641] for port 8080 closed [DEBUG] [talledLocalContainer] Connection attempt with socket Socket[unconnected] [DEBUG] [talledLocalContainer] Socket Socket[addr=localhost/127.0.0.1,port=8080,localport=4643] for port 8080 managed to connect [DEBUG] [talledLocalContainer] Socket Socket[addr=localhost/127.0.0.1,port=8080,localport=4643] for port 8080 shutdown [DEBUG] [talledLocalContainer] Socket Socket[addr=localhost/127.0.0.1,port=8080,localport=4643] for port 8080 closed [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to stop the JBoss 5.1.0 container. Server port 8080 did not shutdown within the timeout period [240000] [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.codehaus.cargo.container.ContainerException: Failed to stop the JBoss 5.1.0 container. at org.codehaus.cargo.container.spi.AbstractLocalContainer.stop(AbstractLocalContainer.java:220) at org.codehaus.cargo.maven2.ContainerStopMojo.doExecute(ContainerStopMojo.java:49) at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:279) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 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:597) 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: Server port 8080 did not shutdown within the timeout period [240000] at org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForPortShutdown(AbstractLocalContainer.java:390) at org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForPortShutdown(AbstractLocalContainer.java:301) at org.codehaus.cargo.container.jboss.internal.AbstractJBossInstalledLocalContainer.waitForCompletion(AbstractJBossInstalledLocalContainer.java:158) at org.codehaus.cargo.container.spi.AbstractLocalContainer.stop(AbstractLocalContainer.java:214) ... 20 more org.codehaus.cargo.container.ContainerException: Server port 8080 did not shutdown within the timeout period [240000] at org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForPortShutdown(AbstractLocalContainer.java:390) at org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForPortShutdown(AbstractLocalContainer.java:301)

The problem wasn't available in version 1.0.6

Status

Assignee

Unassigned

Reporter

Hrabur Trndafilov

Components

Fix versions

Priority

Major