We are trying to get the mod_jk working on FreeBSD 4.4, tomcat 4.0.4,
apache 2.0.39, jdk 1.4.0
We have so far successfully built mod_jk2.so and all the jars, but now
are having problems with libjkjni.so
Can somebody help, PLEASE?!! WE ARE SO CLOSE...
-------- what we've done --------
updated from cvs jakarta-tomcat-connectors (~15:00 GMT+00)
${conn_root}/utils: cp build.properties.sample build.properties
ant
${conn_root}/jk: cp build.properties.sample build.properties
in build.properties:
set catalina.home
set tomcat4.home to catalina.home
set apache.home
${conn_root}/coyote
cp build.properties.sample build.properties
ant
${conn_root}/
ant
${conn_root}/
cp jtc.jar ${catalina.home}/server/lib
cp ${jtc.home}/jk/build/lib/tomcat-jni.jar ${catalina.home}/bin
cd ${catalina.home}/server/lib
rm tomcat-ajp.jar tomcat-util.jar tomcat-coyote.jar tomcat-http11.jar
cd ${catalina.home}
vi conf/server.xml
add coyote connector:
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
${conn_root}/jk
chmod -r +x *.sh
./buildconf.sh
vi configure
// find key --no-verify and remove it - in other way following
configure run fails with message "--no-verify requires host" or
something else
./configure --with-apxs=/usr/local/apache2/bin/apxs
--with-java-home=${JAVA_HOME} --with-java-platform=2 -enable-jni
// in common, apache2 and jni folders need to edit Makefile because (my
shell is csh)
// a) libtool must be defined as "libtool" but not "/bin/csh libtool"
b) in some places in Makefile's statement $< I've replaced by
certain file name ( .la). I don't know why it doesn't work (we're new to
unix C programming)
make
make install
${conn_root}/jk/apache2
cp mod_jk.so /usr/local/apache2/modules
-------- QUESTION ---------
Where can we find .so library to place into ${catalina.home}/lib folder?
It must be libjkjni.so, or something like that, right?
We are mainly folowing instructions from
http://www.pubbitch.org/jboss/mod_jk2.html
and from http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
Any more advice, pointers, ideas, suggestions - will be greatful for
_anything_
Thanks in advance!!
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>