You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Detlev Schlereth <sc...@footstep.de> on 2001/04/18 12:16:39 UTC

TOMCAT 3.2.1 and mod_jserv for FreeBSD

Hi !

I´m a new user of the TOMCAT 3.2.1 system and
I´ve some problems:

first:

I run it on an FreeBSD 4.2 release with
Apache/1.3.12 OpenSSL/0.9.5a (Unix) installed and in use.
As a stand alone system TOMCAT will start but
when i try to compile the mod_jserv.so module
i get this messages:


joshua2% apxs -c -o mod_jserv.so *.c
gcc -DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE -funsigned-char -fpi
c -DSHARED_MODULE -I/usr/local/apache/1.2.6/include  -c autochange.c
gcc -DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE -funsigned-char -fpi
c -DSHARED_MODULE -I/usr/local/apache/1.2.6/include  -c jserv_ajpv11.c
In file included from jserv_ajpv11.c:61:
jserv.h:397: unterminated comment
jserv.h:61: unterminated `#if' conditional
apxs:Break: Command failed with rc=65536
joshua2%

is this a result of a wrong (old) apxs configuration ?



second:

in the prebuild binaries for TOMCAT 3.2.1 there are two .so files in
x86/Linux

mod_jk.so
mod_jserv_tomcat.so

why exists two files ?
why not mod_jserv.so ?
maybe,work these files on a FreeBSD 4.2 System ?



with thanks

Detlev Schlereth





Re: TOMCAT 3.2.1 and mod_jserv for FreeBSD

Posted by Sam Newman <sa...@stamplets.com>.
I'm skipping the jserv build issues - not sure this is the place for
problems with it. JServ was the old method for serving servlets via Apache.
It has been superceded by mod_jk which is much easier to setup and use. the
mod_jk.so is for mod_jk, the mod_jserv.so file is for mod_jserv. For a
comparison of mod_jk and mod_jserv have a look at the Apache-tomcat & mod_jk
howto's.

sam
----- Original Message -----
From: "Detlev Schlereth" <sc...@footstep.de>
To: <to...@jakarta.apache.org>
Sent: Wednesday, April 18, 2001 11:16 AM
Subject: TOMCAT 3.2.1 and mod_jserv for FreeBSD


> Hi !
>
> I´m a new user of the TOMCAT 3.2.1 system and
> I´ve some problems:
>

<snip>
>
> second:
>
> in the prebuild binaries for TOMCAT 3.2.1 there are two .so files in
> x86/Linux
>
> mod_jk.so
> mod_jserv_tomcat.so
>
> why exists two files ?
> why not mod_jserv.so ?
> maybe,work these files on a FreeBSD 4.2 System ?
>
>
>
> with thanks
>
> Detlev Schlereth
>
>
>
>


Re: TOMCAT 3.2.1 and mod_jserv for FreeBSD

Posted by AC <sm...@lisea.com>.
At 12.16 18/04/2001 +0200, you wrote:
>Hi !
>
>I´m a new user of the TOMCAT 3.2.1 system and
>I´ve some problems:
>
>first:
>
>I run it on an FreeBSD 4.2 release with
>Apache/1.3.12 OpenSSL/0.9.5a (Unix) installed and in use.
>As a stand alone system TOMCAT will start but
>when i try to compile the mod_jserv.so module
>i get this messages:
>
>
>joshua2% apxs -c -o mod_jserv.so *.c
>gcc -DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE -funsigned-char -fpi
>c -DSHARED_MODULE -I/usr/local/apache/1.2.6/include  -c autochange.c
>gcc -DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE -funsigned-char -fpi
>c -DSHARED_MODULE -I/usr/local/apache/1.2.6/include  -c jserv_ajpv11.c
>In file included from jserv_ajpv11.c:61:
>jserv.h:397: unterminated comment
>jserv.h:61: unterminated `#if' conditional
>apxs:Break: Command failed with rc=65536
>joshua2%
>
>is this a result of a wrong (old) apxs configuration ?
>


Hi
I remember there was a problem compiling mod_jk.so for freebsd.
This is an old response that should work ...

----
The location of the apxs is (in my configuration) /usr/local/sbin/ instead 
of ${APACHE_HOME}/bin/
After correcting this I launch the Makefile that compile the mod_jk.so 
(make all). The script launch :

/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include 
-I../jk mod_jk.c

As you can see it compiles only the mod_jk.c. The command you have to 
launch is:

/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include 
-I../jk mod_jk.c ../jk/*.c

If you use a different jdk just yank the apxs command and add ../jk/*.c at 
the end as I did.

It works with all the jdk (1.1.8, 1.2 beta native and 1.2 linux)


regards

---




>second:
>
>in the prebuild binaries for TOMCAT 3.2.1 there are two .so files in
>x86/Linux
>
>mod_jk.so
>mod_jserv_tomcat.so
>
>why exists two files ?
>why not mod_jserv.so ?
>maybe,work these files on a FreeBSD 4.2 System ?
>

You need the native mod_jk.....



>with thanks
>
>Detlev Schlereth