Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to deploy remotely WAR to JBoss 5.1.0.GA using Cargo maven plugin?
    primarykey
    data
    text
    <p>I am trying to deploy remotely a WAR file to JBoss 5.0.1 GA using Cargo maven plugin but it seems that I can't. I have found similar threads but none of them finally helped me to solve my problem. I follow these <a href="http://cargo.codehaus.org/JBoss+Remote+Deployer#JBossRemoteDeployer-jboss5x6x" rel="nofollow">instructions</a>. Some points that seem to be important are: </p> <blockquote> <p><em>As of CARGO 1.0.3, the way CARGO supports remote deployments on the JBoss Application Server has drastically evolved. Starting from JBoss 5.x, JBoss has a Deployment Manager that can be used for deploying things on the JBoss server.</em></p> </blockquote> <p>My pom file looks like this:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.codehaus.cargo&lt;/groupId&gt; &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt; &lt;version&gt;1.2.0&lt;/version&gt; &lt;configuration&gt; &lt;wait&gt;true&lt;/wait&gt; &lt;container&gt; &lt;timeout&gt;500000&lt;/timeout&gt; &lt;containerId&gt;jboss51x&lt;/containerId&gt; &lt;type&gt;remote&lt;/type&gt; &lt;/container&gt; &lt;configuration&gt; &lt;type&gt;runtime&lt;/type&gt; &lt;properties&gt; &lt;cargo.remote.username&gt;&lt;/cargo.remote.username&gt; &lt;cargo.remote.password&gt;&lt;/cargo.remote.password&gt; &lt;cargo.hostname&gt;localhost&lt;/cargo.hostname&gt; &lt;cargo.rmi.port&gt;8080&lt;/cargo.rmi.port&gt; &lt;cargo.jvmargs&gt;-XX:MaxPermSize=512M -Xmx1512m&lt;/cargo.jvmargs&gt; &lt;/properties&gt; &lt;deployables&gt; &lt;deployable&gt; &lt;groupId&gt;myGroupId&lt;/groupId&gt; &lt;artifactId&gt;myArtifactId&lt;/artifactId&gt; &lt;type&gt;war&lt;/type&gt; &lt;/deployable&gt; &lt;/deployables&gt; &lt;/configuration&gt; &lt;/configuration&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.integration&lt;/groupId&gt; &lt;artifactId&gt;jboss-profileservice-spi&lt;/artifactId&gt; &lt;version&gt;5.1.0.GA&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.jbossas&lt;/groupId&gt; &lt;artifactId&gt;jboss-as-client&lt;/artifactId&gt; &lt;version&gt;5.1.0.GA&lt;/version&gt; &lt;type&gt;pom&lt;/type&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/plugin&gt; </code></pre> <p>When I try to deploy my war (by running mvn cargo:deploy) I am getting this kind of errors:</p> <pre><code>Caused by: javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:8080 and discovery failed with error: javax.na ming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.Comm unicationException: Failed to retrieve stub from server localhost/127.0.0.1:8080 [Root exception is java.io.EOFException]] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1763) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.codehaus.cargo.tools.jboss.JBossDeployer.getDeploymentManager(JBossDeployer.java:185) at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:70) at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:212) ... 23 more Caused by: javax.naming.CommunicationException: Failed to retrieve stub from server localhost/127.0.0.1:8080 [Root exception is java.io.EOFException] javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:8080 and discovery failed with error: javax.naming.CommunicationException:Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Rootexception is javax.naming.CommunicationException: Failed to retrieve stub from server localhost/127.0.0.1:8080 [Root exception is java.io.EOFException]] </code></pre> <p>Do you have any suggestions? It is not even clear to me if I need to install some special plugins or libraries in my JBoss or my pom configuration should be enough to remotely deploy my war file. Probably I am missing something fundamental here.</p> <p>Thank you for your time</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload