http://woshixy.blog.51cto.com/5637578/1086352
First, the problem found
Create a new dynamic Web project in Eclipse, configure the local tomcat and write the code and choose Run on Server, but after running it, it is found that the project name is not present in the WebApps installation directory of Tomcat.
Second, verification
It is clear that the project was not automatically deployed to Tomcat's WebApps but was deployed in a different container. Enter http://localhost:8080/webDemo/login.jsp in the built-in browser to open normally. However, when you open http://localhost:8080 on an external browser, the desired kitten screen does not appear.
Third, Reason
Unlike MyEclipse, Eclipse does not deploy projects to WebApps in the Tomcat installation directory by default, but is deployed by default to the working directory. METADATA\.PLUGINS\ORG.ECLIPSE.WST.SERVER.CORE\TMP1 \wtpwebapps, the Tmp1 folder contains information about the item.
Iv. modification
In order for the project to be deployed by default to WebApps in the Tomcat installation directory, show View->servers-> finds the tomcat-> that needs to be modified right-click
① Stop the Tomcat server within Eclipse (stop)
② Delete the items deployed in the container (add and remove)
③ clearing the container for data (clean)
④ opening the Tomcat's modify interface (open)
⑤ Find servers location, select second (User tomcat installation)
⑥ Modifying the Deploy path to WebApps
⑦ Save Close
It is important to note that the ①②③ must be manipulated, otherwise the following steps will be grayed out.
This article is from the "It Xu Fat column" blog, please be sure to keep this source http://woshixy.blog.51cto.com/5637578/1086352
Eclipse's Web deployment could not find a location (turned)--------keep it in case you go over the internet later.