My guess: you are starting tomcat from command line, not via invocation.
( so the JNI init method is not called ).
I'll try to add some extra checks and error messages in 3.3 ( for
graceful failure )
Costin
On Fri, 8 Jun 2001, Jonathan Harding wrote:
> I am trying to setup tomcat-3.2.1 for in-process and followed the
> instructions to the letter but when i try and start the service (NT
> service) the stderr log reports the following error:
>
> 2001-06-08 03:24:21 - ContextManager: Adding context Ctx( /examples )
> 2001-06-08 03:24:21 - ContextManager: Adding context Ctx( /admin )
> 2001-06-08 03:24:21 - ContextManager: Adding context Ctx( )
> 2001-06-08 03:24:21 - ContextManager: Adding context Ctx( /test )
> 2001-06-08 03:24:21 - ContextManager: Adding context Ctx( /bookstore )
> Failed to loadLibrary()
> D:\Java\sun\jakarta-tomcat-3.2.1\bin\win32\i386\jni_connect.dll
> java.lang.NullPointerException
> at
> org.apache.tomcat.service.JNIEndpointConnector.start(JNIEndpointConnector.java:110)
> at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
> My path is right, for arguments sake, am I supposed to use / or \ in
> directory paths.
>
> Regards
>
> Jonathan
>