Re: jawin and Tomcat 5
"Christophe Warland (FRSGlobal)" <[email protected]> Wed, 7 Dec 2005 08:10:40 -0500
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
I use the following bat file: @echo off echo -------------------------------------- echo CATALINA_HOME: %CH% echo JAVA_HOME: %JH% echo server.xml: %SERVER_XML% echo LIBRARY_PATH: %LD_PATH% echo -------------------------------------- @echo on java -Dcatalina.home="%CH%" -Djava.endorsed.dirs="%CH%\common\endorsed" -Djava.library.path="%LD_PATH%" -cp "%CH%\bin\bootstrap.jar;%JH%\lib\tools.jar" org.apache.catalina.startup.Bootstrap -config "%SERVER_XML%" start And I make sure that I have defined those 4 env variables correctly before running the script. Regards, -- C. -----Original Message----- From: Discussion of Java/Win32/COM integration with Jawin [mailto:[email protected]] On Behalf Of Bob Farnik Sent: Wednesday, December 07, 2005 1:17 PM To: [email protected] Subject: jawin and Tomcat 5 My standalone Java application works fine using jawin (with -Djava.library.path=...), but I cannot get the same code working from JSP web application hosted by Tomcat 5. It looks like it cannot find jawin.dll. I am getting java.lang.NoClassDefFoundError MyBeans.JavaNativeBridge.<init>(JavaNativeBridge.java:134) org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:50) The index.jsp uses: <%@ page language="java" contentType="text/html;charset=ISO-8859-1" import="MyBeans.*"%> <jsp:useBean id="oJNB" scope="session" class="MyBeans.JavaNativeBridge" /> <%... some JSP stuff calling oJNB methods ... %> Is there anything special that needs to be don in Tomcat to get it working?