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

CARGO daemon does not work with Jetty

Description

When one tries to use Jetty with the Cargo Daemon, errors such as:

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 org.codehaus.cargo.container.ContainerException: Failed to start the Jetty 7.x container. Check the [/Users/alitokmen/.cargo/logs/test1/cargo.log] file containing the container logs for more details. at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:188) at org.codehaus.cargo.daemon.CargoDaemonServlet.startContainer(CargoDaemonServlet.java:388) at org.codehaus.cargo.daemon.CargoDaemonServlet.service(CargoDaemonServlet.java:186) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:3432) at rogatkin.web.WebAppServlet$WebAppContextFilter.doFilter(WebAppServlet.java:3053) at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:3404) at rogatkin.web.WebAppServlet.service(WebAppServlet.java:1367) at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2242) at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2167) at Acme.Serve.Serve$ServeConnection.run(Serve.java:1982) at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223) at java.lang.Thread.run(Thread.java:722) Caused by: org.codehaus.cargo.container.spi.jvm.JvmLauncherException: Classpath and jar path may not both be set at org.codehaus.cargo.daemon.jvm.DaemonJvmLauncher.buildCommandLine(DaemonJvmLauncher.java:118) at org.codehaus.cargo.daemon.jvm.DaemonJvmLauncher.getCommandLine(DaemonJvmLauncher.java:360) at org.codehaus.cargo.container.jetty.Jetty7xInstalledLocalContainer.invoke(Jetty7xInstalledLocalContainer.java:190) at org.codehaus.cargo.container.jetty.Jetty7xInstalledLocalContainer.doStart(Jetty7xInstalledLocalContainer.java:91) at org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer.startInternal(AbstractInstalledLocalContainer.java:306) at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:176) ... 12 more org.codehaus.cargo.container.spi.jvm.JvmLauncherException: Classpath and jar path may not both be set at org.codehaus.cargo.daemon.jvm.DaemonJvmLauncher.buildCommandLine(DaemonJvmLauncher.java:118) at org.codehaus.cargo.daemon.jvm.DaemonJvmLauncher.getCommandLine(DaemonJvmLauncher.java:360) at org.codehaus.cargo.container.jetty.Jetty7xInstalledLocalContainer.invoke(Jetty7xInstalledLocalContainer.java:190) at org.codehaus.cargo.container.jetty.Jetty7xInstalledLocalContainer.doStart(Jetty7xInstalledLocalContainer.java:91) at org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer.startInternal(AbstractInstalledLocalContainer.java:306) at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:176) at org.codehaus.cargo.daemon.CargoDaemonServlet.startContainer(CargoDaemonServlet.java:388) at org.codehaus.cargo.daemon.CargoDaemonServlet.service(CargoDaemonServlet.java:186) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:3432) at rogatkin.web.WebAppServlet$WebAppContextFilter.doFilter(WebAppServlet.java:3053) at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:3404) at rogatkin.web.WebAppServlet.service(WebAppServlet.java:1367) at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2242) at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2167) at Acme.Serve.Serve$ServeConnection.run(Serve.java:1982) at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223) at java.lang.Thread.run(Thread.java:722)

... or:

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 org.codehaus.cargo.container.ContainerException: Failed to start the Jetty 7.x container. Check the [/Users/alitokmen/.cargo/logs/test1/cargo.log] file containing the container logs for more details. at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:188) at org.codehaus.cargo.daemon.CargoDaemonServlet.startContainer(CargoDaemonServlet.java:388) at org.codehaus.cargo.daemon.CargoDaemonServlet.service(CargoDaemonServlet.java:186) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:3432) at rogatkin.web.WebAppServlet$WebAppContextFilter.doFilter(WebAppServlet.java:3053) at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:3404) at rogatkin.web.WebAppServlet.service(WebAppServlet.java:1367) at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2242) at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2167) at Acme.Serve.Serve$ServeConnection.run(Serve.java:1982) at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NullPointerException at java.lang.ProcessBuilder.start(ProcessBuilder.java:1010) at org.codehaus.cargo.daemon.jvm.DaemonJvmLauncher.start(DaemonJvmLauncher.java:408) at org.codehaus.cargo.container.jetty.Jetty7xInstalledLocalContainer.invoke(Jetty7xInstalledLocalContainer.java:193) at org.codehaus.cargo.container.jetty.Jetty7xInstalledLocalContainer.doStart(Jetty7xInstalledLocalContainer.java:91) at org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer.startInternal(AbstractInstalledLocalContainer.java:306) at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:176) ... 12 more java.lang.NullPointerException at java.lang.ProcessBuilder.start(ProcessBuilder.java:1010) at org.codehaus.cargo.daemon.jvm.DaemonJvmLauncher.start(DaemonJvmLauncher.java:408) at org.codehaus.cargo.container.jetty.Jetty7xInstalledLocalContainer.invoke(Jetty7xInstalledLocalContainer.java:193) at org.codehaus.cargo.container.jetty.Jetty7xInstalledLocalContainer.doStart(Jetty7xInstalledLocalContainer.java:91) at org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer.startInternal(AbstractInstalledLocalContainer.java:306) at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:176) at org.codehaus.cargo.daemon.CargoDaemonServlet.startContainer(CargoDaemonServlet.java:388) at org.codehaus.cargo.daemon.CargoDaemonServlet.service(CargoDaemonServlet.java:186) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:3432) at rogatkin.web.WebAppServlet$WebAppContextFilter.doFilter(WebAppServlet.java:3053) at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.java:3404) at rogatkin.web.WebAppServlet.service(WebAppServlet.java:1367) at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2242) at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2167) at Acme.Serve.Serve$ServeConnection.run(Serve.java:1982) at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223) at java.lang.Thread.run(Thread.java:722)

Status

Assignee

Savas Ali Tokmen

Reporter

Savas Ali Tokmen

Components

Fix versions

Affects versions

1.3.0

Priority

Major