You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/11/27 21:13:28 UTC

DO NOT REPLY [Bug 48300] New: AprLifecycleListener: Bogus behaviour with Http11AprProtocol and java.library.path

https://issues.apache.org/bugzilla/show_bug.cgi?id=48300

           Summary: AprLifecycleListener: Bogus behaviour with
                    Http11AprProtocol and java.library.path
           Product: Tomcat 5
           Version: 5.5.28
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Native:Integration
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: phps@gmx.de


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


------------------------

AprLifecycleListenes was commented out in server.xml, Http11AprProtocol
connector loaded anyhow

27.11.2009 21:08:23 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
27.11.2009 21:08:23 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
27.11.2009 21:08:23 org.apache.coyote.ajp.AjpAprProtocol init

------------------------

Only if i use a -Djava.library.path=/none AprLifecycleListenes fails really to
load http11AprProtocol connector and loads the desired
http11.Http11BaseProtocol

27.11.2009 21:02:23 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: /none
27.11.2009 21:02:23 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
27.11.2009 21:02:25 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48300] AprLifecycleListener: Bogus behaviour with Http11AprProtocol and java.library.path

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48300

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24631|0                           |1
        is obsolete|                            |

--- Comment #3 from Mark Thomas <ma...@apache.org> 2009-11-27 13:25:16 GMT ---
(From update of attachment 24631)
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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48300] AprLifecycleListener: Bogus behaviour with Http11AprProtocol and java.library.path

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48300

--- Comment #6 from Hendrik Saly <ph...@gmx.de> 2009-11-27 13:50:57 UTC ---
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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48300] AprLifecycleListener: Bogus behaviour with Http11AprProtocol and java.library.path

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48300

--- Comment #7 from Mark Thomas <ma...@apache.org> 2009-11-27 13:58:11 GMT ---
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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48300] AprLifecycleListener: Bogus behaviour with Http11AprProtocol and java.library.path

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48300

Hendrik Saly <ph...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #4 from Hendrik Saly <ph...@gmx.de> 2009-11-27 13:37:13 UTC ---
sorry for not seeing bug #47712

*** This bug has been marked as a duplicate of bug 47712 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48300] AprLifecycleListener: Bogus behaviour with Http11AprProtocol and java.library.path

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48300

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |

--- Comment #5 from Mark Thomas <ma...@apache.org> 2009-11-27 13:40:14 GMT ---
Again, you have misunderstood this bug. It is not at all related to bug 47712.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48300] AprLifecycleListener: Bogus behaviour with Http11AprProtocol and java.library.path

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48300

--- Comment #2 from Hendrik Saly <ph...@gmx.de> 2009-11-27 13:11:25 UTC ---
Created an attachment (id=24631)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24631)
A first Patch

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48300] AprLifecycleListener: Bogus behaviour with Http11AprProtocol and java.library.path

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48300

--- Comment #1 from Hendrik Saly <ph...@gmx.de> 2009-11-27 12:55:39 UTC ---
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 ...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org