Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 23973 invoked by uid 500); 4 Apr 2001 22:03:48 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 23899 invoked from network); 4 Apr 2001 22:03:47 -0000 Received: from femail6.sdc1.sfba.home.com (24.0.95.86) by h31.sny.collab.net with SMTP; 4 Apr 2001 22:03:47 -0000 Received: from jeffnt ([24.177.206.97]) by femail6.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010404220351.QTPE27186.femail6.sdc1.sfba.home.com@jeffnt> for ; Wed, 4 Apr 2001 15:03:51 -0700 Message-ID: <004e01c0bd53$2eb6efd0$3200a8c0@jeffnt> From: "Jeff Kilbride" To: References: Subject: Re: context problem? Date: Wed, 4 Apr 2001 15:04:12 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N It's probably not good that you are mounting both ajp12 and ajp13 connectors for the same directories. The first thing I would try is removing either the JkMount directives for ajp12 or ajp13, then restart both Tomcat and Apache. Everything else looks okay. I run my contexts outside of the $TOMCAT_HOME/webapps directory also, and I haven't had any problems. Thanks, --jeff ----- Original Message ----- From: "Shun-Luoi Daniel Fong" To: Sent: Wednesday, April 04, 2001 1:51 PM Subject: context problem? > Hi, > > 1. I created a context in server.xml as follows > > docBase="/home/sdfong/public_html/rubyfong/gamezone" > crossContext="false" > debug="0" > reloadable="true" > > > > 2. I also added the following in mod_jk.conf that is included in > httpd.conf > > Alias /gamezone "/home/sdfong/public_html/rubyfong/gamezone" > > Options Indexes FollowSymLinks > > > JkMount /gamezone/servlet/* ajp12 > JkMount /gamezone/*.jsp ajp12 > > JkMount /gamezone/servlet/* ajp13 > JkMount /gamezone/*.jsp ajp13 > > > AllowOverride None > deny from all > > > > AllowOverride None > deny from all > > > 3. But when I try access a page at > http://agent.eng.uiowa.edu/~sdfong/rubyfong/gamezone/testex.jsp > > I got a 404 jsp not found error in the browser and I got the following > message in jasper.log > > 2001-04-04 03:49:40 - Scratch dir for the JSP engine is: /usr/java/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples > 2001-04-04 03:49:40 - IMPORTANT: Do not modify the generated servlets > 2001-04-04 03:50:26 - JspEngine --> /~sdfong/rubyfong/gamezone/testex.jsp > 2001-04-04 03:50:26 - ServletPath: /~sdfong/rubyfong/gamezone/testex.jsp > 2001-04-04 03:50:26 - PathInfo: null > 2001-04-04 03:50:26 - RealPath: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/~sdfong/rubyfong/gamezone/testex .jsp > 2001-04-04 03:50:26 - RequestURI: /~sdfong/rubyfong/gamezone/testex.jsp > 2001-04-04 03:50:26 - QueryString: null > 2001-04-04 03:50:26 - Request Params: > 2001-04-04 03:50:26 - Classpath according to the Servlet Engine is: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/WEB-INF/classes > > > The RealPath says it is looking in /usr/java/jakarta-tomcat-3.2.1/webapps > for my directories and file. > Could someone explain why it is doing this and how I could fix it. I've > been struggling with this problem for almost a month now and am at my wits > end. > > Thanks, > Luoi > > > > -- > D. Shun-Luoi Fong > 821 Melrose Avenue > Iowa City, IA 52246 > email: sdfong@engineering.uiowa.edu > > ----------------------- > Colossions 2:8 See to it that no one takes you captive through philosophy > or empty deception, according to the traditions of men, according to the > elementary principles of the world, rather than according to Christ. > ----------------------- >