Trying to install an already registered mbean.

Another JAVA error here, another simple resolution. In this case two of our JAVA developers were trying to deploy compiled code to run withing JBoss, however were seeing the following error.

ERROR [org.jboss.deployment.MainDeployer] Could not create deployment:

Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=jdbc/epjndi

The error lead us to believe (obviously) that we had two configurations conflicting with one another and this was the case. This was easily found by searching the root path of our JBoss deployment, via…

find . | xargs grep 'epjndi'

The return:

./apps/storefront/WEB-INF/epjndi-ds.xml:  <jndi-name>jdbc/epjndi</jndi-name>
./epjndi-ds.xml:  <jndi-name>jdbc/epjndi</jndi-name>

We moved the epjndi-ds.xml from WEB-INF and walla, issue resolved, hope this helps anyone seeing this issue :)

  1. jaibardhan says:

    Solution——> Just Checked the deployment directory for different database data source files *.ds.Put only required file & remove other database specific file.
    Two different database specific file in same deploy directory create this exception while starting server.

  1. There are no trackbacks for this post yet.

Leave a Reply to SmineeZooke

What is 3 + 4 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)