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>