2010-08-04 77 views
0

我用下面的POM配置部署的WAR通過JBoss應用服務器管理控制檯

<plugin> 
     <groupId>org.codehaus.cargo</groupId> 
     <artifactId>cargo-maven2-plugin</artifactId> 
     <version>1.0.2</version> 
     <configuration> 
      <container> 
       <containerId>jboss51x</containerId> 
       <type>remote</type> 
      </container> 
      <configuration> 
       <type>runtime</type> 
       <properties> 
        <cargo.hostname>localhost</cargo.hostname> 
        <cargo.remote.username>****</cargo.remote.username> 
        <cargo.remote.password>****</cargo.remote.password> 
       </properties> 
      </configuration> 
      <deployer> 
       <type>remote</type> 
       <deployables> 
        <deployable> 
        <groupId>${project.groupId}</groupId> 
        <artifactId>${project.artifactId}</artifactId> 
        <type>war</type> 
        <properties> 
         <context>/${project.artifactId}</context> 
        </properties> 
        </deployable> 
       </deployables> 
      </deployer> 
     </configuration> 
     <executions> 
       <execution> 
        <id>start-container</id> 
        <phase>pre-integration-test</phase> 
        <goals> 
         <goal>deployer-deploy</goal> 
        </goals> 
       </execution> 
       <execution> 
        <id>stop-container</id> 
        <phase>post-integration-test</phase> 
        <goals> 
         <goal>deployer-undeploy</goal> 
        </goals> 
       </execution> 
       <execution> 
        <id>verify-deploy</id> 
        <phase>install</phase> 
        <goals> 
         <goal>deployer-deploy</goal> 
        </goals> 
       </execution> 
       <execution> 
        <id>clean-undeploy</id> 
        <phase>pre-clean</phase> 
        <goals> 
         <goal>deployer-undeploy</goal> 
        </goals> 
       </execution> 
      </executions> 
     </plugin> 

它工作正常和部署戰爭到遠程JBoss 5.1.0無法訪問Web項目是UP通過http://localhost:8080/my-web-project/

但是沒有它的蹤影在JBoss AS管理控制檯(http://localhost:8080/admin-console/

它是正常的嗎?

在此先感謝

回答

0

在JBoss遠程部署與貨物已經在很長一段時間只獲部分支持,這或許可以解釋這個問題。這已記錄在 CARGO-416 已在Cargo 1.0.3中修復。

因此,從Cargo 1.0.3開始,JBoss上的遠程部署現在應該完全支持並記錄在專用的JBoss Remote Deployer wiki頁面中。試一試。