Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 24044 invoked from network); 3 Apr 2002 16:42:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Apr 2002 16:42:55 -0000 Received: (qmail 25378 invoked by uid 97); 3 Apr 2002 16:42:27 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 25361 invoked by uid 97); 3 Apr 2002 16:42:26 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 25339 invoked from network); 3 Apr 2002 16:42:26 -0000 Message-ID: <3CAB30EC.1030403@atreus-systems.com> Date: Wed, 03 Apr 2002 11:42:20 -0500 From: Alex Sauve Reply-To: asauve@atreus-systems.com Organization: Atreus Systems User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: weird behaviour with jsp pages Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi all, I have a tomcat that is performing a little weird and I am sure that it is a configuration issue, but I have spent days trying to pin-point the problem with little effect. So here is the scenario, I am running Tomcat with Apache and the Apache server that connects to the Tomcat server is a proxy server in front of another Apache server (don't know if that is important information???). So you are probably wondering by now what is the weird behaviour? Well the thing is that I have written some jsp pages to be used with the Tomcat server, they will only execute when located within a "jsp" directory. Yup, the jsp pages will only execute when located under a jsp directory, but they can be in another directory under the jsp directory and they will work again as long as in their directory tree there is a directory called jsp. Don't quite understand why this is, and I have checked everywhere for some behaviour similar to this and nothing. I don't believe that jsp pages have to be located in a jsp directory, so I would like to rectify this problem. So here is the configuration of Apache and Tomcat... The Apache conf file extract: (don't forget this is the proxy server in front of the backend Apache server) #INCLUDE_SECTION_TOMCAT Include /usr/local/jakarta-tomcat-3.3a/conf/mod_jk.conf #END_INCLUDE_SECTION_TOMCAT SSLEngine on RewriteEngine on RewriteLog /home/xlink/logs/RewriteLog.proxy RewriteLogLevel 2 # this directive is set in order to avoid access # to directory listing in the portal Options -Indexes #SECTION_TOMCAT JkMount /*.jsp ajp13 JkMount /sso/* ajp13 #END_SECTION_TOMCAT ProxyPass /xlink http://localhost:9442/xlink ProxyPass /authapi http://localhost:9442/authapi ProxyPass /portal http://localhost:9303/ ProxyPass /portal/ http://localhost:9303/ ProxyPass / http://localhost:9303/ RewriteRule /portal/images(.*) /home/portal/html/images$1 RewriteRule /portal/js(.*) /home/portal/html/js$1 RewriteRule /images(.*) /home/portal/html/images$1 RewriteRule /js(.*) /home/portal/html/js$1 RewriteRule /css(.*) /home/portal/html/css$1 ProxyPassReverse /portal/ http://localhost:9303/ ProxyPassReverse / http://localhost:9303/ There is a similar entry for the port 80 virtual host. The tomcat configuration file is as follows:########## Auto generated on Mon Jan 28 19:17:37 EST 2002########## LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile "/usr/local/jakarta-tomcat-3.3a/conf/jk/workers.properties" JkLogFile "/usr/local/jakarta-tomcat-3.3a/logs/mod_jk.log" JkLogLevel debug #JkMount /admin ajp13 #JkMount /admin/* ajp13 #JkMount /examples ajp13 #JkMount /examples/* ajp13 #JkMount /sso ajp13 #JkMount /sso/* ajp13 The project containing the jsp's that I wrote is obviously the sso project, but the same behaviour occurs when I try to move one of the example jsp pages from the jsp directory. If you need anymore information, please just let me know and thanks for your help... Alex -- To unsubscribe: For additional commands: Troubles with the list: