Originally posted by chailin fong:
I add the line below in server.xml
<Context path='/jspbook' docBase='c:\jspbook' debug='0' reloadable='true'>
</Context>
I try to access the application: http://localhost:8080/jspbook/hello.jsp
I got : HTTP Status 404 - the requested resource (/jspbook/hello.jsp) is not available.
It would be better to follow Bear Bibeault's directions and check the documentation. Adding context entries to the server.xml file is not considered a best practice in Tomcat 5.0 and up.
Also, Tomcat will not treat your directory as a web application unless there is a proper directory structure within it.