Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 68384 invoked from network); 26 Oct 2004 23:17:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Oct 2004 23:17:03 -0000 Received: (qmail 18380 invoked by uid 500); 26 Oct 2004 23:16:32 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 18349 invoked by uid 500); 26 Oct 2004 23:16:32 -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 18334 invoked by uid 99); 26 Oct 2004 23:16:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [65.32.5.135] (HELO ms-smtp-05.tampabay.rr.com) (65.32.5.135) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 26 Oct 2004 16:16:31 -0700 Received: from csunadmin (136.13.205.68.cfl.rr.com [68.205.13.136]) by ms-smtp-05.tampabay.rr.com (8.12.10/8.12.7) with SMTP id i9QNGQNu002521 for ; Tue, 26 Oct 2004 19:16:27 -0400 (EDT) From: "Allen Williams" To: "Tomcat Users List" Subject: RE: Apache-Tomcat: File Not Found instead of Tomcat Date: Tue, 26 Oct 2004 19:18:09 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <417ED45D.80006@interstructure.ca> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Alain, Thanks for the tip. I will try it within a day or so. What does JkMount do, and is there any documentation anywhere on what elements are needed where? anw > -----Original Message----- > From: Alain Gaeremynck [mailto:garem@interstructure.ca] > Sent: Tuesday, October 26, 2004 6:49 PM > To: Tomcat Users List > Subject: Re: Apache-Tomcat: File Not Found instead of Tomcat > > > First time i try to help someone on this list... Hope i'm right :) > > You seem to be missing some config in httpd.conf > > JkMount /examples/* worker1 > > > > Allen Williams wrote: > > >I am setting (what should be) a straigthforward and very common > integration > >of > >Apache and Tomcat on Debian Linux, with Apache2 serving static > content and > >Tomcat4 serving jsp's and servlet's. The base directory of the apache > >service > >is /var/www. The CATALINA_BASE is /var/lib/tomcat4, which contains > >webapps/examples, webapps/admin, webapps/manager, and webdav(?-don't know > >what > >this is). All this is set up to just run on "localhost". > > > >When I point my browser to "http://localhost", I get the right > Apache index > >page, but when I try to go to "http://localhost/examples", or any of the > >others, > >I get a "File Not Found" error. How do I set this up? Here are the > >relevant > >parts of the config files: > > > >--------------------------------------------------- > >httpd.conf (actually, under Debian distribution, snippets included in > >"apache2.conf"): > > > >LoadModule jk2_module /usr/lib/apache2/modules/mod_jk2.so > ># To enable mod_jk2, customize workers2.properties* from > ># /usr/share/doc/libapache2-mod-jk2/examples and copy it to > ># /etc/apache2/workers2.properties. Then uncomment the following > line: JkSet > >config.file /etc/apache2/workers2.properties > > > >---------------------------------------------------- > >workers.properties: > ># > ># This is the minimal JK2 connector configuration file. > ># > > > >[logger.file:0] > >level=DEBUG > >file=/var/log/apache2/apache-jk2.log > > > >[shm:] > >info=Scoreboard. Required for reconfiguration and status with > multiprocess > >servers # file=anonymous # debug=0 file=/etc/apache2/scoreboard.shm > >size=1000000 > > > >[channel.socket:localhost:8009] > >info=Ajp13 forwarding over socket > >debug=0 > >tomcatId=localhost:8009 > > > >[ajp13:localhost:8009] > >info=ajp13 worker; connects to tomcat using AJP 1.3 protocol > >channel=channel.socket:localhost:8009 > > > >[uri:/admin/*] > >info=Tomcat HTML based administration web application. > >debug=5 > >context="admin" > >worker=ajp13:localhost:8009 > > > >[uri:/manager/*] > >info=A scriptable management web application for the Tomcat Web Server. > >debug=5 > >context="manager" worker=ajp13:localhost:8009 > > > >[uri:/examples/*] > >info=tomcat Examples. > >debug=5 > >context="examples" > >worker=ajp13:localhost:8009 > >------------------------------------------------ > >And, on the Tomcat side, server.xml: > > > > > > > > > > className="org.apache.catalina.mbeans.ServerLifecycleListener" > > debug="0"/> > > >className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" > > debug="0"/> > > > > > > > > > > > > > > > > > > > type="org.apache.catalina.UserDatabase" > > description="User database that can be updated and saved"> > > > > > > > > factory > > > org.apache.catalina.users.MemoryUserDatabaseFactory > > > > > > pathname > > conf/tomcat-users.xml > > > > > > > > > > > > > > > > > > > > > > > port="8009" minProcessors="5" maxProcessors="75" > > enableLookups="true" acceptCount="10" debug="5" > > connectionTimeout="20000" useURIValidationHack="false" > > > >protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > > > > > > > > > > > > > prefix="catalina_" suffix=".log" timestamp="true"/> > > > > > > > debug="0" resourceName="UserDatabase"/> > > > > > > > unpackWARs="true" autoDeploy="true"> > > > > > > > directory="logs" prefix="localhost_" suffix=".log" > > timestamp="true"/> > > > > > > > > >className="org.apache.naming.resources.FileDirContext" > > allowLinking="true" /> > > > > > > > > > > > > > > > > > > > > > > > > > >-------------------------------------------------- > >I also have a jk2.properties on the tomcat side: > > > >-------------------------------- > >Thanks, > >anw > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > -- > Alain Gaeremynck > CTO Le Groupe Interstructure > (514) 374-1110 > (514) 825-7810 cell > weblog: http://www.sanssucre.ca > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org