David,

The line

Illegal Class name "jawin folder/develop/jawin/DispatchPtr")

is very suspicious - I'm pretty sure that the space in the path to your
class will cause problems.

Try renaming jawin folder to just jawin and rebuild the jar.

Andy

> -----Original Message-----
> From: David Sierra Fernández [mailto:[EMAIL PROTECTED]
> Sent: 21 November 2003 09:16
> To: [EMAIL PROTECTED]
> Subject: Tomcat and a DLL
>
>
> Hi all,
>
> I have developed a small app with jawin (a java2COM bridge). I have used
> eclipse as a development tool and I referenced the jawin libraries and all
> works ok.
>
> the problem is when i deploy the app to Tomcat 4 and try to use a jsp to
> invoke my classes, I get an error that I can't solve.  I think is
> a problem
> of ubication of JAWIN libraries because when I try to get other class that
> does not use JAWIN, all works perfectly. I simplified the JSP in order to
> detect the error and I let it to invoke a simple constructor but goes on
> crashing!
>
> I tried to put jawin.dll and jawin.jar in the same directory that
> the class,
> in the app lib directory, in the common/lib directory of tomcat, in
> system32, in lib of the JRE, in bin of the JRE..... it's useless, I don't
> know how to solve the error.....
>
>
> The JSP is just as this.....
>
>
>
> ******************************************************************
> **********
> *********
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <%@ page import="es.tid.coche.correo.GestorCorreo" %>
>
>  <%
>   GestorCorreo gestor = new GestorCorreo();
> %>
>
>
> <html>
> <head>
> </head>
> <body>
>
> <h1>MAIL APPLICATION</h1>
>
> </body>
> </html>
> ******************************************************************
> **********
> *********
>
> As you can see I only invoke the constructor but it crashes.
> I have emptied the constructor method and works pretty fine (doing
> nothing...obviously)
> but when i make a call to an object of the library it crashes.
> This does not happen when i use eclipse...
>
> import com.develop.jawin.*;
> import com.develop.jawin.win32.*;
> import java.util.Vector;
> import es.tid.coche.beans.CorreoBean;
>
>
> the error I get in Internet Explorer is this:
>
> org.apache.jasper.JasperException: com/develop/jawin/DispatchPtr (Illegal
> Class name "jawin folder/develop/jawin/DispatchPtr")
>       at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
> per.java:2
> 48)
>       at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
>       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> pplication
> FilterChain.java:247)
>       at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> onFilterCh
> ain.java:193)
>       at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> erValve.ja
> va:260)
>       at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> text.invok
> eNext(StandardPipeline.java:643)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:480)
>       at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>       at
> org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> xtValve.ja
> va:191)
>       at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> text.invok
> eNext(StandardPipeline.java:643)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> java:480)
>       at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> DispatchPtr is a java class of the library that I use...
> any ideas?
>
>
> David Sierra Fernández
> e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to