Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 52670 invoked from network); 13 Sep 2000 04:08:45 -0000 Received: from tomts2.bellnexxia.net (HELO tomts2-srv.bellnexxia.net) (209.226.175.140) by locus.apache.org with SMTP; 13 Sep 2000 04:08:45 -0000 Received: from maya.linux.ca ([206.172.75.78]) by tomts2-srv.bellnexxia.net (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20000913040844.TZXC21864.tomts2-srv.bellnexxia.net@maya.linux.ca> for ; Wed, 13 Sep 2000 00:08:44 -0400 Received: by maya.linux.ca (Postfix, from userid 500) id 29660FF4B2; Wed, 13 Sep 2000 00:09:00 -0400 (EDT) Sender: garym@maya.linux.ca To: tomcat-user@jakarta.apache.org Subject: Mandrake 7.1, Apache and Tomcat: JSPs are sought in ROOT From: Gary Lawrence Murphy X-Home-Page: http://www.teledyn.com Organization: T(c)Inc Business Innovation through Open Source Computing Date: 13 Sep 2000 00:09:00 -0400 Message-ID: Reply-To: Gary Lawrence Murphy X-Url: http://www.teledyn.com/ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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 TeleDynamics Communications Inc Business Innovations Through Open Source Systems: http://www.teledyn.com "Computers are useless. They can only give you answers."(Pablo Picasso)