Hi,
I also have an Issue with JBoss and MySQL. I followed the above mentioned hints but I could not get it running.
I use the camunda-bpm-jboss-7.2.0 Server.
I created the folders and the files:
camunda-bpm-jboss-7.2.0\server\jboss-as-7.2.0.Final\modules\system\layers\base\com\mysql\main
- module.xml
- and added the mysql-connector-java-5.1.34-bin.jar
I manually created the mysql-connector-java-5.1.34-bin.jar.index file as supposed by [1]
My module.xml contains the following:
<code>
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.mysql">
<resources>
<resource-root path="mysql-connector-java-5.1.34-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
<code>
My standalone.xml is configured the following way:
<code>
<subsystem xmlns="urn:jboss:domain:datasources:1.1">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<datasource jta="true" jndi-name="java:jboss/datasources/ProcessEngine" pool-name="ProcessEngine" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/camundaTestDB</connection-url>
<driver>com.mysql</driver>
<security>
<user-name>camundadbuser</user-name>
<password>camundapw</password>
</security>
</datasource>
<drivers>
<driver name="com.mysql" module="com.mysql">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
<code>
When I start the Server I get the following error(s):
13:58:09,791 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 26) JBAS014612: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "com_mysql")
]): org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.com_mysql is already registered
13:58:10,614 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) "JBAS014784: Failed executing subsystem datasources boot operations"
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.jboss.datasources.ProcessEngine (missing) dependents: [service org.camunda.bpm.platform.process-engine.default]
Can somebody tell me what I did wrong?
Thank you!
Karl-Heinz
[1]
https://developer.jboss.org/wiki/JBossAS720-JavaEEApplicationDevelopment-02HowToConfigureMySqlDataSource