https://issues.apache.org/bugzilla/show_bug.cgi?id=47712
Summary: NoSuchFieldException when trying to use Tomcat Native
library
Product: Tomcat 5
Version: Unknown
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Nicolas <[email protected]> 2009-08-20 02:52:57
PDT ---
I tried to add the Tomcat Native library to tomcat 5.5.28.
After compiling the library and configuring tomcat to use it, I still got the
same message (the library is not found).
I changed the log level to finest for the class
org.apache.catalina.core.AprLifecycleListener to get more details about the
problem and I got:
java.lang.NoSuchFieldException: TCN_MAJOR_VERSION
at java.lang.Class.getField(Class.java:1507)
at
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:91)
...
When I looked the source code (5.5.28), I can see that the lifecycleEvent
function does:
1. load the class org.apache.tomcat.jni.Library into the variable clazz
2. invoke 'initialize' on clazz
3. load the class org.apache.tomcat.jni.SSL into the same variable clazz
4. invoke 'randSet' on clazz
5. get field 'TCN_MAJOR_VERSION' of clazz (line 91)
The step 5 throws the exception: there is no field TCN_MAJOR_VERSION in
org.apache.tomcat.jni.SSL.
I guess that this field should be retrieved from org.apache.tomcat.jni.Library,
not org.apache.tomcat.jni.SSL (move step 5 before step 3)
Cheers,
Nicolas
--
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: [email protected]
For additional commands, e-mail: [email protected]