Hi -
A couple of things....JK2 is the "preferred" connector only for the Tomcat
team. :) The Tomcat side of JK2 is considered stable, the Apache side of
JK2 is still considered "beta". JK is considered "stable" on both sides,
though the Tomcat team is moving to JK2 instead of JK.
- in server.xml, you can either leave the connector using the
CoyoteConnector class enabled, as it will handle AJP13 and AJP14 (JK and
JK2, respectively), or you can disable that connector and enable the
connector that uses the Ajp13Connector class. Whichever connector you
choose, make a note of what port it is using, and also make sure every other
connector is disabled except for the stand-alone connector on 8080 (you can
use 8080 for debugging/testing, then when in production disable that one,
too). So going forward, there should only be 2 connectors disabled, 8080
and some other port (AJP13/JK typically uses 8009 but it doesn't really
matter as long as the Apache side is configured with the same port).
- building the Apache side of connectors, using ant is not required. You
can use the standard ./configure method. For example (JK2, Apache2):
o unpack the connectors
o cd CONNECTOR_SRC/jk/native2
o chmod 755 buildconf.sh
o ./buildconf.sh
o ./configure --with-apxs=/path/to/apache-1.3/bin/apxs
--with-apxs2=/path/to/apache-2/bin/apxs --with-java-home=${JAVA_HOME}
--with-tomcat41=${CATALINA_HOME}
o make
should leave you with CONNECTOR_SRC/jk/build/jk2/apache2/mod_jk2.so. Copy
this to Apache's modules directory. Likewise for JK if you want that one.
As far as configuring the connectors themselves, that's something that is
covered quite a bit elsewhere, and the configuration is different for JK and
JK2. So, if you want to post back here when you sort out which connector
you want to use and which one was built, the list can help you out.
John
> -----Original Message-----
> From: Harry Sokol [mailto:harry@;acmi.net.au]
> Sent: Monday, October 21, 2002 2:24 AM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat 4.1.12 mod_jk2 Apache 2.0.43 build and config
> issues on
> So laris 8
>
>
> Hi all,
>
> We're having copious grief here trying to plug Apache 2.0.43
> and Tomcat
> 4.1.12 together with mod_jk/Coyote. Any advice or assistance
> will be very
> gratefully recieved.
>
> So far we're working on the belief that 4.1.12 is
> preconfigured to run with
> mod_jk2 and therefore that's the connector of choice.
> However we're getting
> some strange errors when we run through the build process as
> documented at
> various places on the web.
>
> The process we've gone through so far has been:
>
> Downloaded the jakarta-tomcat-connectors-4.1.12-src
> Downloaded and installed ant (for which we also had to
> download and install
> gnu tar as Solaris tar just spits checksum errors)
> unzipped / untarred etc
> configured the build.properties files in /util /jk and
> /coyote as per the
> documentation
>
> however when we then try and run ant we're getting the
> following 11 compile
> errors, see below:
>
> I'm confused.
>
> Could someone throw a little light on to this for me.
> Alternatively, could
> someone assist me with the process of converting the
> server.xml in 4.1.12 to
> run with the older mod_jk (if that's deemed a good idea).
>
> Many thanks in advance.
>
> Tref Gare/ Harry Sokol
>
> Error output follows
>
> <snip>
> ACMIFSQWEB6-70:ant
> Buildfile: build.xml
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>