Getting exceptions while registering the jdbc driver through cli command.

Solution Verified - Updated -

Issue

  • The domain controller is running on 10.10.10.10 and the slave-controller is running on 20.20.20.20.
    The "Testing_jdbc_dirver" is the server group of "ha" profile and it has the server - "test_server" which is running on slave-controller.The jdbc-driver module "oracle.jdbc" is only present on domain-controller not on the slave-controller.

  • Then try to invoke the following cli command to register the driver.

[domain@10.10.10.10:9999 /] /profile=ha/subsystem=datasources/jdbc-driver=oracleone:add(driver-name="oracleone",driver-module-name="oracle.jdbc",driver-xa-datasource-class-name="oracle.jdbc.xa.client.OracleXADataSource")
{
    "outcome" => "failed",
    "result" => undefined,
    "failure-description" => "JBAS010839: Operation failed or was rolled back on all servers.",
    "rolled-back" => true,
    "server-groups" => {"Testing_jdbc_dirver" => {"host" => {"indra" => {"test_server" => {"response" => {
        "outcome" => "failed",
        "result" => undefined,
        "failure-description" => "JBAS010441: Failed to load module for driver [oracle.jdbc]",
        "rolled-back" => true
    }}}}}}
}
  • During the startup on the slave host of the domain, I can see this error:
[Server:test_server] 11:42:03,779 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 50) JBAS014613: Operation ("add") failed - address: ([
[Server:test_server]     ("subsystem" => "datasources"),
[Server:test_server]     ("jdbc-driver" => "oracleone")
[Server:test_server] ]) - failure description: "JBAS010441: Failed to load module for driver [oracle.jdbc]"

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content