You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gary Lawrence Murphy <ga...@canada.com> on 2000/09/13 06:09:00 UTC
Mandrake 7.1, Apache and Tomcat: JSPs are sought in ROOT
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 <ga...@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)
Re: Mandrake 7.1, Apache and Tomcat: JSPs are sought in ROOT
Posted by Gary Lawrence Murphy <ga...@canada.com>.
I should also point out for posterity that the identical configuration
which did not work with the Apache shipped in Mandrake 7.1 worked
fine using the new Apache currently in the Mandrake 7.2 beta.
--
Gary Lawrence Murphy <ga...@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)
Re: Mandrake 7.1, Apache and Tomcat: JSPs are sought in ROOT
Posted by Gary Lawrence Murphy <ga...@canada.com>.
Solved my own problem: Tomcat and Apache must both provide aliases for
each other. Tomcat needed a HOST context with the path set to the
server document root.
--
Gary Lawrence Murphy <ga...@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)