You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jason Symons <js...@microsourceonline.com> on 2003/08/27 20:30:25 UTC

[SOLVED]: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem

It turns out if you just wait a bit before trying to pull up any tomcat-handled pages everything runs fine. It would seem that it just takes a little time for tomcat to be loaded in process with Apache.

JS


*********** REPLY SEPARATOR  ***********

On 26/08/2003 at 1:32 PM Jason Symons wrote:

>I'm not sure if this helps at all, but here is the output of the
>stderr.log from when one of the tomcat-handled pages is loaded first...
>Anybody have an idea of what might be causing the
>"java.lang.UnsatisfiedLinkError: Expecting an absolute path of the
>library: inprocess" error?
>
>TomcatStarter: main()
>Try  org.apache.tomcat.startup.Main
>Try  org.apache.catalina.startup.BootstrapService
>Starting org.apache.catalina.startup.BootstrapService
>Created catalinaLoader in: c:\Tomcat41\server\lib
>Aug 26, 2003 1:37:17 PM org.apache.commons.modeler.Registry loadRegistry
>INFO: Loading registry information
>Aug 26, 2003 1:37:17 PM org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>Aug 26, 2003 1:37:18 PM org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>Aug 26, 2003 1:37:22 PM org.apache.struts.util.PropertyMessageResources
><init>
>INFO: Initializing, config='org.apache.struts.util.LocalStrings',
>returnNull=true
>Aug 26, 2003 1:37:22 PM org.apache.struts.util.PropertyMessageResources
><init>
>INFO: Initializing, config='org.apache.struts.action.ActionResources',
>returnNull=true
>Aug 26, 2003 1:37:23 PM org.apache.struts.util.PropertyMessageResources
><init>
>INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
>returnNull=true
>Aug 26, 2003 1:37:28 PM org.apache.jk.common.ChannelSocket init
>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>Aug 26, 2003 1:37:28 PM org.apache.jk.common.ChannelJni init
>INFO: JK2: listening on channel.jni:jni
>java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library:
>inprocess 
>	at java.lang.Runtime.load0(Unknown Source)
>	at java.lang.System.load(Unknown Source)
>	at org.apache.jk.apr.AprImpl.loadNative(AprImpl.java:292)
>	at org.apache.jk.apr.AprImpl.init(AprImpl.java:243)
>	at org.apache.jk.server.JkMain.start(JkMain.java:354)
>	at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:171)
>	at
>org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1180)
>	at
>org.apache.catalina.core.StandardService.start(StandardService.java:506)
>	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>	at
>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>	at java.lang.reflect.Method.invoke(Unknown Source)
>	at
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
>	at
>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>	at java.lang.reflect.Method.invoke(Unknown Source)
>	at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
>	at java.lang.Thread.run(Unknown Source)
>Aug 26, 2003 1:37:28 PM org.apache.jk.apr.AprImpl init
>INFO: JK2: Initialized apr
>Aug 26, 2003 1:37:28 PM org.apache.jk.server.JkMain start
>INFO: Jk running ID=0 time=0/125  config=c:\Tomcat41\conf\jk2.properties
>Aug 26, 2003 1:37:51 PM org.apache.jk.common.ChannelSocket
>processConnection
>INFO: connection timeout reached
>
>*********** REPLY SEPARATOR  ***********
>
>On 25/08/2003 at 2:24 PM Jason Symons wrote:
>
>>I've run into a problem with my setup of Apache 2.0.47, Tomcat 4.1.27 LE,
>>JDK1.4, and JK2 connected using JNI. If I stop the Apache service, and
>>then restart it, I get a 505 Server Error unless I either reload the page
>>a few times, or load a page that isn't passed to Tomcat first, once that's
>>done everything works fine. This problem only occurs if the Apache service
>>is stopped, if I reboot the machine, everything works fine. Has anybody
>>else encountered this problem, if so does anybody know what is causing it,
>>or is this just something I shouldn't worry about as it's only a minor
>>inconvenience?
>>
>>JS
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org