Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySql and JBoss

 
Me
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic