Ask a Question

java.lang.NoClassDefFoundError: oracle/xdb/XMLType error for tests run with Ready Api maven plugin

anamv
New Contributor

java.lang.NoClassDefFoundError: oracle/xdb/XMLType error for tests run with Ready Api maven plugin

I have a test suite with JDBC steps that it's failling in Jenkins that uses maven plugin with error java.lang.NoClassDefFoundError: oracle/xdb/XMLType even if I'm using the correct driver. The same driver is used in other projects that are not failing and also for the same suite, when it is run from test runner it is not failing.

1 REPLY 1
Nastya_Khovrina
SmartBear Alumni (Retired)

Hi anamv,

 

According to the Receiving class not found exception of oracle.xdb.XMLType for Oracle DB query? article, the issue is related to the required database library files. You may need to add the following files to the classpath:

- xdb.jar 

- xdb6.jar (since Oracle Database 11.2.0.3)

-  xmlparserv2.jar

 

Please see the following articles for details: 

https://mvnrepository.com/artifact/oracle/xdb/1.0

https://developer.ibm.com/answers/questions/208041/why-is-database-transfer-to-oracle-failing-on-web...

https://stackoverflow.com/questions/25208239/java-returning-xmltype-data-from-storedprocedure-usage-...

 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: