WebApp is developed in eclipse, it is generally necessary to configure Tomcat Server for debug in Eclipse.
The specific steps are as follows:
1. Windows ==>preference ==> Server ==> Runtime Environment
Specific configuration for a server environment:
2. Window ==> Show View ==> Servers
Then right-click, New Server,
You can choose the version of Tomcat here, "Server runtime Environment" is the server runtime configured in step 1.
The second step is to choose to publish that WebApp Module
This allows the server to be configured.
BTW: One of the problems encountered in this step is:
"Project Facet Java 6.0 is not supported"
After Google, the solution that you find is:
Under Eclipse Project Home, there is a line 〈installed facet= "in the Org.eclipse.wst.common.project.facet.core.xml" file under the ". Settings" folder Jst.java the contents of "version=" 6.0 "/〉, change" 6.0 "here to" 5.5 ", the problem is resolved.
can refer to here.
3. Modify the server's port number and other parameters:
On the server configured in Step2, right-click, select Open,
You can then modify the port number and other parameters. You can also add/remove Webapp modules
4. Right-click on the server configured in step 2 and you can start/stop server, clearn/re-publish webapps contents.
5. Project's build Path is primarily a two library.
"Apache Tomcat v6.0", which is a library that appears after configuring server Runtime enviroment in Step1.
Web App Library, this is already configured, or Web Project compilation should be wrong.
6. Configure Debug configuration for project.
This is a lot of configuration items, mainly note that the arguments in the Tomcat boot is a number of memory parameters related to the configuration.
You can refer to some of the settings for Tomcat 6 in this article.
Java: Installing the runtime environment, setting up the Tomcat Server method