3 Replies Latest reply on Feb 10, 2012 5:26 AM by Wolf-Dieter Fink

    Jboss auto deploy plugin cannot connect to localhost:8080

    ~= ziggy =~ Newbie

      I configured the plugin in maven as shown below























      I then trigger it using maven using



          mvn -U clean install package



      It does build and everything works fine but fails when it starts the auto deployment.




          INFO] --- jboss-as-maven-plugin:7.0.2.Final:deploy (default) @ TestApp ---

          INFO] Executing goal deploy on server localhost ( port 8080.

          9-Feb-2012 16:18:46 org.jboss.remoting3.EndpointImpl <clinit>

          NFO: JBoss Remoting version 3.2.0.Beta2

          9-Feb-2012 16:18:46 org.xnio.Xnio <clinit>

          NFO: XNIO Version 3.0.0.Beta2

          9-Feb-2012 16:18:46 org.xnio.nio.NioXnio <clinit>

          NFO: XNIO NIO Implementation Version 3.0.0.Beta2

          INFO] ------------------------------------------------------------------------


          INFO] ------------------------------------------------------------------------

          INFO] Total time: 58.768s

          INFO] Finished at: Thu Feb 09 16:18:52 GMT 2012

          INFO] Final Memory: 7M/18M

          INFO] ------------------------------------------------------------------------

          ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.0.2.Final:deploy (default) on project TestApp: Could not execute goal deploy on TestApp.war. Reason: Could not connect to remote://localhost:8080 in 5000ms. Make sure the server is running and/or consider setting a longer timeout by setting -Dorg.jboss.as.client.connect.timeout=<timeout in ms>. -> [Help 1]


          ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

          ERROR] Re-run Maven using the -X switch to enable full debug logging.




      The error seems to suggest that it could not connect to the application server on localhost:8080. It is running and i can access it. Any ideas?


      Jboss version is 7.0.2

      Maven version is 3.0.4