Remote deployment maven-jboss-plugin / cargo
Bonjour,
j'essaie de déployer mon ApplicationGedBusinnes.ear en remote sur un serveur jboss-portal-2.6.3 depuis mon serveur continuum mais rien à faire !
voici mon pom.xml :
Citation:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<jbossHome>/usr2/jboss-portal-2.6.3.GA</jbossHome>
<serverName>jboss.default</serverName>
<hostName>artemis</hostName>
<port>8080</port>
<type>remote</type>
<deployUrlPath>
<![CDATA[
/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=
]]>
</deployUrlPath>
<undeployUrlPath>
<![CDATA[
/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.net.URL&arg0=
]]>
</undeployUrlPath>
<!--<fileName>//home/tomcat/.m2/repository/com/macif/ged/application-ged-business-ear/1.0.0-SNAPSHOT/application-ged-business-ear-1.0.0-SNAPSHOT.ear</fileName>-->
<!--<fileName>/usr2/apache-tomcat-6.0.16/webapps/continuum/WEB-INF/working-directory/37/application-ged-business-ear/target/ApplicationGedBusiness.ear</fileName>-->
<fileNames>
<param>${project.build.directory}/${project.build.finalName}.${project.packaging}</param>
</fileNames>
<!--<fileName>ApplicationGedBusiness.ear</fileName>-->
</configuration>
</plugin>
Voici une partie de mon fichier settings :
Code:
1 2 3 4 5
| <server>
<id>default</id>
<username>admin</username>
<password>admin</password>
</server> |
login/mdp qui se trouve sur mon serveur jboss dans :
/usr2/jboss-portal-2.6.3.GA/server/default/conf/props/jmx-console-users.properties.
Voilà le message d'erreur que j'obtiens lorsque j'effectue la commande : mvn jboss:deploy :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| tomcat@atlas:/usr2/apache-tomcat-6.0.16/webapps/continuum/WEB-INF/working-directory/37/application-ged-business-ear$ mvn jboss:deploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jboss'.
[INFO] ------------------------------------------------------------------------
[INFO] Building ApplicationGedBusinessEar
[INFO] task-segment: [jboss:deploy]
[INFO] ------------------------------------------------------------------------
[INFO] [jboss:deploy]
[INFO] Deploying /usr2/apache-tomcat-6.0.16/webapps/continuum/WEB-INF/working-directory/37/application-ged-business-ear/target/ApplicationGedBusiness.ear to JBoss.
[INFO] No server specified for authentication - using defaults
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Mojo error occurred: Server returned HTTP response code: 500 for URL: http://artemis:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:/usr2/apache-tomcat-6.0.16/webapps/continuum/WEB-INF/working-directory/37/application-ged-business-ear/target/ApplicationGedBusiness.ear
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Aug 04 11:25:25 GMT+01:00 2008
[INFO] Final Memory: 3M/77M
[INFO] ------------------------------------------------------------------------ |
Je pense que le problème est que le fichier ApplicationGedBusiness.ear n'existe pas sur le serveur Jboss distant du coup il n'arrive pas à le déployer ce qui est normal...
Je pense qu'il faut :
1/ copier le fichier sur le serveur distant.
2/ le déployer.
Mais je ne trouve pas les bons paramètres avec le plugin : maven-jboss-plugin.
J'ai également tenté avec Cargo avec cette configuration :
commande :
mvn org.codehaus.cargo:cargo-maven2-plugin:deploy
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>0.3</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>deployer-deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<container>
<containerId>jboss4x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
</configuration>
<deployer>
<type>remote</type>
<deployables>
<deployable>
<groupId>com.macif.ged</groupId>
<artifactId>application-ged-business-ear</artifactId>
<pingURL>http://artemis.inservio.local:8080</pingURL>
<type>ear</type>
</deployable>
</deployables>
</deployer>
</configuration>
</plugin> |
Artemis étant mon serveur JBoss distant... je n'ai pas eu plus de succès...
Voici le message d'erreur :
Code:
org.codehaus.cargo.container.ContainerException: Failed to deploy to [http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:%2Fusr2%2Fapache-tomcat-6.0.16%2Fwebapps%2Fcontinuum%2FWEB-INF%2Fworking-directory%2F37%2Fapplication-ged-business-ear%2Ftarget%2FApplicationGedBusiness.ear]
Dans ce message d'erreur déjà il y a http://localhost:8080 alors que j'essaie de déployer sur artemis !!! il ne comprend rien à ce que je lui ai mentionné dans le pom.xml.
Quelqu'un a-t-il réussi un déploiement distant d'ear ????
C'est urgent,
Merci d'avance.