This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes MySql and JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "MySql and JBoss" Watch "MySql and JBoss" New topic
Author

MySql and JBoss

Me
Ranch Hand

Joined: Dec 01, 2003
Posts: 51
I am trying to configure MySql service in JBoss, When I start JBoss, I get following exception,

2004-07-21 12:45:44,328 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/C:/jboss3.2.5/server/default/deploy/jms/mysql-jdbc2-service.xml

org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=DestinationManager
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:69)
....



I have copied
..\jboss-3.2.3\docs\examples\jms\mysql-jdbc2-service.xml to
..\jboss-3.2.3\server\default\deploy\jms

and I have removed.
..\jboss-3.2.3\server\default\hsqldb-ds.xml

Here is my ..\jboss-3.2.3\server\default\deploy\mysql-ds.xml

<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/hfejb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>user</user-name>
<password>mysecret</password>
</local-tx-datasource>

</datasources>

Any ideas/help is greatly appreciated.
Nicolas Taillepied
Greenhorn

Joined: Jul 23, 2004
Posts: 8
Hi Muzammil,
have you removed hsqldb-jdbc2-service.xml from ..\jboss-3.2.3\server\default\deploy\jms\ ??
Maybe your problem comes from this file...
Good luck
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MySql and JBoss