Failed to create JDBC connection for jboss EAP 7
hemaananthi May 25, 2017 12:25 AMconfigured the non-xa datasources for Oracle RAC 12c
Connection URL:
jdbc:oracle:thin:@MCPHOST01-scan.sccb.local:1545:SITTEST.sccb.local |
module.xml file:
<?xml version="1.0" ?>
<module xmlns="urn:jboss:module:1.1" name="com.oracle">
<resources>
<resource-root path="ojdbc6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
Error messages are:
Unexpected HTTP response: 500
Request
{
"address" => [],
"operation" => "composite",
"steps" => [
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app1-host"),
("server" => "app1-1"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app1-host"),
("server" => "app1-2"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app1-host"),
("server" => "app1-3"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app1-host"),
("server" => "app1-4"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app1-host"),
("server" => "app1-5"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app2-host"),
("server" => "app2-1"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app2-host"),
("server" => "app2-2"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app2-host"),
("server" => "app2-3"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app2-host"),
("server" => "app2-4"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
},
{
"operation" => "test-connection-in-pool",
"address" => [
("host" => "app2-host"),
("server" => "app2-5"),
("subsystem" => "datasources"),
("data-source" => "SITTEST")
]
}
]
}
Response
Internal Server Error
{
"outcome" => "failed",
"result" => {
"step-1" => {
"outcome" => "failed",
"result" => undefined,
"failure-description" => "WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid",
"rolled-back" => true
},
"step-2" => {"outcome" => undefined},
"step-3" => {"outcome" => undefined},
"step-4" => {"outcome" => undefined},
"step-5" => {"outcome" => undefined},
"step-6" => {"outcome" => undefined},
"step-7" => {"outcome" => undefined},
"step-8" => {"outcome" => undefined},
"step-9" => {"outcome" => undefined},
"step-10" => {"outcome" => undefined}
},
"failure-description" => {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid"}},
"rolled-back" => true
}
command line error:
[Server:app1-1] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:138)
[Server:app1-1] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:134)
[Server:app1-1] at java.security.AccessController.doPrivileged(Native Method)
[Server:app1-1] at javax.security.auth.Subject.doAs(Subject.java:360)
[Server:app1-1] at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:81)
[Server:app1-1] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:157)
[Server:app1-1] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:153)
[Server:app1-1] at java.security.AccessController.doPrivileged(Native Method)
[Server:app1-1] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2.execute(TransactionalProtocolOperationHandler.java:153)
[Server:app1-1] at org.jboss.as.protocol.mgmt.AbstractMessageHandler$ManagementRequestContextImpl$1.doExecute(AbstractMessageHandler.java:363)
[Server:app1-1] at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:472)
[Server:app1-1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[Server:app1-1] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[Server:app1-1] at java.lang.Thread.run(Thread.java:745)
[Server:app1-1] at org.jboss.threads.JBossThread.run(JBossThread.java:320)
[Server:app1-1] Caused by: java.sql.SQLException: Listener refused the connection with the following error:
[Server:app1-1] ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
[Server:app1-1]
[Server:app1-1] at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:743)
[Server:app1-1] at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:662)
[Server:app1-1] at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
[Server:app1-1] at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:560)
[Server:app1-1] at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)
[Server:app1-1] ... 31 more
[Server:app1-1] Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
[Server:app1-1] ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
[Server:app1-1]
[Server:app1-1] at oracle.net.ns.NSProtocolStream.negotiateConnection(NSProtocolStream.java:275)
[Server:app1-1] at oracle.net.ns.NSProtocol.connect(NSProtocol.java:264)
[Server:app1-1] at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1452)
[Server:app1-1] at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:496)
[Server:app1-1] ... 35 more
[Server:app1-1]
[Server:app1-1] 20:25:04,181 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 76) WFLYCTL0013: Operation ("test-connection-in-pool") failed - address: ([
[Server:app1-1] ("subsystem" => "datasources"),
[Server:app1-1] ("data-source" => "SCCBDB")
[Server:app1-1] ]) - failure description: "WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid"