7 Replies Latest reply on Feb 3, 2011 1:44 AM by Nicklas Karlsson

    Regarding jboss remote deployment

    Shruti Kulkarni Newbie

      Hello there,

       

      I'm a new jboss user and am trying to use cargo plugin to remote deploy on jboss 6 using RMI.

       

      Here's my cargo mvn config:

       

      <repositories>

      ....

          <repository>

             <id>jboss</id>

             <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>

          </repository>

      </repositories>

      <pluginRepositories>

      ....

        <pluginRepository>

          <id>codehaus-snapshots</id>

          <url>http://ci.repository.codehaus.org/</url>

          <releases>

            <enabled>false</enabled>

          </releases>

          <snapshots>

            <enabled>true</enabled>

          </snapshots>

        </pluginRepository>

       

              </pluginRepositories>

       

      <plugin>

        <groupId>org.codehaus.cargo</groupId>

        <artifactId>cargo-maven2-plugin</artifactId>

        <version>1.0.5-SNAPSHOT</version>

        <configuration>

          <container>

            <containerId>jboss6x</containerId>

            <type>remote</type>

          </container>

          <configuration>

            <type>runtime</type>

            <properties>

              <cargo.hostname>myhost.sample.com</cargo.hostname>

              <cargo.rmi.port>1099</cargo.rmi.port>

            </properties>

          </configuration>

        </configuration>

        <dependencies>

          <dependency>

            <groupId>org.codehaus.cargo</groupId>

            <artifactId>cargo-core-tools-jboss-deployer-5.1-and-onwards</artifactId>

            <version>1.0.5-SNAPSHOT</version>

          </dependency>

          <dependency>

            <groupId>org.jboss.profileservice</groupId>

            <artifactId>jboss-profileservice-spi</artifactId>

            <version>0.2.2</version>

          </dependency>

          <dependency>

              <groupId>org.jboss.jbossas</groupId>

              <artifactId>jboss-as-profileservice-client</artifactId>

              <version>6.0.0.Final</version>

              <type>pom</type>

          </dependency>

          <dependency>

            <groupId>org.jboss.jbossas</groupId>

            <artifactId>jboss-as-client</artifactId>

            <version>5.1.0.GA</version>

            <type>pom</type>

          </dependency>

       

       

       

      When I do a mvn cargo:deploy I get an exception like below. Basically it looks like its trying to onnect to localhost and not the cargo.hostname mentioned in my config. Any pointers will be of help!

       

       

      Exception:

      [INFO] [cargo:deploy {execution: default-cli}]

      log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).

      log4j:WARN Please initialize the log4j system properly.

      [INFO] ------------------------------------------------------------------------

      [ERROR] FATAL ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] Cannot deploy deployable org.codehaus.cargo.container.jboss.JBossWAR@4b721a26

      EU048909.local

      [INFO] ------------------------------------------------------------------------

      [INFO] Trace

      org.codehaus.cargo.util.CargoException: Cannot deploy deployable org.codehaus.cargo.container.jboss.JBossWAR@4b721a26

          at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:116)

          at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

          at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:129)

          at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

          at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

          at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

          at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

          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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

          at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      Caused by: java.lang.Exception: Remote action failed: null (java.lang.reflect.InvocationTargetException)

          at org.codehaus.cargo.tools.jboss.JBossDeployer.checkFailed(JBossDeployer.java:116)

          at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:68)

          at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)

          ... 23 more

      Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

          at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.transferDeployment(StreamingDeploymentTarget.java:294)

          at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.distribute(StreamingDeploymentTarget.java:114)

          at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.distribute(DeploymentProgressImpl.java:178)

          at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:83)

          at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:67)

          ... 24 more

      Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:460)

          at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:359)

          at org.jboss.remoting.Client$4.run(Client.java:651)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.jboss.remoting.Client.connect(Client.java:647)

          at org.jboss.remoting.Client.connect(Client.java:595)

          at org.jboss.remoting.stream.StreamHandler.<init>(StreamHandler.java:77)

          at org.jboss.remoting.ServerInvoker.getStreamHandler(ServerInvoker.java:2113)

          at org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1804)

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:885)

          at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

      Caused by: java.lang.RuntimeException: EU048909.local

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:297)

          at org.jboss.remoting.transport.socket.SocketClientInvoker.<init>(SocketClientInvoker.java:78)

          at org.jboss.remoting.transport.socket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:460)

          at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:359)

          at org.jboss.remoting.Client$4.run(Client.java:651)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.jboss.remoting.Client.connect(Client.java:647)

          at org.jboss.remoting.Client.connect(Client.java:595)

          at org.jboss.remoting.stream.StreamHandler.<init>(StreamHandler.java:77)

          at org.jboss.remoting.ServerInvoker.getStreamHandler(ServerInvoker.java:2113)

          at org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1804)

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:885)

          at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

          at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:216)

          at org.jboss.remoting.Client.invoke(Client.java:1961)

          at org.jboss.remoting.Client.invoke(Client.java:804)

          at org.jboss.remoting.Client.invoke(Client.java:1683)

          at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.transferDeployment(StreamingDeploymentTarget.java:285)

          at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.distribute(StreamingDeploymentTarget.java:114)

          at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.distribute(DeploymentProgressImpl.java:178)

          at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:83)

          at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:67)

          at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)

          at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

          at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:129)

          at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

          at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

          at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

          at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

          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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

          at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      Caused by: java.net.UnknownHostException: EU048909.local

          at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)

          at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:867)

          at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1246)

          at java.net.InetAddress.getAllByName0(InetAddress.java:1197)

          at java.net.InetAddress.getAllByName(InetAddress.java:1128)

          at java.net.InetAddress.getAllByName(InetAddress.java:1064)

          at java.net.InetAddress.getByName(InetAddress.java:1014)

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getAddressByName(MicroSocketClientInvoker.java:1410)

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:538)

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:292)

          at org.jboss.remoting.transport.socket.SocketClientInvoker.<init>(SocketClientInvoker.java:78)

          at org.jboss.remoting.transport.socket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:460)

          at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:359)

          at org.jboss.remoting.Client$4.run(Client.java:651)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.jboss.remoting.Client.connect(Client.java:647)

          at org.jboss.remoting.Client.connect(Client.java:595)

          at org.jboss.remoting.stream.StreamHandler.<init>(StreamHandler.java:77)

          at org.jboss.remoting.ServerInvoker.getStreamHandler(ServerInvoker.java:2113)

          at org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1804)

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:885)

          at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

      java.lang.Exception: Remote action failed: null (java.lang.reflect.InvocationTargetException)

          at org.codehaus.cargo.tools.jboss.JBossDeployer.checkFailed(JBossDeployer.java:116)

          at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:68)

          at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)

          at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

          at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:129)

          at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

          at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

          at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

          at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

          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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

          at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

          at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.transferDeployment(StreamingDeploymentTarget.java:294)

          at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.distribute(StreamingDeploymentTarget.java:114)

          at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.distribute(DeploymentProgressImpl.java:178)

          at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:83)

          at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:67)

          ... 24 more

      Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:460)

          at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:359)

          at org.jboss.remoting.Client$4.run(Client.java:651)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.jboss.remoting.Client.connect(Client.java:647)

          at org.jboss.remoting.Client.connect(Client.java:595)

          at org.jboss.remoting.stream.StreamHandler.<init>(StreamHandler.java:77)

          at org.jboss.remoting.ServerInvoker.getStreamHandler(ServerInvoker.java:2113)

          at org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1804)

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:885)

          at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

      Caused by: java.lang.RuntimeException: EU048909.local

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:297)

          at org.jboss.remoting.transport.socket.SocketClientInvoker.<init>(SocketClientInvoker.java:78)

          at org.jboss.remoting.transport.socket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:460)

          at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:359)

          at org.jboss.remoting.Client$4.run(Client.java:651)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.jboss.remoting.Client.connect(Client.java:647)

          at org.jboss.remoting.Client.connect(Client.java:595)

          at org.jboss.remoting.stream.StreamHandler.<init>(StreamHandler.java:77)

          at org.jboss.remoting.ServerInvoker.getStreamHandler(ServerInvoker.java:2113)

          at org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1804)

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:885)

          at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

          at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:216)

          at org.jboss.remoting.Client.invoke(Client.java:1961)

          at org.jboss.remoting.Client.invoke(Client.java:804)

          at org.jboss.remoting.Client.invoke(Client.java:1683)

          at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.transferDeployment(StreamingDeploymentTarget.java:285)

          at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.distribute(StreamingDeploymentTarget.java:114)

          at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.distribute(DeploymentProgressImpl.java:178)

          at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:83)

          at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:67)

          at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)

          at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:80)

          at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:129)

          at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:58)

          at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:268)

          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

          at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

          at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

          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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

          at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      Caused by: java.net.UnknownHostException: EU048909.local

          at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)

          at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:867)

          at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1246)

          at java.net.InetAddress.getAllByName0(InetAddress.java:1197)

          at java.net.InetAddress.getAllByName(InetAddress.java:1128)

          at java.net.InetAddress.getAllByName(InetAddress.java:1064)

          at java.net.InetAddress.getByName(InetAddress.java:1014)

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getAddressByName(MicroSocketClientInvoker.java:1410)

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:538)

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:292)

          at org.jboss.remoting.transport.socket.SocketClientInvoker.<init>(SocketClientInvoker.java:78)

          at org.jboss.remoting.transport.socket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:460)

          at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:359)

          at org.jboss.remoting.Client$4.run(Client.java:651)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.jboss.remoting.Client.connect(Client.java:647)

          at org.jboss.remoting.Client.connect(Client.java:595)

          at org.jboss.remoting.stream.StreamHandler.<init>(StreamHandler.java:77)

          at org.jboss.remoting.ServerInvoker.getStreamHandler(ServerInvoker.java:2113)

          at org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1804)

          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:885)

          at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

        • 1. Regarding jboss remote deployment
          Nicklas Karlsson Master

          is EU048909.local your host or does the remote host know itself by this?

          • 3. Regarding jboss remote deployment
            Nicklas Karlsson Master

            So it could be either end (possbily the remote) that tries to validate the host and failing?

            • 4. Regarding jboss remote deployment
              Shruti Kulkarni Newbie

              I dont see any errors in jboss server.log file.

               

              Not sure how the local hostname can cause remote deployment issues. Is there some config I need to change? I didnt see any such thin in cargo documentation.

              • 5. Regarding jboss remote deployment
                Shruti Kulkarni Newbie

                You are right... Looks like the remote end is unable to resolve the localhost name. I tried changing the cargo.hostname to an invalid value and it thre a different exception:

                Caused by: javax.naming.CommunicationException: Failed to connect to server test-xyz.com:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server test-xyz.com:1099 [Root exception is java.net.UnknownHostException: test-m-tst-ws-ext003.advertising.aol.com]]

                 

                Is there any property to disable using a localhostname... rather lookup using IP?

                • 6. Re: Regarding jboss remote deployment
                  Shruti Kulkarni Newbie

                  Ok.. I resolved the hostname issue. I got a valid cname for my box and now I dont see this error. But now when I do a "mvn cargo:deploy", a 0 byte size war file gets created on my remote jboss/server/default/deploy folder. and my mvn command takes too long and then throws the below exception:

                   

                  Caused by: java.lang.RuntimeException: java.io.IOException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://myhost.sample.com:42016/]

                      at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.transferDeployment(StreamingDeploymentTarget.java:294)

                      at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.distribute(StreamingDeploymentTarget.java:114)

                      at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.distribute(DeploymentProgressImpl.java:178)

                      at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:83)

                      at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:67)

                      ... 24 more

                  Caused by: java.io.IOException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://myhost.sample.com:42016/]

                      at org.jboss.remoting.stream.StreamHandler.read(StreamHandler.java:382)

                      at org.jboss.vfs.VFSUtils.copyStream(VFSUtils.java:426)

                      at org.jboss.vfs.VFSUtils.copyStream(VFSUtils.java:406)

                      at org.jboss.profileservice.repository.artifact.CopyStreamArtifactTransformer.transform(CopyStreamArtifactTransformer.java:59)

                      at org.jboss.profileservice.repository.artifact.file.MutableFileArtifactRepository.addArtifact(MutableFileArtifactRepository.java:92)

                      at org.jboss.profileservice.repository.artifact.file.MutableFileArtifactRepository.addArtifact(MutableFileArtifactRepository.java:46)

                      at org.jboss.profileservice.plugins.deploy.actions.DeploymentDistributeAction.doPrepare(DeploymentDistributeAction.java:108)

                      at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101)

                      at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)

                      at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)

                      at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)

                      at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)

                      at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.addDeployment(AbstractDeployHandler.java:133)

                      at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.distribute(DeployHandlerDelegate.java:68)

                      at org.jboss.profileservice.management.upload.remoting.DeployHandler.handleStream(DeployHandler.java:200)

                      at org.jboss.profileservice.management.upload.remoting.DeployHandler.handleStream(DeployHandler.java:55)

                      at org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1809)

                      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:885)

                      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

                      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

                      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

                      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

                      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:216)

                      at org.jboss.remoting.Client.invoke(Client.java:1961)

                      at org.jboss.remoting.Client.invoke(Client.java:804)

                      at org.jboss.remoting.Client.invoke(Client.java:1683)

                      at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.transferDeployment(StreamingDeploymentTarget.java:285)

                      ... 28 more

                   

                   

                  Any pointers?

                  • 7. Re: Regarding jboss remote deployment
                    Nicklas Karlsson Master

                    Any firewall in between? (I've not done that much remote deployments so I'm no wizard)