Hi
I have a servlet which instantiates a class and that class in turn
instantiates a class which has two native methods .
when i try to run the servlet i get the UnsatisfiedLinkError
which according to the java docs says that it is because of
Java Virtual Machine cannot find an appropriate native-language definition
of a method declared native.
but if i run the class which has the native methods from the prompt it runs.
i am running tomcat3.1 & apache on a linux box
what can be the reason for the error
the error as tomcat shows is this
java.lang.UnsatisfiedLinkError: generateNum
at admin.PinGenerator.generatePins(PinGenerator.java, Compiled Code)
at admin.CreateBatch.processRequest(CreateBatch.java, Compiled Code)
at servlets.admin.ProcessRequestServlet.doPost(ProcessRequestServlet.java,
Compiled Code)
at servlets.admin.ProcessRequestServlet.doGet(ProcessRequestServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html