2012-02-24 11 views
1

Cargo Mavenプラグインを使用してJBoss 5.0.1 GAにWARファイルをリモートでデプロイしようとしていますが、それはできないようです。 私は同様のスレッドを見つけましたが、最終的に私の問題を解決するのに役立つものはありませんでした。 私はこれらに従いますinstructions。重要であると思われるいくつかのポイントは以下のとおりです。CARGO 1.0.3のようCargo Mavenプラグインを使用してWARをJBoss 5.1.0.GAにリモート展開する方法は?

、CARGOは、JBossアプリケーションサーバ上のリモート展開をサポートして仕方が大幅に進化してきました。 JBoss 5.x以降、JBossには、JBossサーバー上に物を配置するために使用できる配置マネージャがあります。

マイポンポンファイルは次のようになります。

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]] 
:私は、エラーのこの種を取得しています:(展開MVN貨物を実行することによって)

<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> 

私は戦争を展開しようとすると、

ご意見はありますか?私のJBossに特別なプラグインやライブラリをインストールする必要があるのか​​、私のpom設定でwarファイルを遠隔配置するだけで十分であるのかどうかはわかりません。おそらく私はここで何か基本的なものを見逃しています。

はお時間を

答えて

0

をいただき、ありがとうございます。最後に、私は解決策を見つけた:)

私が間違っRMIポートを使用しました。デフォルトのものは1099です。 したがって、私はこの<cargo.rmi.port>1099</cargo.rmi.port>のpomファイルを入れて問題を修正しました!

関連する問題