facebook

Deploying on Tomcat5.5

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #253637 Reply

    mitu
    Member

    I 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.

    #253651 Reply

    Riyad Kalla
    Member

    MyEclipse 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?

    #253671 Reply

    mitu
    Member

    Thanks 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.

    #253676 Reply

    Riyad Kalla
    Member

    Hmm, 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

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Deploying on Tomcat5.5

You must be logged in to post in the forum log in