Link to home
Start Free TrialLog in
Avatar of bhuvneshsharma
bhuvneshsharma

asked on

Tomcat as Service and load a dll

hi All,
I am running tomcat 4.1.29 as windows service.
The application which i am attempting to deploy on the server requires a dll to work.

When i run tomcat standalone , the app  runs just fine as it is able to find the dll.

But when i set it as the service , i get java.library.path error , basically meaning the application is not able to load the dll.

Does tomcat do something special when it runs as a service.

note: i have added dll to windows path.


Where else i need to do the setting so that service can load the also.

thanks in anticipation
Bhuvnesh Sharma
Avatar of ronan_40060
ronan_40060
Flag of United States of America image

Hello Bhuvanesh Sharma

Its the  jvm.dll that needs to be set  in the path so you need  search and correct the path for dll and things will work just fine.
When u make path chances you need  to first uninstall the service and then install it again
Ronan
Avatar of bhuvneshsharma
bhuvneshsharma

ASKER

Ronan,
the application requires a custom dll to work. I have already added that to the system path. Tomcat as a service does not recoganize that where as if running standalone it works fine.

it is not the issue with jvm.dll , because i think java setting are fine.

thanks for your help
Bhuvnesh
SOLUTION
Avatar of samri
samri
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks guys,
I kind of got it fixed , strange thing it was not able to find the dll if i ran the service with localsystem account. But in case i ran it with a account which had administrative rights to the machine, it worked fine.

Not sure what access rights on the machine are required for that. Still searching will let you know.:)

PS: I had already added the custom dll to PATH variable .

thanks
Bhuvnesh
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello Periwinkle
Samri and I both tried to give the answers .
The points should be splitted and wud be given grade B atleast
regards
Ronan
Ronan,
I have split the points as suggested.


thanks for your help

Bhuvnesh Sharma