tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Faine, Mark" <Mark.R.Fa...@msfc.nasa.gov>
Subject mod_jk2 - jni linking problems
Date Mon, 13 Jan 2003 17:44:34 GMT
Solaris 8
Apache 2.0.43
Tomcat 4.0.6

When I attempt to compile mod_jk using "ant native" the mod_jk.so
compiles but at jni section I get the following error:

jni:
       [so] Compiling 0 out of 37
Linking
/export/home/temp/appserv/jakarta-tomcat-connectors-4.0.6-src/jk/build/jk2/j
ni/libjkjni.so
.... a lot of output
...
....
       [so] StdErr:
       [so] /usr/local/sparc-sun-solaris2.8/bin/ld: cannot find -lapr
       [so] collect2: ld returned 1 exit status

BUILD FAILED
file:/export/home/temp/appserv/jakarta-tomcat-connectors-4.0.6-src/jk/native
2/build.xml:341: Link failed libjkjni

I'm guessing -lapr is apr library, which does exist and is in my
libraries search path??

Any help would be appreciated.

I assumed I might still be able (in the mean time) to get it working
without libjkjni.so so I attempted to do so.  Everything seems to be
operating correctly except that when I attempt to access a tomcat
resource through apache I get the following error.

If I try it as with socket:

[Mon Jan 13 11:15:01 2003] [error] channelUn.connect() connect failed 2
No such file or directory
[Mon Jan 13 11:15:01 2003] [error] ajp13.connect() failed
ajp13:/usr/local/tomcat/logs/jk2.socket
[Mon Jan 13 11:15:01 2003] [error] ajp13.service() failed to connect
endpoint errno=2 No such file or directory
[Mon Jan 13 11:15:01 2003] [error] ajp13.service() Error  forwarding
ajp13:/usr/local/tomcat/logs/jk2.socket 1 1
[Mon Jan 13 11:15:01 2003] [error] mod_jk.handler() Error connecting to
tomcat 120000
[Mon Jan 13 11:16:25 2003] [notice] caught SIGTERM, shutting down

If I try it with a local port:

[Mon Jan 13 11:08:24 2003] [error] channelSocket.open() connect failed
127.0.0.1:8009 146 Connection refused
[Mon Jan 13 11:08:24 2003] [error] ajp13.connect() failed
ajp13:localhost:8009
[Mon Jan 13 11:08:24 2003] [error] ajp13.service() failed to connect
endpoint errno=146 Connection refused
[Mon Jan 13 11:08:24 2003] [error] ajp13.service() Error  forwarding
ajp13:localhost:8009 1 1
[Mon Jan 13 11:08:24 2003] [error] mod_jk.handler() Error connecting to
tomcat 120000
[Mon Jan 13 11:08:35 2003] [error] channelSocket.open() connect failed
127.0.0.1:8009 146 Connection refused
[Mon Jan 13 11:08:35 2003] [error] ajp13.connect() failed
ajp13:localhost:8009
[Mon Jan 13 11:08:35 2003] [error] ajp13.service() failed to connect
endpoint errno=146 Connection refused
[Mon Jan 13 11:08:35 2003] [error] ajp13.service() Error  forwarding
ajp13:localhost:8009 1 1
[Mon Jan 13 11:08:35 2003] [error] mod_jk.handler() Error connecting to
tomcat 120000
[Mon Jan 13 11:14:11 2003] [notice] caught SIGTERM, shutting down

Seems I can't win either way.

Thanks,
-Mark

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message