Tomcat6.0 404 error

Source: Internet
Author: User

Use myeclipse6.5 and tomcat6.0.16 to create a tomcat project struts in myeclipse, start the cute kitten, and enter the URL, http: // localhost: 8080/project name. The webpage displays Error 404. I was surprised. I remember it was good before, so I changed it to tomcat5.0.27 and redo it again. It was really good. Finally, I found on the Internet that the default configuration file/CONF/Web. xml of tomcat6.0 is different from that of tomcat5.0. The top section
<Servlet>
<Servlet-Name> default </servlet-Name>
<Servlet-class> org. Apache. Catalina. servlets. DefaultServlet </servlet-class>
<Init-param>
<Param-Name> listings </param-Name>
<Param-value> true </param-value>
</Init-param>
</Servlet>
The value of listings in 5.0 is true, but the value of listings in 6.0 is false. So change false to true, and everything will be OK.

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.