When you deploy two projects under Tomcat, only one can access and another 404 error occurs, how to resolve
In the development of new projects, sometimes in order to save time, directly to the project has been done in a copy into the renamed B project, and then in the B Project for the development of functions,
At this time, if you deploy a A, B project to Tomcat, you can only access one of the project, and another 404 error, the following method can be resolved:
Step 1: Locate the Web. xml file under Engineering
Step 2: Modify the properties of the webapprootkey so that inconsistencies between the two projects can be
The Webapprootkey properties of a project are as follows:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>mywebtest.root1</param-value>
</context-param>
The Webapprootkey properties of Project B are as follows:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>myweb.root1</param-value>
</context-param>
Please note that if this attribute is not available under the Web. xml file of project B, add it.
When you deploy two projects under Tomcat, only one can access and another 404 error occurs, how to resolve