Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 87608 invoked from network); 8 Aug 2000 18:10:52 -0000 Received: from khufu.rcanaria.es (193.146.80.98) by locus.apache.org with SMTP; 8 Aug 2000 18:10:52 -0000 Received: from ICIDTF-NW5 (icidtf-nw5.icid.rcanaria.es [193.146.80.2]) by khufu.rcanaria.es (8.9.1/8.9.1) with SMTP id TAA04009 for ; Tue, 8 Aug 2000 19:10:34 +0100 (BST) Received: from eric (eric.rcanaria.es [193.146.87.155]) by ICIDTF-NW5; Tue, 08 Aug 2000 19:09:05 +0100 Message-ID: <004001c00163$a80b3230$0264a8c0@eric> From: =?iso-8859-1?Q?=C9ric_Dantie?= To: Cc: References: <39901149.3C2FAF73@virgil.nl> Subject: Re: Problems with mod_jserv and Solaris2.7 Date: Tue, 8 Aug 2000 19:08:29 +0100 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.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I have quite same software and everything is working for me. Things sound good. I've just added a line in httpd.conf add jakarta: include $TOMCAT-HOME/conf/tomcat.conf (of course, change the $TOMCAT-HOME by it correct value) here is my tomcat.conf file: LoadModule jserv_module libexec/mod_jserv.so ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 8007 ApJServMount default /root AddType text/jsp .jsp AddHandler jserv-servlet .jsp ServerName libroazul.gobiernodecanarias.org ApJServMount / /lazul But what I advice you it to make it working without Virtual server . Do the things from the easiest to the complicated. When you've got the connection apache-tomcat add the limitations/specifications. I've configured mine with the document in $JAKARTA-HOME/doc/uguide/tomcat_ug.html Hope will help you. Eric ----- Original Message ----- From: "Dennis Brouwer" To: Sent: Tuesday, August 08, 2000 2:55 PM Subject: Problems with mod_jserv and Solaris2.7 > Hi colleagues, > > I'm heaving severe difficulties connecting apache and tomcat through > mod_jserv. Details about environment: > > - Sun Solaris 2.7 UltraSparc Processor (SunOS phoenix 5.7 > Generic_106541-10 sun4u sparc SUNW,Ultra-80) > - gcc version 2.95.2 > - Apache 1.3.12 > - Tomcat 3.1.0 > - Perl 5.005 (patch 3) > - All necessary patches installed AFAIK (as far as I know) > > > First I use a simple script to configure the build for Apache, using: > > #!/bin/sh > ./configure --prefix=/opt/apache1.3.12 \ > --enable-rule=SHARED_CORE \ > --enable-module=most \ > --enable-shared=max > > > > Which will install apache full blown (after the ./make and ./make > install command) in /opt/apache1.3.12. I'm able to run the server so no > problems occure. > > Then I build the mod_jserv.so library (from > /javarta-tomcat/src/native/apache/jserv) using the > /opt/apache1.3.12/bin/apxs command. This command fails but this is > solved by message > http://www.metronet.com/~wjm/tomcat/FromFeb11/msg03310.html. > > I use a simple script to fix the linking command: > > #!/bin/sh > PATH="${PATH}:/opt/apache1.3.12/bin" > export PATH > apxs -c *.c -o mod_jserv.so > ld -G mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o \ > jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o \ > jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o \ > jserv_ajpv12.o jserv_ajpv11.o autochange.o -o mod_jserv.so > > > > Then copy the generated mod_jserv.so file to /opt/apache1.3.12/libexec. > > Now the httpd.conf file is changed so that mod_jserv.so is activated at > server startup. No errors are met starting up so that is all working. I > use the following configuration: > > LoadModule jserv_module libexec/mod_jserv.so > > > ApJServManual on > ApJServSecretKey DISABLED > ApjServMountCopy on > ApJServLogLevel notice > ApJServDefaultProtocol ajpv12 > ApJServDefaultHost rdaweb.virgil.nl > ApJServDefaultPort 9001 > > AddType test/jsp .jsp ## sometimes written as text/jsp what is correct > anyway???????? > AddHandler jserv-servlet .jsp > > #ApJServMount /hermes ajpv12://rdaweb.virgil.nl:9001/hermes > > > NameVirtualHost rdaweb.virgil.nl > > > DocumentRoot /home/denbro/hermes/webapp > ServerName rdaweb.virgil.nl > Alias /hermes /home/denbro/hermes/webapp > > > AllowOverride All > Options Indexes FollowSymLinks > > > > AllowOverride None > deny from all > > > > > > What should it do? All request to http://rdaweb.virgil.nl/hermes/*.jsp > should be "forwarded" to Tomcat, this doesn't work. Tomcat itself works > perfectly fine. The browser responds with an error message "The server > returned an invalid or unrecognized response" and the apache error_log > shows "child pid exit signal Segmentation Fault (11)". This > could indicate that the module is not compiled/linked correctly. > > However if the AddType and AddHandler statements are commented out and > ApJServerMount statement is used all requests will be "forwarded" to > Tomcat. So it does work but all static content is served by Tomcat too. > This is not our goal!! So what could be the problem? > > > > The questions now are: > > - does somebody managed to get the whole think working for a system > similar as ours, > - does somebody know what I'm doing wrong for I'm not a C expert, > - is this a bug in the mod_jserv module or somewhere else? > - if there is somebody out there with a working mod_jserv for Tomcat 3.1 > and above mentioned system please mail it to me for testing, > - according to the bug-archive I'm not allone with this problem, is this > related to compiling or a source code problem. > > Help will be greatly appreciated for I'm already bussy for a week to get > the thing going! > > Dennis Brouwer > -- > Virgil > The Netherlands > > > P.S. As mentioned by a lot of others, it might be a good idea to supply > this module (mod_jserv) for more OS for a lot of questions are on this > subject. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > >