Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1211

GlassFish v3 won't start via cargo daemon in either STANDALONE or EXISTING configuration

    Details

      Description

      When trying to start glassfish3.x from daemon with EXISTING domain, start fails:

      When trying to start glassfish from daemon with STANDALONE domain, it doesn't start start either and when i click on start button under runnng containers section, i get a browser alert popup saying: Error handling your request: org.codehaus.cargo.daemon.CargoDaemonException: Parameter handleId is required.

      Attached screenshots for STANDALONE.

      ------------------------------
      Cargo.log EXISTING
      ------------------------------
      
      Invalid option: X
      Usage: asadmin [-H|--host <host(default:localhost)>]
      [-p|--port <port(default:4848)>] [-u|--user <user(default:admin)>]
      [-W|--passwordfile <passwordfile>]
      [-t|--terse[=<terse(default:false)>]]
      [-s|--secure[=<secure(default:false)>]]
      [-e|--echo[=<echo(default:false)>]]
      [-I|--interactive[=<interactive(default:true)>]]
      [-?|--help[=<help(default:false)>]] [subcommand [options] [operands]]
      Command -Xms128m failed.
      

      --------------------
      AWS-xxxx STANDALONE log
      --------------------

      [Mon Jul 15 01:05:27 WST 2013] No .war packaged web apps found in default
      [Mon Jul 15 01:05:27 WST 2013] daemon> Conext daemon deployed as root
      [Mon Jul 15 01:05:27 WST 2013] > No JSP engine specified, Apache Jasper is assumed by default
      [Mon Jul 15 01:05:27 WST 2013] TJWS: Servlet overriden by rogatkin.web.WebAppServlet@3412605d, for path:/*
      [Mon Jul 15 01:06:10 WST 2013] > Cannot start server
      org.codehaus.cargo.container.ContainerException: Failed to create a GlassFish 3.x standalone configuration
      at org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure(AbstractLocalConfiguration.java:267)
      at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:180)
      at org.codehaus.cargo.daemon.CargoDaemonServlet.startContainer(CargoDaemonServlet.java:536)
      at org.codehaus.cargo.daemon.CargoDaemonServlet.service(CargoDaemonServlet.java:235)
      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:724)
      Caused by: org.codehaus.cargo.util.CargoException: Failed to find file [/home/pablo/.cargo/configurations/gf3/cargo-domain/config/domain.xml]
      at org.codehaus.cargo.util.DefaultFileHandler.getInputStream(DefaultFileHandler.java:599)
      at org.codehaus.cargo.util.DefaultFileHandler.readTextFile(DefaultFileHandler.java:801)
      at org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishStandaloneLocalConfiguration.doConfigure(AbstractGlassFishStandaloneLocalConfiguration.java:135)
      at org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure(AbstractLocalConfiguration.java:263)
      ... 13 more
      Caused by: java.io.FileNotFoundException: /home/pablo/.cargo/configurations/gf3/cargo-domain/config/domain.xml (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:138)
      at org.codehaus.cargo.util.DefaultFileHandler.getInputStream(DefaultFileHandler.java:595)
      ... 16 more
      org.codehaus.cargo.util.CargoException: Failed to find file [/home/pablo/.cargo/configurations/gf3/cargo-domain/config/domain.xml]
      at org.codehaus.cargo.util.DefaultFileHandler.getInputStream(DefaultFileHandler.java:599)
      at org.codehaus.cargo.util.DefaultFileHandler.readTextFile(DefaultFileHandler.java:801)
      at org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishStandaloneLocalConfiguration.doConfigure(AbstractGlassFishStandaloneLocalConfiguration.java:135)
      at org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure(AbstractLocalConfiguration.java:263)
      at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:180)
      at org.codehaus.cargo.daemon.CargoDaemonServlet.startContainer(CargoDaemonServlet.java:536)
      at org.codehaus.cargo.daemon.CargoDaemonServlet.service(CargoDaemonServlet.java:235)
      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:724)
      Caused by: java.io.FileNotFoundException: /home/pablo/.cargo/configurations/gf3/cargo-domain/config/domain.xml (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:138)
      at org.codehaus.cargo.util.DefaultFileHandler.getInputStream(DefaultFileHandler.java:595)
      ... 16 more
      java.io.FileNotFoundException: /home/pablo/.cargo/configurations/gf3/cargo-domain/config/domain.xml (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:138)
      at org.codehaus.cargo.util.DefaultFileHandler.getInputStream(DefaultFileHandler.java:595)
      at org.codehaus.cargo.util.DefaultFileHandler.readTextFile(DefaultFileHandler.java:801)
      at org.codehaus.cargo.container.glassfish.internal.AbstractGlassFishStandaloneLocalConfiguration.doConfigure(AbstractGlassFishStandaloneLocalConfiguration.java:135)
      at org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure(AbstractLocalConfiguration.java:263)
      at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:180)
      at org.codehaus.cargo.daemon.CargoDaemonServlet.startContainer(CargoDaemonServlet.java:536)
      at org.codehaus.cargo.daemon.CargoDaemonServlet.service(CargoDaemonServlet.java:235)
      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:724)
      
      [Mon Jul 15 01:06:10 WST 2013] TJWS: IO error: java.net.SocketException: Broken pipe in processing a request from /127.0.0.1:18000 / java.net.Socket
      [Mon Jul 15 01:06:29 WST 2013] > Cannot start server
      org.codehaus.cargo.daemon.CargoDaemonException: Parameter handleId is required.
      at org.codehaus.cargo.daemon.request.StartRequest.getParameter(StartRequest.java:125)
      at org.codehaus.cargo.daemon.CargoDaemonServlet.startContainer(CargoDaemonServlet.java:402)
      at org.codehaus.cargo.daemon.CargoDaemonServlet.service(CargoDaemonServlet.java:262)
      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:724)
      

      ------------------------------
      Cargo.log STANDALONE
      ------------------------------

      There is no such domain directory: /home/pablo/.cargo/configurations/gf3/cargo-domain
      Command stop-domain failed.
      
      --- LOG END ---
      Using port 4848 for Admin.
      Using port 8080 for HTTP Instance.
      Using port 7676 for JMS.
      Using port 3700 for IIOP.
      Using port 8181 for HTTP_SSL.
      Using port 3820 for IIOP_SSL.
      Using port 3920 for IIOP_MUTUALAUTH.
      Using port 8686 for JMX_ADMIN.
      Using port 6666 for OSGI_SHELL.
      Using port 9009 for JAVA_DEBUGGER.
      Distinguished Name of the self-signed X.509 Server Certificate is:
      [CN=pablo,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US]
      Distinguished Name of the self-signed X.509 Server Certificate is:
      [CN=pablo-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US]
      No domain initializers found, bypassing customization step
      Domain cargo-domain created.
      Domain cargo-domain admin port is 4848.
      Domain cargo-domain admin user is "admin".
      Command create-domain executed successfully.
      

      — LOG END —

        Attachments

          Activity

            People

            • Assignee:
              savasalitokmen Savas Ali Tokmen (Inactive)
              Reporter:
              alitokmen S. Ali Tokmen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: