View Single Post

  #1 (permalink)  
Old 06-26-2003
Jay
 
Posts: n/a
Default Apache+Tomcat+JSP 404Error

Dev Environment:
Windows XP
Apache 2.0.46
Tomcat4.1.18
JDK1.4.1_03
mod_jk_2.0.46.dll

CLASSPATH pointing to c:\tomcat\common\lib\servlet.jar
JAVA_HOME = "c:\j2sdk1.4.1_03

Examples work fine at
http://localhost/examples/jsp/source.jsp and
http://localhost:8080/examples/jsp/source.jsp

If I can load jsp pages in examples folder then I think my
Apache-Tomcat-mod_jk connection is fine.

Problem:
I have created new folder "myjsp" in webapps.
New test.jsp is located in webApps/myjsp

when I try to execute jsp in this new folder, I am getting 404-Page
cannot be found Error.
I am getting 404 error at http://localhost/myjsp/test.jsp

Entry in server.xml
<Context path="/myjsp" docBase="webapps/myjsp" debug="0"
reloadable="true" >
</Context>

Entries in httpd.conf
JKMount /*.jsp ajp13
JKMount /myjsp/*.jsp ajp13
Alias /myjsp "c:\tomcat\tomcat\4-1-18\webapps\myjsp"


Note:
If i copy the same test.jsp to examples folder then It works fine
using-http://localhost/examples/jsp/test.jsp

I am sure that I am missing something in configuration of this new
folder but couldn't figure out.
Please help? Thanks for your time.