Eclipse configuration tomcat, access 404 error

Source: Internet
Author: User

I downloaded the TOMCAT6 from the official web site, directly started to find normal use, but started after eclipse binding, access to localhost:8080, originally should be Tomcat's homepage, but reported a 404 error.

Baidu search for a bit, the original is the reason for the location of Tomcat compiled!

Double-click Tomcat in the server panel to enter the configuration interface:

Note that if your server locations is grayed out, remove all the projects deployed in Tomcat first and clean it.

Take a look at the three options:

1 Use Workspace metadata

2 Use Tomcat installation

3 Ignore it ...

The first option is that Tomcat will use the workspace directory

The second is a deployment directory that uses Tomcat

This also means that if we directly boot a tomcat, our own worspace is not relevant content, access to the words will certainly be reported 404 error.

So just change the option to a second option.

In fact, this is not a problem at all, because the problem itself is unreasonable!

Think about it, I want to see the pyramids of Egypt in China, this!!!

Well, two ways: one is to move the pyramids to China, and the other is to go to Egypt!

The first to move the pyramid to China, in the above problem, corresponds to the original in the Tomcat directory of the home page is copied to the workspace directory ;

The second way to go to Egypt is to modify the directory of the installlation that the server locations becomes Tomcat .

  

Both ways can solve the problem, but to summarize the purpose of this blog post, or to urge yourself:

  Understanding the nature of the problem can solve the problem!

Don't blindly define the problem!

Eclipse configuration tomcat, access 404 error

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.