We are upgrading our confluence from 7.3.5 to 7.13. But we are getting this error.
2021-09-01 11:13:55,944 ERROR [Catalina-utility-1] [ContainerBase.[Standalone].[localhost].[/]] log Exception sending context initialized event to listener instance of class [com.atlassian.confluence.setup.ConfluenceConfigurationListener]
java.lang.UnsupportedClassVersionError: oracle/jdbc/OracleDriver has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [oracle.jdbc.OracleDriver])
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2437)
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:864)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1187)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
Let me jump here as this is one of my favourite topics.
Did you read the upgrade notes for the versions in between? I will invite you to spend sometime doing it as there are configuration changes you need to be aware of.
Let me know if you have any questions.
Best,
Fadoua
Hi @Vaibhav Dingreja Welcome to the Community!
Installing Oracle thin driver will do in your case.
For Oracle 12c R2 use the 12.2.0.x driver (ojdbc8.jar)
For Oracle 19c you can use either ojdbc8.jar or ojdbc10.jar.
Please refer this link for more details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We tried with 10.jar only and we are using oracle 19c and then only we facing this error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please confirm which JDK/JRE version are you using ? As per this link some Oracle Java versions have bugs that impact Confluence. You can't run Confluence on Java 1.8.0_25 and 1.8.0_31
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Below Oracle JRE / JDK versions are supported by Confluence 7.13
Java 1.8
Java 11
Have you tried ojdbc8.jar to see it that works?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishan,
Vaibhav is my colleague.
I have a question here - could you please suggest us what version of ojdbc driver we should use? we are on oracle 19c.
I understand above you suggested to use 8.jar and 10,jar for 19c, But we have different versions for driver as well. Could you suggest us here? As this this link only suggests 8.jar or 10.jar for 19c and not the driver version.
Regards,
Saad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saad,
You can test with below JREs which were used by Atlassian when testing Confluence.
Oracle JDK 8u291
Oracle JDK 11.0.11
Adoptium OpenJDK 8u292b10
The JDBC thin driver mentioned here should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.