You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dr...@viaginterkom.de on 2000/07/25 16:03:44 UTC
Internal Servlet Error when using JNI in servlet
I get the following error while trying to execute the servlet we are porting
from the WinNT platporm (IIS 4 + JRun 2.3):
Error: 500
Location: /examples/servlet/cookieauth.AuthServlet
Internal Servlet Error:
java.lang.NoClassDefFoundError: cookieauth/IdeaJNIBean
at cookieauth.IdeaBean.(Compiled Code)
at cookieauth.AuthServlet.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled
Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
The IdeaJNIBean is the wrapper for the C shared library implementing the IDEA
algorithm. And the shared library is being found, because in oposite case the
following error message comes up:
Error: 500
Location: /examples/servlet/cookieauth.AuthServlet
Internal Servlet Error:
java.lang.UnsatisfiedLinkError: no ideaJNI in shared library path
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Error.<init>(Compiled Code)
at java.lang.LinkageError.<init>(Compiled Code)
at java.lang.UnsatisfiedLinkError.<init>(Compiled Code)
at java.lang.Runtime.loadLibrary(Compiled Code)
at java.lang.System.loadLibrary(Compiled Code)
at java.io.PrintWriter.print(Compiled Code)
at cookieauth.IdeaBean.<init>(Compiled Code)
at cookieauth.AuthServlet.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled
Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
Any suggestions / ideas are greatly apreciated.
Drasko