2010-08-04 4 views
0

Je le déploiement d'une guerre à une distance JBoss 5.1.0 en utilisant la configuration suivante POMguerre Déployé dans JBoss par fret-maven2-plugin pas accessible via JBoss AS console d'administration

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

Il fonctionne très bien et la projet web est via http://localhost:8080/my-web-project/

Mais il n'y a pas trace dans le JBoss AS console d'administration (http://localhost:8080/admin-console/)

est-il normal?

Merci à l'avance

Répondre

0

déploiement à distance sur JBoss AS avec Cargo n'a été que partiellement pris en charge pendant une longue période, et cela pourrait expliquer le problème. Ceci a été enregistré dans CARGO-416 qui a été corrigé dans Cargo 1.0.3. Donc, à partir de Cargo 1.0.3, le déploiement à distance sur JBoss devrait maintenant être entièrement pris en charge et est documenté dans la page wiki dédiée JBoss Remote Deployer. Essaie.

Questions connexes