Thats the file that wouldn't build as the configure script cant find the relevant include file.
I tried various ways of tricking it like symlinking the headers to a place where it could be found to no avail.
basically it wont build with the --with-jni option which is snide but i can live with it for now.
Mark
On 22 Apr 2004, at 15:17, Daniel Gibby wrote:
When you compiled the connector the second time, it should have created a lib_jkjni.so or jkjni.so in the same directory as your mod_jk2.so.
You need to copy that file as well to a location to specify where it is in your jk2.properties.
That is why you are getting the message about no jkjni library in your path. You have to tell it where it is.
Daniel
Mark Lowe wrote:
Okay.. mod_jk2 works now, by not changing jk2.properties at all.
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]
--------------------------------------------------------------------- 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]
