Re: jawin and Tomcat 5

"Christophe Warland (FRSGlobal)" <[email protected]> Wed, 7 Dec 2005 09:17:10 -0500
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
LD_PATH should be a list of directories with the DLL that are being loaded
through JNI. On my machine, LD_PATH=c:\proj\jawin-bin\ and the dll of jawin
is put in there.

The jawin jar file is in the WEB-INF\lib directory.

On top of that, you should probably use double quotes around the -D...
values because you have white spaces in them.

Regards,

Christophe

-----Original Message-----
From: Discussion of Java/Win32/COM integration with Jawin
[mailto:[email protected]] On Behalf Of Bob Farnik
Sent: Wednesday, December 07, 2005 2:36 PM
To: [email protected]
Subject: Re: jawin and Tomcat 5

Thanks for a quick reply Christopher.
I tried the batch with all variables set to match my environment, but the
result is still the same, only the stack trace looks a bit different:

java.lang.NoClassDefFoundError
 com.develop.jawin.IdentityManager.registerProxy(IdentityManager.java:259)
 com.develop.jawin.UnknownPtr.<clinit>(UnknownPtr.java:48)
 MyBeans.JavaNativeBridge.<init>(JavaNativeBridge.java:134)
 org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:50)

Where do you place jawin jar and dll (LD_PATH)?

If I add -Djava.library.path=C:\Program Files\Apache Group\Tomcat
5.5\webapps\myjawinapp\WEB-INF\lib to the Tomcat Java Options list in Tomcat
5 Configuration tool, then strangely the exception stack trace looks a bit
different:

java.lang.NoClassDefFoundError
 BSCBeans.JavaNativeBridge.<init>(JavaNativeBridge.java:134)
 org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:50)