Cargomavenプラグインを使用してWARファイルをJBoss5.0.1GAにリモートでデプロイしようとしていますが、できないようです。私は似たようなスレッドを見つけましたが、それらのどれも最終的に私の問題を解決するのに役立ちませんでした。私はこれらの指示に従います。重要と思われるいくつかのポイントは次のとおりです。
CARGO 1.0.3以降、CARGOがJBossApplicationServerでのリモートデプロイメントをサポートする方法は大幅に進化しました。JBoss 5.x以降、JBossにはJBossサーバーに物をデプロイするために使用できるDeploymentManagerがあります。
私のpomファイルは次のようになります。
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.2.0</version>
<configuration>
<wait>true</wait>
<container>
<timeout>500000</timeout>
<containerId>jboss51x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.remote.username></cargo.remote.username>
<cargo.remote.password></cargo.remote.password>
<cargo.hostname>localhost</cargo.hostname>
<cargo.rmi.port>8080</cargo.rmi.port>
<cargo.jvmargs>-XX:MaxPermSize=512M -Xmx1512m</cargo.jvmargs>
</properties>
<deployables>
<deployable>
<groupId>myGroupId</groupId>
<artifactId>myArtifactId</artifactId>
<type>war</type>
</deployable>
</deployables>
</configuration>
</configuration>
<dependencies>
<dependency>
<groupId>org.jboss.integration</groupId>
<artifactId>jboss-profileservice-spi</artifactId>
<version>5.1.0.GA</version>
</dependency>
<dependency>
<groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-as-client</artifactId>
<version>5.1.0.GA</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
(mvncargo:deployを実行して)warをデプロイしようとすると、次のようなエラーが発生します。
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]]
何か提案はありますか?JBossに特別なプラグインやライブラリをインストールする必要があるのか、pom構成でwarファイルをリモートでデプロイするのに十分なのか、私にはわかりません。おそらく私はここで基本的な何かを見逃しています。
お時間をいただきありがとうございます