http://localhost:8080/web/X.jsp Error 404__JS

Source: Internet
Author: User

It's been a long time, and now I'm sharing my experience.

MyEclipse 6.5 GA

Tomcat6.0 (Tomcat5.0.28)

JRE1.6

JAVA EE 5 is a very simple path,

First case: Path problem

A project has been established in MyEclipse that can be traced to C:\Program Files\apache Software foundation\tomcat 6.0\webapps\webtest

My project is called the Test,web folder called Webtestmyjsp.jsp's location is/test/webtest/myjsp.jsp

The problem now is that you can find the Web page by visiting localhost:8080//webtest/myjsp.jsp, and localhost:8080//test/myjsp.jsp can't find it.

Strangely, according to reason, the access time should be the LOCALHOST:8080//project folder/page. JSP, this cannot be accessed, but the Localhost:8080//web folder/page. JSP can access

Ask the master question solved or the path problem when I build the project, set the context root Url:/webtest I didn't notice, this one decided that the path to visit must be localhost:8080/webtest/myjsp.jsp,

If the context root url:/test can be accessed using localhost:8080/test/myjsp.jsp

Workaround: Check your path when you create a new Web project, your "context root Url:/web" setting determines what you use to access it, such as: This is the http://localhost:8080/web/ X.jsp to visit, note that the "Web" is the value following the context root URL

Second Scenario: Deployment issues

Encounter this problem is more tangled, yesterday to help students get the time is to encounter this problem, no "deployment" results every time open is not open, remember must deploy the project Oh, or how it knows you want to visit which one. Low-grade mistakes ah ...

Workaround: Point deploy MYECLIPSC Java project to server, which can be automatically deployed to the system-specified Tomcat WebApp directory

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.