JBAS014612 when enabling a datasource in JBoss

Solution Verified - Updated -

Issue

  • JBAS014612 encountered 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 :disable and restart-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
  • datasource as defined in
    • jboss-as-datasources_1_0.xsd
    • jboss-as-datasources_1_1.xsd
  • datasource has 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.