Tomcat deploys two identical projects and reports 404 error

 

Recently, two projects have been released on the test server, but they have not been able to get up.

The background keeps reporting file parsing errors (such as struts, spring file parsing, etc.) (through the network answer, I know that the most likely problem is jar conflict. The jars needed to start the two projects are the same, and the first one can be accessed normally. But the second reported a 404 error)

The following article (solution) is shared with you:

 

1.  Host configuration

 

2. Modify Web.xml and log4j.properties in each project (each corresponding)

(In the project, the log file is not written under the web application, so this step can be ignored)



 

3.  Modify the Tomcat configuration (you can start from this step)

Find the Tomcat installation directory, such as D:\tomcat7 (this is not the directory in the text, for reference only)

(1) Create a new folder (shared\lib) with two directories



 

(2)  Modify the catalina.properties file in the conf directory in the Tomcat installation directory

          Find the shared.loader parameter

 


 

(3) Copy all the Jar packages in the project lib to the shared/lib folder, and delete all the Jar packages in other projects

 

 

Finally, thank you for your sharing!

http://blog.csdn.net/u012547633/article/details/48436961

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326960807&siteId=291194637