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