Previously, my Java backend was running with Java version 1.8. I have Tomcat 9 and Java version 11 installed on my Linux server. The backend was running perfectly with Java version 1.8 on the Tomcat 9
server. However, I have updated the Java version in my Spring Boot application from 1.8 to 17. I also updated the installed Java version on the Linux server to OpenJDK 17.0.11. Now, the Tomcat server is running, but the WAR file is not running properly(Although the Tomcat 9 is running, but the java backend is not running ).
I tried with postman directly hit to the Java backend that deployed in Tomcat server but it is give me 404 error message.
Bellow I have mentioned the pom.xml changes
Spring boot version
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.0</version>
Java version
<packaging>war</packaging>
<description>Project. </description>
<properties>
<java.version>17</java.version>
</properties>
Linux server java version
OpenJDK Runtime Environment (build 17.0.11+9-Ubuntu-122.04.1)
I believe when I update the Java version in Linux server, tomcat server configuration also correctly setting up with newest java version.
Can you please help me with this issue, why is my java backend not running on tomcat 9 in linux environment ?
6