File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat not recognizing the DLL files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat not recognizing the DLL files" Watch "Tomcat not recognizing the DLL files" New topic

Tomcat not recognizing the DLL files

Arnav Velimala
Ranch Hand

Joined: Jun 04, 2007
Posts: 37
I've an application which am trying to deploy in Window's Tomcat 5.5 - as an Axis Webservice.
The application uses few DLL files, which I've placed the in the dir - $TOMCAT_HOME\common\endorsed\ and specified the same in the java.library.path.

But the DLL files are not recognized by the Tomcat. Following Exception is thrown:

I also tried by putting the DLLs in a jar files..but no use.

Following is the batch file I created to start a Tomcat.

I've created a separate batch file because, tomcat 5.5 does not have any batch files where I can set the above env variables or lib path.

Where should be the DLL placed in Tomcat ??
Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
does it work if you don't set the java.library.path variable, and place the DLL in a windows path, such as C:\windows\system32 ?

I'm not sure if the Java -D value can use backslashes, or contain spaces without being quoted.

for example, does this work ?

(note the quotes and forward slashes)

and if that doesn't work, what about escaping the backslashes in the quotes:

Error: Keyboard not attached. Press F1 to continue.
I agree. Here's the link:
subject: Tomcat not recognizing the DLL files
It's not a secret anymore!