Get the App
SLTechnology News&Howtos  ›  Servers  › 

The pit of tomcat and jdk compatibility

Shulou Source: shulou.com Published: 2022-06-02 21:35:30 09月22日 Update

Today, help students troubleshoot and report errors: at first, I thought it was a file configuration error, but the later problem suggested that the version was incompatible.

He runs in jdk1.8.0.1+tomcat8.5.1 (which should not actually report an error), but still reports a version incompatibility problem. Finally, the tomcat is upgraded to 9.0 successfully.

Generally consistent with the jdk version, that is to say, tomcat7 uses the jdk7 version; tomcat8 uses the jdk8 version (guess: but if the servlet-api in the maven is higher than the servlet-api in the tomcat, there will be an incompatible problem, solve this problem: 1. Keep the servlet-api version in the pom.xml file consistent with the servlet-api in the tomcat. 2. Upgrade tomcat to 9.0).

In general, it can be analogous in turn.

Tomcat8.0 is at least compatible with versions above jdk1.7,jdk1.7.

The tomcat version cannot be lower than the minimum version of a compatible jdk:

Optimal configuration:

Download the official website of tomcat, with compatibility list

Tomcat v7.0 and support-> Java EE 6 and above

Tomcat v8.0 and support-> Java EE 7 and above

Tomcat v9.0 and support-> Java EE 8 and above

If there is a different solution, please leave a message.

Tags: Version problem minimum consistent file upgrade configuration different success that is classmate actual actually situation environment or hint guess and so on Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Huawei Shulou Technology Linux OPPO Reno