org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.mysql is already registered
Issue
- Using the CLI to register the mysql driver, we get an error.
- Using the jar installer and adding the mysql driver during install, we get an error.
10:15:02,335 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 25) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
10:15:02,344 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 25) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.fabric.jdbc.FabricMySQLDriver (version 5.1)
10:15:02,346 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 25) JBAS014612: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "mysql")
]): org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.mysql is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc.jar:1.0.4.GA-redhat-1]
...
- We're trying to create a new JDBC dataSource using cli command and we're getting this error :
{
"outcome" => "failed",
"failure-description" => "JBAS014749: Manejador de operaciones fallido: Service jboss.jdbc-driver.XYZDriver is already registered",
"rolled-back" => true
}
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- MySQL JDBCdriver
- 5.1.30 and up
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
