Java: Installing the runtime environment, setting up the Tomcat Server method

Source: Internet
Author: User
Tags tomcat server apache tomcat

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.