1 Reply Latest reply on Jul 8, 2010 9:31 AM by Matt Wringe

    Problem with deployment to GateIN 3.1 Jboss AS

    Marcin Orliński Newbie

      Hi! This is my first post on this forum so please be understanding .

       

      I have some difficulties remotely deploying my .ear file to Jboss AS / GateIN.

      First of course, i start the server and the portal by using ./run.sh -b 0.0.0.0 script.

      Then, build the sources of my project using maven2.

      After building them, i try to deploy them with mvn cargo:deploy. Here is the actual pom.xml piece:

      <plugin>
                              <groupId>org.codehaus.cargo</groupId>
                              <artifactId>cargo-maven2-plugin</artifactId>
                              <version>1.0.1-sr-1</version>
                              <configuration>

       

                                  <wait>true</wait>
                                  <container>
                                      <dependencies>
                                          <dependency>
                                              <location>ear/target/sample-seam-app-${project.version}.ear</location>
                                          </dependency>
                                      </dependencies>
                                      <containerId>jboss51x</containerId>
                                      <type>remote</type>
                                      <timeout>180000000</timeout>
                                  </container>
                                  <configuration>
                                      <type>runtime</type>
                                      <properties>
                                          <cargo.jboss.configuration>default</cargo.jboss.configuration>
                                          <!--
                                              <cargo.jvmargs>-Xms128m -Xmx512m
                                              -XX:MaxPermSize=256m</cargo.jvmargs>
                                          -->
                                          <cargo.hostname>192.168.85.128</cargo.hostname>
                                          <cargo.remote.uri>http://192.168.85.128:8080</cargo.remote.uri>
                                          <cargo.servlet.port>8080</cargo.servlet.port>
                                          <cargo.remote.username>zzz</cargo.remote.username>
                                          <cargo.remote.password>zzz</cargo.remote.password>
                                          <cargo.logging>low</cargo.logging>
                                      </properties>
                                  </configuration>
                                  <deployer>
                                      <type>remote</type>
                                      <deployables>
                                          <deployable>
                                              <location>${appname}</location>
                                              <type>ear</type>
                                              <pingURL>http://192.168.85.128:8080/portal/</pingURL>
                                          </deployable>
                                      </deployables>
                                  </deployer>
                              </configuration>
                          </plugin>

       

      After that, i get an http 500 which is undersandable, because servers throws a:

      java.io.FileNotFoundException: sample-seam-app-0.1.ear doesn't exist. (rootURI: file:/home/e4gle/GateIn-3.1.0-GA/bin/sample-seam-app-0.1.ear, file: /home/e4gle/GateIn-3.1.0-GA/bin/sample-seam-app-0.1.ear)
          at org.jboss.virtual.plugins.context.file.FileSystemContext.getRoot(FileSystemContext.java:220)
          at org.jboss.virtual.VFS.getRoot(VFS.java:292)
          at org.jboss.virtual.VFS.createNewRoot(VFS.java:250)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:826)
          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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$4.run(HtmlAdaptorServlet.java:391)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$4.run(HtmlAdaptorServlet.java:389)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOpByName(HtmlAdaptorServlet.java:387)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOpByName(HtmlAdaptorServlet.java:312)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:106)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:81)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:619)
      02:46:13,702 ERROR [[HtmlAdaptor]] Servlet.service() for servlet HtmlAdaptor threw exception
      java.io.FileNotFoundException: sample-seam-app-0.1.ear doesn't exist. (rootURI: file:/home/e4gle/GateIn-3.1.0-GA/bin/sample-seam-app-0.1.ear, file: /home/e4gle/GateIn-3.1.0-GA/bin/sample-seam-app-0.1.ear)
          at org.jboss.virtual.plugins.context.file.FileSystemContext.getRoot(FileSystemContext.java:220)
          at org.jboss.virtual.VFS.getRoot(VFS.java:292)
          at org.jboss.virtual.VFS.createNewRoot(VFS.java:250)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:826)
          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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$4.run(HtmlAdaptorServlet.java:391)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$4.run(HtmlAdaptorServlet.java:389)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOpByName(HtmlAdaptorServlet.java:387)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOpByName(HtmlAdaptorServlet.java:312)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:106)
          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:81)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:619)

       

      What may be the problem?