This was originally bug 48300 but was lost in issues.a.o data loss on 2009-11-26/27 and re-created from the archives. AprLifecycleListenes says "apr not found" but loads Http11AprProtocol connector 27.11.2009 21:07:45 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/../lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib 27.11.2009 21:07:45 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 27.11.2009 21:07:45 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 27.11.2009 21:07:45 org.apache.coyote.ajp.AjpAprProtocol init
Seems that org.apache.tomcat.jni.SSL has no Field named TCN_MAJOR_VERSION as expected in org.apache.catalina.core.AprLifecycleListener line 91-93. This cause a java.lang.NoSuchFieldException: TCN_MAJOR_VERSION, caught by the catch(Throwable t) in line 94 in org.apache.catalina.core.AprLifecycleListener. APR gets loaded but worong message is generated: INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib ...
This was originally attachment ID 24631 that was lost as part of the issues.apache.org data loss on 2009-11-26/27. Note that this attachment ID has since been re-used. The original attachment comment was: A first Patch
The patch is in the wrong format. Please use diff -u. Also, you are confusing this issue with bug 47712 which has already been fixed.
sorry for not seeing bug #47712 *** This bug has been marked as a duplicate of bug 47712 ***
Again, you have misunderstood this bug. It is not at all related to bug 47712.
The only difference (related to bug 47712) i see is that APR get loaded even if AprLifecycleListenes was commented out, right? The other problems seems solved by fixing bug 47712. I had not reported the problem if I had found previously bug 47712
Exactly. APR getting loaded even if the listener disabled is a bug. That is totally separate from the issue with the APR listener described in 47712. The only similarity between these bugs is that they are both to do with the APR listener. There are two separate, independent bugs here. This bug has already been fixed in trunk. I have proposed the fix for back port to 6.0.x and 5.5.x.
This has been fixed in 6.0.x and will be included in 6.0.21 onwards.
This has been fixed in 5.5.x and will be included in 5.5.29 onwards.