as a result, I just deployed the jar in a docker container using dockerfile FROM eclipse-temurin:17-jdk-alpine
VOLUME /tmp
COPY ATI.jar ATI.jar
ENTRYPOINT ["java","-jar","/ATI.jar"] the main thing in application.properties in spring.datasource.url is to specify the correct url, I specified the IP of my computer which I learned with the help of the team ip a in linux
2
Answers
as a result, I just deployed the jar in a docker container using dockerfile FROM eclipse-temurin:17-jdk-alpine VOLUME /tmp COPY ATI.jar ATI.jar ENTRYPOINT ["java","-jar","/ATI.jar"] the main thing in application.properties in spring.datasource.url is to specify the correct url, I specified the IP of my computer which I learned with the help of the team ip a in linux
Your Dockerfile is correct.
You need to check which version of JDK was used to build your WAR file.
If the JDK version isn’t supported by Tomcat 9, your application wont run. Tomcat 9 would support JDK 8
Refer the below link and update your JDK or Tomcat version accordingly
https://tomcat.apache.org/whichversion.html