0 Replies Latest reply on Jan 15, 2013 6:35 AM by Dominik Grupp

    FileNotFoundException with mvn jboss:deploy to remote server (CI)

    Dominik Grupp Newbie

      We try to deploy a war into a CI environment (JBoss 6.1.0 on RHEL 6.3) using the jboss-maven-plugin

       

      When executing mvn jboss:deploy the result is the below FileNotFoundException. The file path which is stated in the exception seems to be composed of two parts:

      1. /opt/jbossOss/da34Infos/miniLogs/ci/

      2. c:\Daten\workspaceIndigoMaven\myapp\target\myapp.war

      I would expect only the second part to be there since that is correctly pointing to the war file on the local Windows 7 system. The first part seems to be the value of system property user.dir (at least in boot.log that value is printed).

       

      What needs to be changed with the configuration to make the deployment work?

       

      pom.xml

       

      <properties>

                <jboss.server.home>/opt/jbossOss/jboss-6.1.0.Final</jboss.server.home>

                <jboss.server.name>cappbrv001.unix.da34.local</jboss.server.name>

        <jboss.server.deployUrl>/jmx-console/HtmlAdaptor?action=invokeOpByName&amp;name=jboss.system:service%3DMainDeployer&amp;methodName=redeploy&amp;argType=java.net.URL&amp;arg0=</jboss.server.deployUrl>

        <jboss.server.undeployUrl>/jmx-console/HtmlAdaptor?action=invokeOpByName&amp;name=jboss.system:service%3DMainDeployer&amp;methodName=undeploy&amp;argType=java.net.URL&amp;arg0=</jboss.server.undeployUrl>

        <jboss.server.port>8280</jboss.server.port>

      </properties>

       

      <plugin>

                <groupId>org.codehaus.mojo</groupId>

                          <artifactId>jboss-maven-plugin</artifactId>

                          <version>1.5.0</version>

                          <configuration>

                                    <jbossHome>${jboss.server.home}</jbossHome>

                                    <hostName>${jboss.server.name}</hostName>

                                    <deployUrlPath>${jboss.server.deployUrl}</deployUrlPath>

                                    <undeployUrlPath>${jboss.server.undeployUrl}</undeployUrlPath>

                                    <port>${jboss.server.port}</port>

                                    <fileNameEncoding>UTF-8</fileNameEncoding>

                                    <serverId>jbossci</serverId>

                                    <fileNames>

                                              <fileName>${project.basedir}\target\${project.build.finalName}.war</fileName>

                                    </fileNames>

                </configuration>

      </plugin>

       

      .settings.xml (maven)

       

      <servers>

                <server>

                          <id>jbossci</id>

                          <username>user</username>

                          <password>password</password>

                </server>

      </servers>

       

      2013-01-15 11:51:22,947 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[HtmlAdaptor]] (http-cappbrv001.unix.da34.local%2F172.19.4.123-8280-5) Servlet.service() for servlet HtmlAdaptor threw exception: java.io.FileNotFoundException: /opt/jbossOss/da34Infos/miniLogs/ci/c:\Daten\workspaceIndigoMaven\myapp\target\myapp.war

              at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:105) [jboss-common-core.jar:2.2.17.GA]

              at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:112) [jboss-common-core.jar:2.2.17.GA]

              at java.net.URL.openStream(URL.java:1031) [:1.6.0_24]

              at org.jboss.deployment.MainDeployer.copy(MainDeployer.java:433) [:6.1.0.Final]

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:371) [:6.1.0.Final]

              at org.jboss.deployment.MainDeployer.redeploy(MainDeployer.java:277) [:6.1.0.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_24]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_24]

              at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_24]

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

              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:388) [:]

              at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_24]

              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:734) [:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.1.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.1.0.Final]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [:6.1.0.Final]

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.1.0.Final]

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.1.0.Final]

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.1.0.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [:6.1.0.Final]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.1.0.Final]

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.1.0.Final]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.1.0.Final]

              at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.1.0.Final]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.1.0.Final]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.1.0.Final]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.1.0.Final]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.1.0.Final]

              at java.lang.Thread.run(Thread.java:679) [:1.6.0_24]