Loading DLLs in Tomcat

2002-07-11 Thread Stephan Wiesner

I'm trying to load a DLL into a servlet. It works fine if I start the class
as a standard Java file with a main-method.
The very same class generates an error when used as a servlet though .-(

There is no difference whether I use a relative or an absolut path:
System.loadLibrary(hwapi.dll);
System.load(d:\\dlr\\his60\\hwapi.dll);


2002-07-11 08:10:47 - Ctx( /test ): Exception in: R( /test +
/servlet/HwapiOpenServlet + null) - java.lang.UnsatisfiedLinkError:
nativeInit
at com.hyperwave.hwapi.HWAPI.nativeInit(Native Method)
at com.hyperwave.hwapi.HWAPI.init(HWAPI.java:31)
at AjpHwapiCall.openHwapi(AjpHwapiCall.java:468)
. . .



Stephan




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




dlls for tomcat

2002-07-09 Thread Grinvald, Edward

Hello all,
My application uses a dll through a JNI as one of the first things that
get loaded. Tomcat is unable to find the dll when i start it through the
startup scripts. However, if i add it in wrapper.properties under
wrapper.ld_path, all is well. Which variable or which config file do i have
to change to make the startup scripts pick up the dll same was as the
service does.
 
Thank You,
 
Edward Grinvald
Computer Associates International
Programmer, Storage Development
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
1-631-342-6000 x76350