- This topic has 3 replies, 2 voices, and was last updated 18 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
mituMemberI have developed a web applocation using MyEclipse. The application runs fine when I start Tomcat from within MyEclipse. But when i start tomcat from outside eclipse(i.e from services or tomcat5w.exe) then application fails. IS there any setting(like path..) that Myeclipse does which I need to do manually??
Help is appreciated.
Riyad KallaMemberMyEclipse doesn’t do anything magical, just double check your TOmcat settings, especially under Paths, to see if you changed the connector somehow to add extra JARs to the classpath that you might forget to do when you launch it externally.
If that doesn’t help, please be more specific about “fails”. Exception? What is it? etc?
mituMemberThanks for the reply. I should have been more specific. My application uses a dll( that I created) which in turn uses some system dlls (From system32). When I run tomcat from inside eclipse, the application is able to find the dll and also the dependent dlls. But when I start tomcat from services, I get the error “Can’t find dependent libraries”. So how come the same application behaves differently depending on where I run the tomcat from?
I checked the Paths for the Tomcat settings inside Eclipse….it is all blank.
Riyad KallaMemberHmm, I have no idea. As soon as you said DLL, the first thing that popped into my head was that under the Paths settings for any connector we let users “Append to Library Path”, which is what you need to do for directories containing DLLs for your project. But if what you are saying is true and all the boxes are blank, I have no idea how Tomcat is able to find the resources from inside MyEclipse and not outside of it… strange.
In order to let Tomcat launched externally to find the DLLs, they need to be in your library path, I think this tip might help:
http://www.inonit.com/cygwin/jni/helloWorld/load.html -
AuthorPosts