I eventually found I was misguided, on perhaps more than one count, by
things I had read elsewhere.  I thought mod_webapp was more difficult and
primarily geared towards Apache2.  I'll take another look at it though.  I
eventually did find something that talked about building mod_jk a more sane
way (make vs. ant) and it seemed to work ok, although I'm not entirely sure
I got the configure options entirely correct.  Current problems are
two-fold:

1) mod_jk won't load because:
Cannot load /usr/lib/apache/mod_jk.so into server:
/usr/lib/apache/mod_jk.so: undefined symbol: jni_worker_factory

2) Tomcat gets an error on startup and shutdown:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/xml/sax/InputSource
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:262)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)

The latter seems like it should be simple enough but no fiddling with the
location of sax.jar or twiddling with the classpath has worked so far.

I'll go take another look at mod_webapp though.  Thanks for the pointer!

I've never experienced Debian, but I applaude the effort.  However, if
management can't buy support for it from some big comapny it's not going to
happen!




                    Stefan Gybas
                    <gybas@trustsec       To:     [EMAIL PROTECTED]
                    .de>                  cc:
                    Sent by: Linux        Subject:     Re: Apache 1.3/Tomcat/JBoss
                    on 390 Port
                    <[EMAIL PROTECTED]
                    ARIST.EDU>


                    10/23/02 05:37
                    PM
                    Please respond
                    to Linux on 390
                    Port






Scott Chapman wrote:

> I want to be able to hook Apache to Tomcat for handling servlets/JSPs.
My
> understanding is that mod_jk or mod_jk2 is probably the best way to
connect
> the two, but I can't seem to find a binary for 390 of those anywhere.

There's also mod_webapp which I would recommend for new installations.
All the Apache connectors are in the jakarta-tomcat-connectors archive
at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/

 > My attempts to build them are failing with
"java.lang.NoClassDefFoundError:
> org/xml/sax/SAXParseException" and I haven't been successful in getting
ant
> (or whatever needs it) to recognize the sax2r2.jar file.

I don't know what's missing here but I was able to build Tomcat 4.1.12
with Ant, Xalan 2 and Xerces 2 without any problems. You don't even need
any Java classes or Java compiler to just build mod_webapp:

cd connectors/webapp
autoconf
./configure --disable-java --disable-docs --disable-apidoc-java \
             --disable-apidoc-c --with-apxs=/usr/bin/apxs2

This is for Apache 2.0, use /usr/bin/apxs (or wherever apxs is installed
on your distribution) for Apache 1.3. You probably need to install the
Apache development package for this.

> If anybody has done this and can offer any pointers/suggestions, I'd
> appreciate it!  Surely the necessary binaries are out there someplace!

Yes they are: You could switch to Debian/390 and install the
libapache-mod-jk package for Apache 1.3 or libapache2-mod-webapp for
Apache 2.0. ;-)

Regards,
Stefan Gybas

Reply via email to