Ok, I tried to search for the above error and the search engine for this site just returned a ton of stuff that mostly seemed irrelevant. The anwer may have been somwhere in the thousands of links returned, but I couldn't find it.
I am trying to bui9ld a nd deploy an application that is currently running on a 4.0.1 server on a new 4.2.3 server. I have set up the connection to my MySQL database and tested it as described in the getting started documentation. When I try to build and deploy it onto the 4.2.3 server I get the following error messages:
16:17:34,844 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
16:17:34,923 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.2.3.GA/server/default/deploy/mysql-ds.xml
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=DefaultDS
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
Some help would be greatly appreciated.
Mike
Apparently, you are using the jndi-name of DefaultDS in mysql-ds.xml - change that name (it is already used in hsqldb-ds.xml).