Configuring server for Tomcat under Eclipse (typically Tomcat 6.X), double-clicking Tomcat v6.0 Server in the server panel, there are three options for the server locations configuration:
1. Use workspace metadata (does not modify Tomcat installation);
2. Use of the Tomcat installation (take control of Tomcat installation);
3. Use Custom location (does not modify Tomcat installation);
The first option represents the metadata path using the current workspace, which typically saves the output file to the workspace directory, the second indicates that the output file is saved to the Tomcat installation directory, and the third one has not been used.
However, if you need to modify this configuration, you need to remove all the projects under the Tomcat service (remove all), right-click the Clean command, and finally modify the configuration;
In addition, there are two parameter input boxes below this option:
1. Server path (that is, Tomcat or eclipse root)
2. Deploy path (the root directory of the project file, Tomcat generally is webapps,workspace under General Wtpwebapps)
PS: In general, the workspace subpath is \.metadata\.plugins\org.eclipse.wst.server.core\tmp0\{deploy path} (where the Deploy Path can be configured by default workspace to Wtpwebapps)
About Eclipse configuration Tomcat has one more question I've encountered: If you delete the server (assuming it was Tomcat 6) and then want to configure it as the original (the corresponding assumption is Tomcat 6), it seems that this option cannot be selected, but other types (such as Tomcat 5) are selected. , at this point the solution is to create a new WORKSAPCE, delete the original workspace under the. Metadata folder.
Article Source: http://cwfmaker.iteye.com/blog/1122322