When the jsp page is opened for the tomcat6.0 release project, the following error occurs: HTTP Status 500, tomcat6.0jsp

Source: Internet
Author: User

When the jsp page is opened for the tomcat6.0 release project, the following error occurs: HTTP Status 500, tomcat6.0jsp
Today, we encountered a tomcat deployment problem. The root cause of the problem lies in the configuration of server. xml.
The error is as follows: HTTP Status 500-javax. servlet. servletException: XXX file can not find, several search test, the program is not wrong, some say that the jsp-api.jar and serlet-api.jar package conflict, debugging found that and cannot solve the problem, and later found the problem:
The server. xml configuration starts with the following configuration for the Host and its Context:
<Host name = "localhost" appBase = ".../Tomcat/webapps/myapp"...>
?????? <Context path = "" docBase = "../Tomcat/webapps/myapp" reloadable = "false"/>
</Host>

In the test, the app is accessed as follows: http: // localhost: 8080/myapp
The newly deployed access method is http: // 10.10.10.20: 8080, with no application name. This is indeed accessible, but when you directly access the jsp page (jump through the action), the error shown in the question occurs.
Then it is changed to the following format, so no error is reported and the access address does not need to be changed:
<Host name = "localhost" appBase = ".../Tomcat/webapps"...>
?????? <Context path = "" docBase = "myapp" reloadable = "false"/>
</Host>

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.