This is a discussion on Apache+Tomcat+JSP 404Error within the Apache Web Server forums, part of the Web Server and Related Forums category; Dev Environment: Windows XP Apache 2.0.46 Tomcat4.1.18 JDK1.4.1_03 mod_jk_2.0.46.dll CLASSPATH pointing ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
Where in the world we find javac.jar for the above to work. Thanks
"Jay" <jaidpr@yahoo.com> wrote in message news:b16aaba7.0306260759.1994ae37@posting.google.c om... > 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. |
| Thread Tools | |
| Display Modes | |
|
|