"ClassNotFoundException: oracle.xdb.XMLType" in JBoss EAP
Issue
- Deployed the Oracle
ojdbc*.jar
in JBoss EAP -
When accessing the database, encountering a
ClassNotFoundException
... java.lang.NoClassDefFoundError: oracle/xdb/XMLType at oracle.jdbc.oracore.OracleTypeADT.applyTDSpatches(OracleTypeADT.java:1081) ... at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:504) ... Caused by: java.lang.ClassNotFoundException: oracle.xdb.XMLType from [Module ...] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) ... at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) ...
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- 6
- Oracle
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.