Tomcat cannot display list error configuration virtual directory 404 error

Source: Internet
Author: User
Tags tomcat

1, modify the XML code in%tomcat_home%/conf/server.xml, add the Red section (Configure virtual directory)

Unpackwars= "true" autodeploy= "true"

Xmlvalidation= "false" Xmlnamespaceaware= "false" >

<context path= "/tang" docbase= "c:/tangjsp" ></Context>

</Host>

Notice the red part, the path inside is Tang and the front "/" must not be less, docbase for f:/tangjsp, these two names can not be the same, that is, can not be

<context path= "/tang" docbase= "F:/tang" ></Context>

If this is the case, there will be errors, this is the use of information on the Internet.

2, modify the%tomcat_home%/conf/web.xml XML code is : (list hint 404 error reason)

<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>

3, copy the Tomcat/webapps/root directory Web-inf file into the f:/tangjsp.

This is the only way to parse a JSP file. But you can parse HTML files

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.