Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 91619 invoked from network); 1 Feb 2002 08:12:27 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Feb 2002 08:12:27 -0000 Received: (qmail 23176 invoked by uid 97); 1 Feb 2002 08:12:11 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 23159 invoked by uid 97); 1 Feb 2002 08:12:11 -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 23148 invoked from network); 1 Feb 2002 08:12:11 -0000 From: Chris Faulkner To: "Tomcat Users List" Date: Fri, 01 Feb 2002 08:13:52 -0000 X-Priority: 3 (Normal) Reply-To: chrisf@oramap.com Organization: Oramap Ltd In-Reply-To: <3C5A4AB6.196F30CB@presidence.univ-nantes.fr> Message-Id: Subject: Mod_Webapp MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Mailer: Opera 6.0 build 1010 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 I have an app which Iam upgrading from Tomcat 3 to 4, implementing mod_webapp. Whereas I used to have http://server/dir where dir lived on Apache were it contained all static html, gifs and also as a context /dir on Tomcat where I put my JSP and servlets. So I would only mount the following on ajp12. JkMount /ism/*.jsp ajp12 JkMount /ism/servlet/* ajp12 As far as Ican see, with mod_webapp, you have to mount the whole of /ism/, thereby forcing all static content into Tomcat. Is there any way around this ? The release notes say that "mod_webapp fowards *all" requests uunder the specified context path to Tomcat for processing. When Tomcat 4.0 final is released, it will automatically configure itself to serve static resources from Apache..." Having read that 4.0.1 was production quality, I thought that it was a formal release of version 4. What is Tomcat 4.0 final as opposed to production quality, released 4.0.1? This feels like a shortcoming in mod_webapp and the way that things are mounted with mod_webapp. I have posted and seen questions asking whether you can mount /*.jsp in mod_webapp but never seen a satisfactory respose or solution. Thanks Chris >Kevin HaleBoyes a �crit : >> >> This may seem long but I wanted to include anything >> I thought was relevant. >> >> CATALINA_HOME=/usr/local/jakarta/jakarta-tomcat-4.0.2-b2 >> JAVA_HOME=/usr/java/jdk1.3.1_02 >> >> I added a new entry to server.xml for my new website. >> This is the only change I made to the stock server.xml. >> >> > >> > >> > >> > > > directory="logs" prefix="192.168.0.52_access_log." >> suffix=".txt" >> > pattern="common"/> >> > >> > > > prefix="192.168.0.52_log." suffix=".txt" timestamp="true"/> >> > >> > >> > >> > >> > > > prefix="NewWebsite_log." suffix=".txt" timestamp="true"/> >> > >> > >> >> This works great. When I point my browser at http://192.168.0.52:8080/ >> I get my home page and the JSP/servlet stuff works as expected. >> >> Like so many other, the next step is to set up the >> Warp connector so that I can front Tomcat with Apache. >> >> I changed the stock httpd.conf (RedHat 7.2 i386) by adding a >> new section to correspond to NewWebsite above. >> I installed mod_webapp.so from the downloaded webapp-module-1.0.2-tc402 >> archive. >> >> > NameVirtualHost 192.168.0.52 >> > >> > LoadModule webapp_module modules/mod_webapp.so >> > WebAppConnection warpConnection warp 192.168.0.52:8008 >> > WebAppDeploy examples warpConnection /examples/ >> > >> > >> > ServerName 192.168.0.52 >> > WebAppDeploy NewWebsite warpConnection / >> > >> >> The address 192.168.0.52 will eventually become a properly >> DNS-registered name www.NewWebsite.com (names and ip >> addresses may have been changed to protect the guilty). >> >> The intention is to have any request for http://192.168.0.52/ be >> redirected by mod_webapp to the NewWebsite Tomcat context. >> But that is not what happens. Instead, the browser sits as if >> it is loading something that never comes and there are no >> messages in any of the apache & tomcat log files on the server. >> Not even an access log entry. >> >> On startup of httpd I get the following message in the httpd >> error log. >> >> > [Thu Jan 31 12:49:58 2002] [warn] Loaded DSO modules/mod_webapp.so uses >> plain Apache 1.3 API, this module might crash under EAPI! (please recompile it >> with -DEAPI) >> > [Thu Jan 31 12:49:59 2002] [notice] Apache/1.3.20 (Unix) (Red-Hat/Linux) >> mod_python/2.7.6 Python/1.5.2 mod_ssl/2.8.4 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 >> mod_perl/1.24_01 mod_throttle/3.1.2 configured -- resuming normal operations >> > [Thu Jan 31 12:49:59 2002] [notice] suEXEC mechanism enabled (wrapper: >> /usr/sbin/suexec) >> > [Thu Jan 31 12:53:08 2002] [error] Connection "warpConnection" cannot >> connect >> > [Thu Jan 31 12:53:08 2002] [error] Cannot open connection "warpConnection" >> > [Thu Jan 31 12:53:08 2002] [error] Connection "warpConnection" cannot >> connect >> > [Thu Jan 31 12:53:08 2002] [error] Cannot open connection "warpConnection" >> > [Thu Jan 31 12:53:08 2002] [error] Connection "warpConnection" cannot >> connect >> > [Thu Jan 31 12:53:08 2002] [error] Cannot open connection "warpConnection" >> > [Thu Jan 31 12:53:08 2002] [error] Connection "warpConnection" cannot >> connect >> > [Thu Jan 31 12:53:08 2002] [error] Cannot open connection "warpConnection" >> > [Thu Jan 31 12:53:08 2002] [error] Connection "warpConnection" cannot >> connect >> > [Thu Jan 31 12:53:08 2002] [error] Cannot open connection "warpConnection" >> > [Thu Jan 31 12:53:08 2002] [error] Connection "warpConnection" cannot >> connect >> > [Thu Jan 31 12:53:08 2002] [error] Cannot open connection "warpConnection" >> > [Thu Jan 31 12:53:08 2002] [error] Connection "warpConnection" cannot >> connect >> > [Thu Jan 31 12:53:08 2002] [error] Cannot open connection "warpConnection" >> > [Thu Jan 31 12:53:08 2002] [error] Connection "warpConnection" cannot >> connect >> > [Thu Jan 31 12:53:08 2002] [error] Cannot open connection "warpConnection" >> > [Thu Jan 31 12:53:08 2002] [error] [client 192.168.0.15] File does not >> exist: /var/www/html/NewContext >> > [Thu Jan 31 12:54:38 2002] [error] [client 192.168.0.15] File does not >> exist: /var/www/html/NewContext/ >> >> So I should probably first address the [warn] about EAPI. >> >> I've got jakarta-tomcat-connectors-4.0.2-b2-src.tar.gz and >> jakarta-tomcat-connectors-4.0.2-b2.patch from >> tomcat4-4.0.2-b2.1.src.rpm >> (though I can't remember where I got that src rpm?). >> >> I've unpacked it and am about to dive in but I thought I'd check >> with the group here to see if I'm going along the right track. >> >> Should the above configuration work (once I get rid of the EAPI problem >> with my freshly compiled mod_webapp.so)? >> > > Maybe you need a Port Directive in your Virtual Host section like > > Port xxxx (xxxx matches the port number specified in your server.xml >at Connector section ) > >> One of the strange things (to me) is >> the setup I've shown here is the actual production machine that I'm >> trying to prepare. >> My development/test machine OS/Apache is very similar (RedHat 7.1 instead) >> and a very similar setup works fine. >> >> Thanks >> Kevin. >> >> __________________________________________________ >> Do You Yahoo!? >> Everything you'll ever need on one web page >> from News and Sport to Email and Music Charts >> http://uk.my.yahoo.com >> >> -- >> To unsubscribe: >> For additional commands: >> Troubles with the list: > >-- >Julien OIX >Service Informatique de Gestion >T�l: 02 40 99 83 65 >mail: julien.oix@presidence.univ-nantes.fr > >-- >To unsubscribe: >For additional commands: >Troubles with the list: > > -- To unsubscribe: For additional commands: Troubles with the list: