Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 51516 invoked from network); 24 May 2007 20:32:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 20:32:48 -0000 Received: (qmail 73796 invoked by uid 500); 24 May 2007 20:32:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 73770 invoked by uid 500); 24 May 2007 20:32:39 -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 73752 invoked by uid 99); 24 May 2007 20:32:39 -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 13:32:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [69.147.102.66] (HELO smtp103.plus.mail.re1.yahoo.com) (69.147.102.66) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 May 2007 13:32:30 -0700 Received: (qmail 71329 invoked from network); 24 May 2007 20:32:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:From:To:References:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-MimeOLE:In-Reply-To:Thread-Index; b=NdrdJ0GREw8UZPdGodDMxDrbkBK9dtLsFGU6PLOi9hHxV18J/vbO5VW211OwLLYj0t5hPvSlXF/VIEl93JGZKRC9Xx/I7h2VqaE1+Sq2bLnNINE2LnQ/tQGde2Tm3nRxtWrW/w94kVKukErTBKtzCc8+Z6iGuXc1pGnfqG2AE8s= ; Received: from unknown (HELO timlap) (timlucia@12.160.199.10 with login) by smtp103.plus.mail.re1.yahoo.com with SMTP; 24 May 2007 20:32:07 -0000 X-YMail-OSG: _JsnLuMVM1nsrg7yQ4UGKjHPUM6_3dfbiLXZg.2Nw_nHxw.J26dcGMCS5nrMPEotWDoPBCCDwXk1RdCxmmtZstEdqlyGBUXf4kJx9WHRk7WzERRQhg-- From: "Tim Lucia" To: "'Tomcat Users List'" References: <32b7d5c80705240930y3e2e1125k6ddbcdb531b58f42@mail.gmail.com> <005501c79e26$350d7a10$270f19ac@timlap> <32b7d5c80705241016m28b88dcel21a3911e8cc03506@mail.gmail.com> Subject: RE: why is apache serving source for .jsp files? Date: Thu, 24 May 2007 16:32:03 -0400 Message-ID: <009801c79e42$972a9950$270f19ac@timlap> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: <32b7d5c80705241016m28b88dcel21a3911e8cc03506@mail.gmail.com> Thread-Index: AceeJ1PJQZGbFrhSQ0afCboqk822YwAGx+Ug X-Virus-Checked: Checked by ClamAV on apache.org 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 > -----Original Message----- > From: unidad22jj@gmail.com [mailto:unidad22jj@gmail.com] On Behalf Of > Jessica Johnson > Sent: Thursday, May 24, 2007 1:16 PM > To: Tomcat Users List > Subject: Re: why is apache serving source for .jsp files? > > Should have mentioned that. > http://localhost/jsp-examples/jsp2/el/basic-arithmetic.jsp and the > other examples also show the jsp source. The only way it works is > using port 8080 on localhost. > > jessica > > On 5/24/07, Tim Lucia wrote: > > What happens if you make the request of localhost? > > > > > -----Original Message----- > > > From: unidad22jj@gmail.com [mailto:unidad22jj@gmail.com] On Behalf Of > > > Jessica Johnson > > > Sent: Thursday, May 24, 2007 12:31 PM > > > To: users@tomcat.apache.org > > > Subject: why is apache serving source for .jsp files? > > > > > > Hi all, > > > > > > I have been following this excellent tutorial http://apacheguide.org/ > to > > > setup Apache 2.2.4 with Tomcat 5.5.23 and mod_jk. It's mostly working, > > > except that http://mydomain.com/jsp-examples/num/numguess.jsp is > showing > > > the > > > .jsp source. If I log into my web server and go to > > > http://localhost:8080/j examples/jsp2/el/basic- > > > arithmetic.jsp> > > > sp-examples/num/numguess.jsp > > examples/num/numguess.jsp>everything > > > works as expected. So based on this I am assuming that the > > > problem is with the workers and mod_jk. I've done some googling, but > > > wasn't > > > able to find any solutions. > > > > > > If anyone can give me a hand, it would be much appreciated. > > > > > > Below are the parts of all of the config files that I thought might be > > > related to the problem. Let me know if I should include more info. > > > Thanks > > > in advance to anyone who can point me in the right direction. > > > > > > jessica > > > > > > > > > ***** Partial C:\Program Files\Apache Software > > > Foundation\Apache2.2\conf\http.conf ****** > > > > > > LoadModule php5_module "c:/php/php5apache2_2.dll" > > > AddType application/x-httpd-php .php > > > PHPIniDir "C:/php" > > > Include "C:\Program Files\Apache Software Foundation\Tomcat > > > 5.5\conf\auto\mod_jk.conf" > > > > > > > > > > > > > > > ******* Complete C:\Program Files\Apache Software Foundation\Tomcat > > > 5.5\conf\auto\mod_jk.conf ******** > > > > > > ########## Auto generated on Wed May 23 19:03:26 CDT 2007########## > > > > > > > > > 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 > > > > > > > > > > > > > > > ServerName localhost > > > > > > JkMount /lib ajp13 > > > JkMount /lib/* ajp13 > > > > > > JkMount /htdocs ajp13 > > > JkMount /htdocs/* ajp13 > > > > > > JkMount /cgi-bin ajp13 > > > JkMount /cgi-bin/* ajp13 > > > > > > JkMount /include ajp13 > > > JkMount /include/* ajp13 > > > > > > JkMount /error ajp13 > > > JkMount /error/* ajp13 > > > > > > JkMount /icons ajp13 > > > JkMount /icons/* ajp13 > > > > > > JkMount /proxy ajp13 > > > JkMount /proxy/* ajp13 > > > > > > JkMount /manager ajp13 > > > JkMount /manager/* ajp13 > > > > > > JkMount /conf ajp13 > > > JkMount /conf/* ajp13 > > > > > > JkMount /logs ajp13 > > > JkMount /logs/* ajp13 > > > > > > JkMount /modules ajp13 > > > JkMount /modules/* ajp13 > > > > > > JkMount /bin ajp13 > > > JkMount /bin/* ajp13 > > > > > > JkMount /host-manager ajp13 > > > JkMount /host-manager/* ajp13 > > > > > > JkMount /manual ajp13 > > > JkMount /manual/* ajp13 > > > > > > > > > > > > > > > > > > ******** C:\Program Files\Apache Software Foundation\Tomcat > > > 5.5\conf\jk\workers.properties ******** > > > > > > [logger] > > > level=DEBUG > > > file=C:/Program Files/Apache Software > Foundation/Apache2.2/logs/jk2.log > > > [config] > > > file=C:/Program Files/Apache Software > > > Foundation/Apache2.2/conf/workers2.properties > > > debug=0 > > > debugEnv=0 > > > > > > > > > [shm] > > > file=C:/Program Files/Apache Software > Foundation/Apache2.2/logs/jk2.shm > > > size=1048576 > > > > > > # socket channel > > > [channel.socket:localhost:8009] > > > port=8009 > > > host=127.0.0.1 > > > > > > # worker for the connector > > > [ajp13:localhost:8009] > > > channel=channel.socket:localhost:8009 > > > > > > [status:status] > > > > > > [uri:/status/*] > > > worker=status:status > > > > > > [uri:/jsp-examples/num/*.jsp] > > > worker=ajp13:localhost:8009 > > > > > > [uri:/*.jsp] > > > worker=ajp13:localhost:8009 > > > > > > > > > > > > > > > > > > > > > > > > ******** C:/Program Files/Apache Software > > > Foundation/Apache2.2/conf/workers2.properties (The tutorial told me to > > > create this file, but then I noticed the server logs were compaining > that > > > there was no C:\Program Files\Apache Software Foundation\Tomcat > > > 5.5\conf\jk\workers.properties so I just copied this file to that > location > > > and changed the config file reference. Not sure if that was the right > > > thing > > > to do....) ******* > > > > > > > > > [logger] > > > level=DEBUG > > > file=C:/Program Files/Apache Software > Foundation/Apache2.2/logs/jk2.log > > > [config] > > > file=C:/Program Files/Apache Software > > > Foundation/Apache2.2/conf/workers.properties > > > debug=0 > > > debugEnv=0 > > > > > > > > > [shm] > > > file=C:/Program Files/Apache Software > Foundation/Apache2.2/logs/jk2.shm > > > size=1048576 > > > > > > # socket channel > > > [channel.socket:localhost:8009] > > > port=8009 > > > host=127.0.0.1 > > > > > > # worker for the connector > > > [ajp13:localhost:8009] > > > channel=channel.socket:localhost:8009 > > > > > > [status:status] > > > > > > [uri:/status/*] > > > worker=status:status > > > > > > [uri:/jsp-examples/num/*.jsp] > > > worker=ajp13:localhost:8009 > > > > > > [uri:/*.jsp] > > > worker=ajp13:localhost:8009 > > > > > > > > --------------------------------------------------------------------- > > 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 > > > > > > --------------------------------------------------------------------- > 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 --------------------------------------------------------------------- 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