The effect that can be achieved
1. Use MVN to develop Web application, without packaging release, instant debugging;
2. Tomcat launches within the Eclipse container
Operation Steps:
1. Install Eclipse-tomcat plugin
Download the plugin to the Http://www.sysdeo.com/eclipse/tomcatplugin website, copy it to \eclipse\dropins, then restart Eclipse, and the Tomcat control icon will appear on the toolbar.
Then configure Prefrence, which has more than one tomcat root node, first of all, select the path of the tomcat that has been installed,
Then in the configuration of the advance is very important, here to choose to debug the project to join the Tomcat classpath, otherwise, can not debug
Next, be sure to tick the corresponding sourcepath, so that debugging can be located to the source code
2. Configure the context of Tomcat (this can be seen in my other article).
Add a WebApp context configuration to Tomcat, such as
Abc.xml, store to C:\Tomcat 6.0\conf\catalina\localhost
Content:
<?xml version= "1.0" encoding= "UTF-8"?>
<context
Docbase= "D:\del\workspace\testWeb\src\main\webapp"
Reloadable= "true" >
</Context>
In this way, access to HTTP://127.0.0.1/ABC, entered the TestWeb this project site, and can be debugged!