Hi Silvai,
You need to register the dll in your system's registry also. I hope you did
that. If not, just try doing that.
--Manish--
Silvia Gaspar wrote:
> Hi,
>
> Yes, I put the dll in hat directory and it didn�t work. I don�t have
> any .lib. Is it necessary?
>
> Com os nossos melhores cumprimentos,
> ----------------------------------------------------------------------------
> -------------------------------
> Compta - Equipamentos e Servi�os de inform�tica, S.A
>
> S�lvia Gaspar
> Engenharia de Sistemas e Aplica��es
> Implementa��o
> Consultora S�nior
> * TEL: +351.21. 350 14 00
> * Directo: +351.21. 313 55 51
> * Fax: +351.21.352 02 02
> * e-mail: [EMAIL PROTECTED]
> * WWW: www.compta.pt
>
> > -----Original Message-----
> > From: Manish Bhatnagar [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, August 07, 2000 12:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Servlets and Dlls
> >
> > Hi Silvia!
> >
> > Did you put the .dll and .lib in <server_root>/native_lib directory (in
> > JWS2.0)?
> >
> > --Manish
> >
> > Silvia Gaspar wrote:
> >
> > > Hi,
> > >
> > > I�m trying to run a servlet that call a dll, but it gives me an
> > > internal error.
> > > Can someone help me?
> > >
> > > Error:
> > > 500 Internal Server Error
> > > The servlet named invoker at the requested URL
> > >
> > > http://localhost:8080/servlet/CriaSessaoServlet
> > > reported this exception: CriaSessaoServlet. Please
> > report
> > > this to the administrator of the web server.
> > >
> > > java.lang.UnsatisfiedLinkError: CriaSessaoServlet at
> > > CriaSessaoServlet.doGet(CriaSessaoServlet.java:37) at
> > > javax.servlet.http.HttpServlet.service
> > > (HttpServlet.java:715) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at
> > > com.sun.server.ServletState.callService(ServletState.java:226) at
> > >
> > com.sun.server.ServletManager.callServletService(ServletManager.java:936)
> > at
> > >
> > com.sun.server.http.servlet.InvokerServlet.service(InvokerServlet.java:137
> > )
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at
> > > com.sun.server.ServletState.callService(ServletState.java:226) at
> > >
> > com.sun.server.ServletManager.callServletService(ServletManager.java:936)
> > at
> > >
> > com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:42
> > 3)
> > > at
> > >
> > com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:7
> > 9)
> > > at com.sun.server.http.stages.Runner.process(Runner.java:79) at
> > > com.sun.server.ProcessingSupport.process(Compiled Code) at
> > > com.sun.server.Service.process(Service.java:204) at
> > > com.sun.server.http.HttpServiceHan
> > >
> > > There is the code:
> > >
> > > import java.io.*;
> > > import java.util.*;
> > > import javax.servlet.*;
> > > import javax.servlet.http.*;
> > > public class CriaSessaoServlet extends HttpServlet{
> > >
> > > public void init(ServletConfig config){
> > > }
> > > private native String CriaSessaoServlet(String Campos[]);
> > > static {
> > > System.loadLibrary ("SessaoARS");
> > > }
> > > //public static void main (String [] args){
> > > public void service(HttpServletRequest req,HttpServletResponse
> > > resp){
> > > String status;
> > > String Campos[]=new String[13];
> > > CriaSessaoServlet aplic=new CriaSessaoServlet();
> > >
> > > Campos[0]="SALDANHA";
> > > Campos[1]="N�o Tem";
> > > Campos[2]="Grupo Internet";
> > > Campos[3]="212121212";
> > > Campos[4]="[EMAIL PROTECTED]";
> > > Campos[5]="Nao";
> > > Campos[6]="Web";
> > > Campos[7]="Grave";
> > > Campos[8]="Teste via Web";
> > > Campos[9]="Inserido via Java e APIs";
> > > Campos[10]="Lisboa";
> > > Campos[11]="SIS";
> > > Campos[12]="Remedy";
> > >
> > > status=aplic.CriaSessaoServlet (Campos);
> > >
> > > System.out.println(status);
> > > }
> > > }
> > >
> > > Regards,
> > > Com os nossos melhores cumprimentos,
> > >
> > --------------------------------------------------------------------------
> > --
> > > -------------------------------
> > > Compta - Equipamentos e Servi�os de inform�tica, S.A
> > >
> > > S�lvia Gaspar
> > > Engenharia de Sistemas e Aplica��es
> > > Implementa��o
> > > Consultora S�nior
> > > * TEL: +351.21. 350 14 00
> > > * Directo: +351.21. 313 55 51
> > > * Fax: +351.21.352 02 02
> > > * e-mail: [EMAIL PROTECTED]
> > > * WWW: www.compta.pt
> > >
> > >
> > __________________________________________________________________________
> > _
> > > 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
> >
> > --
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Live-Your-Dream~~~~
> > Obstacles are things a person sees when he takes his eyes off his goal.
> > -E.
> > Joseph Cossman
> >
> > __________________________________________________________________________
> > _
> > 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
>
> ___________________________________________________________________________
> 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
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Live-Your-Dream~~~~
Obstacles are things a person sees when he takes his eyes off his goal.
-E.
Joseph Cossman
___________________________________________________________________________
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