Confluence Cannot Start Due to 'Unsupported major.minor version 49.0'
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Both Application server and Confluence can run, but accessing Confluence will result in 'Unsupported major.minor version 49.0'. The following appears in the atlassian-confluence.log
:
1
2
3
4
5
javax.servlet.ServletException: org/apache/jsp/default_jsp (Unsupported major.minor version 49.0)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
caused by: java.lang.UnsupportedClassVersionError: org/apache/jsp/default_jsp (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
Cause
This is due to an incompatible JVM version. '49' is a specific JVM error, it means that the Java files in <confluencestd-install>\work were compiled with a different version of Java (for example Java 5). Hence, using an earlier version of JVM (for example JVM 1.4) would be incompatible as the binaries (*.class
) will not be recognized.
Resolution
There are three ways to solve this:
If you really need to use the earlier version Java you would need to force Confluence to rebuild and recompile using that Java version. This is achievable via deleting the <confluence-std-install>\ work\standalone folder and run tomcat again as it will recompile on the run.
Revert to the original Java you were using
Use a later version of Java
Was this helpful?