Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 4101 invoked from network); 24 May 2007 22:22:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 22:22:50 -0000 Received: (qmail 17398 invoked by uid 500); 24 May 2007 22:22:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 17374 invoked by uid 500); 24 May 2007 22:22:42 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 17363 invoked by uid 99); 24 May 2007 22:22:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 15:22:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of unidad22jj@gmail.com designates 66.249.82.232 as permitted sender) Received: from [66.249.82.232] (HELO wx-out-0506.google.com) (66.249.82.232) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 15:22:34 -0700 Received: by wx-out-0506.google.com with SMTP id t16so453029wxc for ; Thu, 24 May 2007 15:22:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=hRH31wgrHZmd7vkpfpaVA+OjEi+XBXvHU+iK3QaTQoPV+/lGYhoCOGT+jkKwQROWwSvjMj/QWF7onRHfCBvl+qzjBRtvWyRZObBKmTe0/bEMwfWNHVSOBEbYEjTMussBXA4gHGN0Ohe1JcU2QcTcaXxIUruwMIQIiRqqroIRi8g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=AOtLINpkQkl0bKyP9zDWEuIQUGpdF1PLtsg/PuZV3u/8WZ4Z1RrfSoJ0YqRDgZNBFFDL0R9PRB5W5bOlZolnxtIjXAv4QEjvykmmvHv2DRgx17hulhfSqmmvpce3je4elcreq6nfkOZ7Y6PGy5iKlGKnNbcicpeLNo1eJLDuoZE= Received: by 10.70.19.20 with SMTP id 20mr2854515wxs.1180045333476; Thu, 24 May 2007 15:22:13 -0700 (PDT) Received: by 10.70.122.19 with HTTP; Thu, 24 May 2007 15:22:13 -0700 (PDT) Message-ID: <32b7d5c80705241522q6e9d4320r2e31886f8cc3b42e@mail.gmail.com> Date: Thu, 24 May 2007 16:22:13 -0600 From: "Jessica Johnson" Sender: unidad22jj@gmail.com To: "Tomcat Users List" Subject: Re: why is apache serving source for .jsp files? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: a8ad139f6d8cce4f X-Virus-Checked: Checked by ClamAV on apache.org Thanks Tim, that got me a step further. I'm no longer getting source code for the .jsp pages, but now I'm getting a whole lot of HTTP Status 500 errors. Here are a few examples: org.apache.jasper.JasperException: File "/WEB-INF/jsp2/jsp2-example-taglib.tld" not found org.apache.jasper.JasperException: The absolute uri: http://jakarta.apache.org/tomcat/jsp2-example-taglib cannot be resolved in either web.xml or the jar files org.apache.jasper.JasperException: /jsp-examples/num/numguess.jsp(24,0) The value for the useBean class attribute num.NumberGuessBean is invalid. The first error is especially strange since that file does indeed exist. C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\jsp-examples\WEB-INF\jsp2\jsp2-example-taglib.tld I assume that is the location where it would be looking. In httpd.conf I took out Include "C:\Program Files\Apache Software Foundation\Tomcat5.5\conf\auto\mod_jk.conf" since this file is regenerated every time Tomcat restarts, and it the config that it generated didn't seem to do a whole lot for me. Then I added this to the end of httpd.conf # Config for mod_jk LoadModule jk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so" JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/jk/workers.properties" JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5/logs/mod_jk.log" JkLogLevel emerg JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13 JkMount /htdocs/jsp-examples/* ajp13 I should mention that I followed these directions in the tutorial to make Tomcat use Apache's document root: To Configure Tomcat to use your Apache DocumentRoot instead of it's own: 1. Open server.xml from C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\. Find the tag and edit the following: 2. Right after the tag, add the following context: And jsp-examples resides here: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\jsp-examples Thanks for listening, hopefully someone out there can give me another nudge in the right direction. jessica On 5/24/07, Tim Lucia wrote: > I'm dumb for not noticing this early. The jsp-examples path is not > JkMount'd nor is there a mapping for *.jsp. That is your problem. I > presumed it was a VirtualHost problem. > > Tim > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org