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