You've answered your own question, Tomcat does not see JSP files in the
Apache html root. You must put ALL JSP files in the Tomcat root directory
and ALL Servlets in the WEB-INF\classes directory OR setup up an
application context.
To setup additional contexts you use the same convention as the root:
# The following line mounts all JSP files and the /servlet/ uri to tomcat
JkMount /someApp/* ajp13
JkMount /someApp/*.jsp ajp13
Thus the JSP files go in webapps\someApp and Servlet files go in
webapps\someApp\WEB-INF\classes
For a good discussion of servlet contexts, click on the developing web
applications with tomcat link at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html
Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.
Chris Andreou
<chrisa@strll
c.com>
03/23/2001
02:09 PM
Please
respond to
tomcat-user
Hi I am using Tomcat 3.2.1 and Apache on an Nt platform. My confusion is
this:
In http.conf file I have :
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
Should all the .jsp files be under the webapps directory? I have a jsp file
under my webroot Apache directory but Tomcat does not see it?
Thanks
Chris