The JSP Test1.jsp should be in the directory $TOMCAT_HOME/webapps/james1,
not in $TOMCAT_HOME/james1. Because the docBase of this webapp is
"webapps/james".
hope this helps
Peiqiang Han
James Adams wrote:
> Hello,
>
> I am attempting to set up my first web application using Tomcat. I have
> taken the following first steps but still no enchilada - the initial JSP
> isn't found when I try to access it (Not Found 404):
>
> - I have put a JSP in a directory named $TOMCAT_HOME/james1. The JSP is
> named Test1.jsp and I'm trying to access it via the URL
> http://localhost:8080/james1/Test1.jsp.
>
> - I have modified $TOMCAT_HOME/conf/server.xml with a context for the
> web application with the following entry:
>
> <Context path="/james1"
> docBase="webapps/james1"
> crossContext="false"
> debug="0"
> reloadable="true" >
> </Context>
>
> - I have restarted Tomcat (not sure if that was necessary).
>
> The JSP uses a servlet whose class is available in
> $TOMCAT_HOME/james1/WEB-INF/classes, but I doubt that this is a problem
> since the page can't even be located.
>
> I am using Tomcat version 3.2.1 on a RedHat 7.0 machine.
>
> Any help or suggestions will be greatly appreciated ! Thanks in
> advance...
>
> -James