Home > Net >  How to properly deploy war file in tomcat?
How to properly deploy war file in tomcat?

Time:12-06

So Im Deploying the .war in webapps, but at manager/html/WarFileName gives 404 error (https://i.stack.imgur.com/bvtLW.png)

I have tried to check for logs, but catalina.out seems to be fine without any errors. Obvisouly even reaching the path with postman does not work. Do you have any ideas?

CodePudding user response:

If you want auto deployment when you copy files to webapp/ directory. Then make sure that you server.xml file contains the following values:

autoDeploy="true"
unpackWARs="true"

Just search these values in your server.xml file and edit values as shown above

For more info see Deploy A New Application from a Local Path.

CodePudding user response:

Fixed by downgrade tomcat from version 10 to 8; Tomcat 10 keep looking for jakarta packages, while my springboot app was still using Javax Tomcat 10.0.4 doesn't load servlets (@WebServlet classes) with 404 error

  • Related