Eclipse decompression and tomcat-404 Access Error

Source: Internet
Author: User

1. Operation: Decompress eclipse-jee-helios-m6-win32.zip

Error message: Can not create the Virtual Machine

Solution: Find eclipse. ini in the eclipse directory and delete the xmx settings.

2. Operation:

Create a MyApp folder in webapps under Tomcat

Create WEB-INF/Web. xml under MyApp

Create index. jsp for access under MyApp

 

Access Local Tomcat (http: // localhost: 8080/MyApp/index. jsp)

Error message: 404 error

Solution: Check whether the content in Web. XML is correctly written.

The correct content is as follows:

<? XML version = "1.0" encoding = "ISO-8859-1"?>

<! Doctype web-app
Public "-// Sun Microsystems, Inc. // DTD web application 2.3 // en"

Http://java.sun.com/dtd/web-app_2_3.dtd>
<Web-app>
<Display-Name> my web application </display-Name>
<Description>
A Application for test

</Description>
</Web-app>

 

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.