JBAS014612 when enabling a datasource in JBoss
Issue
JBAS014612encountered similar to:
[Server:server-one] 12:47:21,455 ERROR [org.jboss.as.controller.management-operation] (host-controller-connection-threads - 2) JBAS014612: Operation ("enable") failed - address: ([
[Server:server-one] ("subsystem" => "datasources"),
[Server:server-one] ("data-source" => "OracleDS")
[Server:server-one] ]): org.jboss.msc.service.DuplicateServiceException: Service jboss.data-source-config.OracleDS is already registered
- invalid state after an
:disableandrestart-servers().
/profile=full/subsystem=datasources/data-source=Test1:disable
/server-group=main-server-group:restart-servers()
# check status
/profile=full/subsystem=datasources/data-source=Test1:read-resource(recursive=true) -> correctly shown as disabled
/host=master/server=server-one/subsystem=datasources/data-source=Test1:read-resource(recursive=true) -> Incorrectly shown as enabled
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.1.0
datasourceas defined injboss-as-datasources_1_0.xsdjboss-as-datasources_1_1.xsd
datasourcehas previously been disabled- CLI command
data-source --profile=full enable --name=$JNDI_Name
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.
