If anyone has the jni stuff working on osx i'd be interested in knowing how.. I've tried symlinking to the header files and such like to no avail. But this is by no means urgent as this is for our development server rather than live one that runs linux.
Mark
On 22 Apr 2004, at 10:38, Mark Lowe wrote:
Hello
I've been trying to move from jk to jk2 and experincing some problems.
I've successfully compiled jk2 and installed it from the cvs version.
#start compiling jk2
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login password: anoncvs
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-connectors
cd jakarta-tomcat-connectors/jk/native2 ./configure --with-apxs2=/usr/sbin/apxs make sudo cp ../build/build/jk2/apache2/mod_jk2.so /usr/libexec/apache2 #end compiling jk2
Edited httpd.conf #httpd.conf LoadModule jk2_module libexec/apache2/mod_jk2.so JkSet config:file /etc/apache2/workers2.properties
<VirtualHost *> DocumentRoot /Library/WebServer/Documents ServerName foo.mydomain.com
<Location "/*.jsp"> JkUriSet group ajp13:localhost:9007 </Location>
<Location "/*.do"> JkUriSet group ajp13:localhost:9007 </Location> </VirtualHost> #end httpd.conf
created and edited workers2.properties
touch /etc/apache2/workers2.properties vi /etc/apache2/workers2.properties
#Start workers2.properties [logger.apache2] level=DEBUG
[shm] file=/private/var/log/apache2/jk2.shm size=1048576
[channel.socket:localhost:9007] port=9007 host=127.0.0.1
[ajp13:localhost:9007] channel=channel.socket:localhost:9007
[uri:localhost/*.jsp] group=ajp13:localhost:9007 [uri:localhost/*.do] group=ajp13:localhost:9007 [uri:localhost/servlet/*] group=ajp13:localhost:9007 #End workers2.properties
The idea being to forward all requests for /*.jsp and /*.do to tomcat.
When i tried changing jk2.properties i get
#Exception
APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
#End exception
#start jk2.properties handler.list=request,channelJni #end jk2.properties
So I thought perhaps I need to configure and compile jk2 with jni
./configure --with-tomcat41=/Library/Tomcat \ --with-apxs2=/usr/sbin/apxs \ --with-java-home=/Library/Java/Home \ --with-jni
I've tried various java_home's but to no avail..
Has anyone done this? Can anyone help?
Cheers Mark
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
