EAR deployement with Datasource and Maven (Already registered MBean)
modzful Nov 7, 2011 4:59 AMHi all,
I'm working on a web application, wich is contained in an EAR, with a -ds file.
A maven task is launched by Jenkins to have continuous integration.
This is the code of my -ds file :
<?xml version="1.0" encoding="UTF-8"?>
<!-- DEV -->
<datasources>
<local-tx-datasource>
<jndi-name>pmusifDS</jndi-name>
<connection-url>jdbc:sasiom://${ds.server}:${ds.port}</connection-url>
<driver-class>com.sas.rio.MVADriver</driver-class>
<user-name>${ds.username}</user-name>
<password>${ds.password}</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements />
<prepared-statement-cache-size>32</prepared-statement-cache-size>
</local-tx-datasource>
</datasources>
And this is the code of my jboss-app.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
<jboss-app>
<module>
<service>pmusif-ds.xml</service>
</module>
</jboss-app>
And the application.xml :
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
<display-name>sif-ear</display-name>
<module>
<web>
<web-uri>sif-war-1.0-SNAPSHOT.war</web-uri>
<context-root>pmu-sif</context-root>
</web>
</module>
<library-directory>lib</library-directory>
</application>
I'm deploying through Maven with cargo plugin. Each time I want to launch a Jenkins task (wich is deploying with cargo plugin), I have build error because of this error (considering I want to deploy without restarting the jBoss):
Trying to install an already registered Mbean : pmusifDS
I want to know if it's a conception problem, a configuration problem, or anything else...
I currently have no solution to face this problem :/
Configuration : jBoss 4.2.3GA
Ce message a été modifié par: Adrien Gooris
-
screenshot.JPG 33.5 KB