8.3p2 upgrade Java 8 to 11

We upgraded an 8.3p2 instance from Java 8 to Java 11 (no IIQ upgrade) and we are seeing the error java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.OracleDriver in the sailpoint + tomcat logs.

We have oracle.jdbc.driver.OracleDriver set in build/iiq.properties so that’s not the issue as other posts on Compass suggested.

The ojdbc8.jar driver is compatible with both JDK8+11 and present everywhere I expect it to be.

What’s strange is ./iiq console works intermittently. Sometimes it loads successfully, other times it gives this error:

WARN main springframework.context.support.ClassPathXmlApplicationContext:559 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [configBeans.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.OracleDriver
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [configBeans.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.OracleDriver

How can we further troubleshoot this?

Can you check the java version and java home path while it works?

Hi @gageet

Please update your Oracle jar to ojdbc11.jar and test again.

JDBC and UCP Downloads page (oracle.com)

We encountered a similar issue that was resolved by updating the ojdbc.jar to a newer version

Ok, we will test replacing lib/ojdbc8.jar and /web/WEB-INF/lib/ojdbc8.jar with ojdbc10.jar
Are you removing the /build/extract/WEB-INF/lib-connectors/dbRequired3rdParty/ojdbc8.jar generated by the build?

@gageet pls check these threads if you haven’t checked. i am hoping it’s iiq.properties update required.

Issue launching IIQ console using ojdbc8.jar post upgrade to 8.3p1 - Compass (sailpoint.com)

Error while launching IIQ console post upgrade to 8.3p2 - Compass (sailpoint.com)

Solved: Upgrading from ojdbc8.jar didn’t help. The issue was /web/WEB-INF/lib/jconn4.jar used for a Sybase integration. Removing it resolved the issue, though I don’t know why since oracle.jdbc.OracleDriver is not a class in that JAR.

Compass posts on how to deal with this:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.