5 Replies Latest reply: Dec 13, 2011 9:35 AM by Lukasz Szelag RSS

EAR deployement with Datasource and Maven (Already registered MBean)

Adrien Gooris Newbie

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













                         <track-statements />





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







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











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