.War Works to deploy on Windows but fails to deploy on a Linux server (Tomcat 7)

本小妞迷上赌 提交于 2019-12-03 16:20:53

It were 2 problems actually causing this issue.

To solve the issue I had to:

*Check the web.xml VERY carefully after any misstakes like e.g. servlets that do not exist our already defined things e.g. driver being defined twice, meaning it's defined somewhere already AND also in the web.xml.

*Remove servlet in the ..\WEB-INF\lib folder of the project. E.g. javax.servlet-api-3.0.1.jar + javax.servlet-api-3.1.0.jar were removed in this case. NOTE I even had jars that can conflict with each other on project-level but still I was able to deployed successfully on Windows but not on Linux.

Trust me both of the things I mentioned can be a issue, most likely if you take over work from other devs that have done this miss.

Just had the same issue and synchronizing the Java version for the Maven build (from 1.8 to 1.10) and the running environment (1.10) solved it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!