Error "Could not find accessor on XADataSource" while creating Datasource

Solution Unverified - Updated -

Issue

  • Below error are reported in the logs
WARN  [org.jboss.resource.connectionmanager.ManagedConnectionFactoryDeployment] (Thread-12) Error during recovery
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Could not find accessor on XADataSource: ; - nested throwable: (java.lang.NoSuchMethodException: oracle.jdbc.xa.client.OracleXADataSource.setJdbc(java.lang.String)))
...
...
Caused by: org.jboss.resource.JBossResourceException: Could not find accessor on XADataSource: ; - nested throwable: (java.lang.NoSuchMethodException: oracle.jdbc.xa.client.OracleXADataSource.setJdbc(java.lang.String))
    at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXADataSource(XAManagedConnectionFactory.java:621)
    at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:458)
    ... 9 more
Caused by: java.lang.NoSuchMethodException: oracle.jdbc.xa.client.OracleXADataSource.setJdbc(java.lang.String)
    at java.lang.Class.getMethod(Class.java:1605)
    at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXADataSource(XAManagedConnectionFactory.java:591)
    ... 10 more

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.1.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