tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Lawrence Murphy <ga...@canada.com>
Subject Mandrake 7.1, Apache and Tomcat: JSPs are sought in ROOT
Date Wed, 13 Sep 2000 04:09:00 GMT

This is such an odd problem, it must be a configuration mistake. I
upgraded to the latest Apache in the Mandrake 7.2 beta, and I now have
what appears to be a connection between Apache, mod_jk and tomcat, but
the path resolution is very strange: JSP files are forwarded to
tomcat, but tomcat expects to find them relative to the ROOT path, not
relative to the Apache document root

For example, asking for /gnujsp/examples/date.jsp produces ...

jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
Servlet-Engine=Tomcat Web Server/3.3 dev (JSP 1.1; Servlet 2.2; Java
1.2.2; Linux 2.2.15-4mdk i386; java.vendor=Blackdown Java-Linux Team)

2000-09-13 12:04:51 - JspEngine --> /gnujsp/examples/date.jsp
2000-09-13 12:04:51 -        ServletPath: /gnujsp/examples/date.jsp
2000-09-13 12:04:51 -           PathInfo: null
2000-09-13 12:04:51 -           RealPath: /home/opt/tomcat/webapps/ROOT/gnujsp/examples/date.jsp
2000-09-13 12:04:51 -         RequestURI: /gnujsp/examples/date.jsp
2000-09-13 12:04:51 -        QueryString: null
2000-09-13 12:04:51 -     Request Params: 
2000-09-13 12:04:51 - Classpath according to the Servlet Engine is: /home/opt/tomcat/webapps/ROOT/WEB-INF/classes/
2000-09-13 12:04:51 - Package name is: gnujsp.examples
2000-09-13 12:04:51 - Class file name is: /home/opt/tomcat/work/localhost_8080/_0002fgnujsp_0002fexamples_0002fdate_0002ejspdate.class
2000-09-13 12:04:51 - Java file name is: /home/opt/tomcat/work/localhost_8080/_0002fgnujsp_0002fexamples_0002fdate_0002ejspdate_jsp_0.java

Obviously the RealPath is wrong, or the PathInfo should not be empty.
I searched through the FAQs and other kit documents, but could not find
any reference to these settings. Where do I set this?  Is this something
that should have been set in the mod_jk when it was built?

-- 
Gary Lawrence Murphy <garym@teledyn.com> TeleDynamics Communications Inc
Business Innovations Through Open Source Systems: http://www.teledyn.com
"Computers are useless.  They can only give you answers."(Pablo Picasso)


Mime
View raw message