You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Fergus Gallagher <Fe...@OrbisUK.com> on 2000/04/19 12:16:31 UTC

Tomcat 3.1 (release): can't get it to work with Apache

I have been installing the updates of Tomcat on Apache for quite a while 
but I can't get the 3.1 release to work - no servlets respond.

Pointing at the Tomcat server on port 8080 works

	http://host:8080/myapp/servlet/myapp

but the same on Apache

	http://host/myapp/servlet/myapp

hangs "indefinitely".

1.  [tomcat]/conf/tomcat.conf same as earlier versions (e.g., RC1) with 
correct ApJServMount entries
2. apache restarted (several times) & working
3. Nothing appears in either the [apache]/logs/mod_jserv.log nor the output 
of "tomcat.sh start" until the connection attempt is cancelled (but the 
presence of errors at least indicated that something is occurring).
4. When I swap back in an older version, things work again.

Any thoughts?  Has the mod_jserv.so dependency changed recently?

Fergus

P.S. mod_jserv.log error on cancel is:
[19/04/2000 10:34:31:665] (EMERGENCY) ajp12[1]: cannot scan servlet 
headers  (500)
--
Fergus Gallagher
Orbis
http://www.orbisuk.com/
+44-(0)20-8987 0717


Re: Tomcat 3.1 (release): can't get it to work with Apache

Posted by Fergus Gallagher <Fe...@OrbisUK.com>.
I'm gonna have to plead a bit of ignorance on that one - previously I uses 
a binary mod_jserv.so pulled from the jakarta site (on or about 22 Feb)

Is the binary avaiable anywhere?

I didn't know how to get the makefile to work so I tried the equivalent of

         $ for file in *.c ; do gcc -fPIC -c $file -I/opt/apache/include ; done
         $ ld -G -o mod_jserv.so *.o

(actually I wrote a makefile for this - see below)

Will that do?

Fergus

====== Makefile ================
CC = gcc

SRCS = jserv_ajpv11.c jserv_ajpv12.c jserv_balance.c \
         jserv_image.c jserv_mmap.c jserv_protocols.c \
         jserv_status.c jserv_utils.c jserv_watchdog.c \
         jserv_wrapper.c jserv_wrapper_unix.c mod_jserv.c

OBJS = ${SRCS:.c=.o}

APACHE = /opt/apache

INCS = -I$(APACHE)/include

libjserv.so : $(OBJS)
         ld -G -o $@ $?

mod_jserv.so : libjserv.so
         cp $? $@

%.o : %.c
         $(CC) -c -fPIC -o $@ $? $(INCS)


At 13:27 19/04/00 +0300, you wrote:

>  There was a change in ajp12 a while back, maybe your mod_jserv.so is just
>not updated... Try to build mod_jserv from the CVS.
>
>         Gal Shachor
>
>On Wed, 19 Apr 2000, Fergus Gallagher wrote:
>
> > I have been installing the updates of Tomcat on Apache for quite a while
> > but I can't get the 3.1 release to work - no servlets respond.
> >
> > Pointing at the Tomcat server on port 8080 works
> >
> >       http://host:8080/myapp/servlet/myapp
> >
> > but the same on Apache
> >
> >       http://host/myapp/servlet/myapp
> >
> > hangs "indefinitely".
> >
> > 1.  [tomcat]/conf/tomcat.conf same as earlier versions (e.g., RC1) with
> > correct ApJServMount entries
> > 2. apache restarted (several times) & working
> > 3. Nothing appears in either the [apache]/logs/mod_jserv.log nor the 
> output
> > of "tomcat.sh start" until the connection attempt is cancelled (but the
> > presence of errors at least indicated that something is occurring).
> > 4. When I swap back in an older version, things work again.
> >
> > Any thoughts?  Has the mod_jserv.so dependency changed recently?
> >
> > Fergus
> >
> > P.S. mod_jserv.log error on cancel is:
> > [19/04/2000 10:34:31:665] (EMERGENCY) ajp12[1]: cannot scan servlet
> > headers  (500)
> > --
> > Fergus Gallagher
> > Orbis
> > http://www.orbisuk.com/
> > +44-(0)20-8987 0717
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: general-help@jakarta.apache.org
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: general-help@jakarta.apache.org

--
Fergus Gallagher
Orbis
http://www.orbisuk.com/
+44-(0)20-8987 0717


Re: Tomcat 3.1 (release): can't get it to work with Apache

Posted by Paul McKean <mc...@humility.maf.nasa.gov>.
Fergus Gallagher wrote:

> I have been installing the updates of Tomcat on Apache for quite a while
> but I can't get the 3.1 release to work - no servlets respond.
>
> Pointing at the Tomcat server on port 8080 works
>
>         http://host:8080/myapp/servlet/myapp
>
> but the same on Apache
>
>         http://host/myapp/servlet/myapp
>
> hangs "indefinitely".
>
> 1.  [tomcat]/conf/tomcat.conf same as earlier versions (e.g., RC1) with
> correct ApJServMount entries
> 2. apache restarted (several times) & working
> 3. Nothing appears in either the [apache]/logs/mod_jserv.log nor the output
> of "tomcat.sh start" until the connection attempt is cancelled (but the
> presence of errors at least indicated that something is occurring).
> 4. When I swap back in an older version, things work again.
>
> Any thoughts?  Has the mod_jserv.so dependency changed recently?
>
> Fergus
>
> P.S. mod_jserv.log error on cancel is:
> [19/04/2000 10:34:31:665] (EMERGENCY) ajp12[1]: cannot scan servlet
> headers  (500)
> --
> Fergus Gallagher
> Orbis
> http://www.orbisuk.com/
> +44-(0)20-8987 0717
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org

The same thing happened to us on Solaris.  We had to re-build mod_jserv.so
from sources.

--
Paul C. McKean Jr.
 Technical Audit & Systems Compliance
Lockheed Martin Space Systems Company - Michoud Operations
phone: (504) 257-1213




Re: Tomcat 3.1 (release): can't get it to work with Apache

Posted by Shachor Gal <sh...@techunix.technion.ac.il>.
 There was a change in ajp12 a while back, maybe your mod_jserv.so is just
not updated... Try to build mod_jserv from the CVS.

	Gal Shachor

On Wed, 19 Apr 2000, Fergus Gallagher wrote:

> I have been installing the updates of Tomcat on Apache for quite a while 
> but I can't get the 3.1 release to work - no servlets respond.
> 
> Pointing at the Tomcat server on port 8080 works
> 
> 	http://host:8080/myapp/servlet/myapp
> 
> but the same on Apache
> 
> 	http://host/myapp/servlet/myapp
> 
> hangs "indefinitely".
> 
> 1.  [tomcat]/conf/tomcat.conf same as earlier versions (e.g., RC1) with 
> correct ApJServMount entries
> 2. apache restarted (several times) & working
> 3. Nothing appears in either the [apache]/logs/mod_jserv.log nor the output 
> of "tomcat.sh start" until the connection attempt is cancelled (but the 
> presence of errors at least indicated that something is occurring).
> 4. When I swap back in an older version, things work again.
> 
> Any thoughts?  Has the mod_jserv.so dependency changed recently?
> 
> Fergus
> 
> P.S. mod_jserv.log error on cancel is:
> [19/04/2000 10:34:31:665] (EMERGENCY) ajp12[1]: cannot scan servlet 
> headers  (500)
> --
> Fergus Gallagher
> Orbis
> http://www.orbisuk.com/
> +44-(0)20-8987 0717
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
> 
>