Eclipse modifies the Tomcat publishing path and configures multiple Tomcat methods

Source: Internet
Author: User
Tags tomcat server

The recent abandonment of the use of myeclipse and the use of Eclipse as a development tool, and indeed the fact that MyEclipse integrates too many things to make developers less configurable, is not a good thing, after using eclipse, some places have to be configured on their own, For example, configure the Java EE needs some jar package, configure the server server and so on.

One, the configuration of the Tomcat server and the server renaming.

First step: How to configure Tomcat on Eclipse, refer to the article detailed graphic tutorials for how to configure Tomcat in the Eclipse environment, and deploy the project to the Tomcat server

Step two: I observed that when I used eclipse to configure the Tomcat server, I found that by default Tocmat placed our deployed projects under workspaces instead of the Tomcat installation path, as MyEclipse by default.

Such as:

Step three: Modify the server name

Before you modify:

After modification:

Save changes found that the server's path name has been modified, but the path has not changed.

Fourth step: Delete the item and clean it and save the changes.

Fifth step: Turn off the server Configuration page and a prompt will pop up and click Yes.

Sixth step: The effect is as follows:

Ii. Configuring the Tomcat publishing path

As you can see, the Server locations configuration is grayed out and cannot be modified, of course, I have already ticked it into use Tomcat installation, which is deployed under the Tomcat installation directory. Eclipse defaults to the first item checked, that is, use workspace metadata. So, how to modify the configuration?

The first step: Clean the server.

If you want the server configuration of Tomcat to be modifiable, first remove all projects that are deployed under the server, then right-click on the server, select Clean,clean, and then double-tap server to enter the configuration to discover that the configuration can be modified.

Step Two: Choose the location of the Tomcat settings and deployment.

Step three: Resolve Eclipse startup Tomcat when it appears: Warning error.

Sometimes, when Eclipse launches Tomcat, it appears: WARNING: [Setpropertiesrule]{server/service/engine/host/context} Setting Property ' Source ' to ' org.eclipse.jst.jee.server:firstProject ' didn't not find a matching property such a problem,

I have also encountered such an error message. This problem may be caused by not checking the Publish module contexts to separate XML files under the server options, which I resolved by ticking the configuration item.

Fourth step: Redeploy the files and then look inside Tomcat to see the files we deployed.

Three, configure multiple Tomcat.

Why should I configure multiple tomcat?

Because a tomcat optimizes memory, and so on, and so on, when running multiple projects, it will be difficult, and will hang out, so we think we need to configure multiple Tomcat to run different projects.

When you configure multiple Tomcat, the following error occurs.

First step: Double-click the server to open the Server Configuration page.

Before you modify:

After modification:

Finally, you can redeploy.

When you visit, remember to add your own port number on the line of access.

Eclipse modifies the Tomcat publishing path and configures multiple Tomcat methods

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.