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?