facebook

Tomcat "endorsed" directory question/issue

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

    campbelldo
    Member

    Hi,

    I am running Eclipse (Version: 3.1.2 Build id: M20060118-1600) and MyEclipse (Version: 4.1.1 Build id: 20060309-4.1.1-GA). I also have Sun’s Java JDK 1.5.0_04 and Tomcat 5.5.

    When I start Tomcat “standalone” – i.e. from the command prompt, then any classes/jar’s in the “common/endorsed” directory are found and Tomcat starts fine and so does my application.

    If, however, I start Tomcat from within Eclipse (having set up the server through the MyEclipse provided options), it appears that the “common/endorsed” directory is being ignored, so Tomcat start properly, but my application does not see the classes it needs in the “common/endorsed” directory.

    My “application” is simply a web service that uses the JAX-WS (2.1 EA3) stack (these are the jar files in common/endorsed) to provide the service and works just fine “outside” of Eclipse, but having just installed MyEclipse, I wanted to be able to do some extra debugging, so want to start Tomcat within Eclipse.

    I could move the files to common/lib and hey-presto, it works, but I have several Tomcat instances and each of these uses the same Tomcat (and hence common/endorsed) code-base, so I don’t want to have to have a copy per instance.

    Any help appreciated.

    Thanks.

    Dominic.

    #263338 Reply

    campbelldo
    Member

    As a quick-fix workaround, I have dropped the jars into the JRE’s endorsed directory, which at least allows me to continue development/testing with multiple servers and still all from the same codebase.

    #263565 Reply

    Greg
    Member

    Dominic,

    You can modify your preferences for Tomcat 5 within MyEclipse and add additional directories to the classpath.

    Go to: Window > Preferences > MyEclipse > Application Servers > Tomcat 5 > Paths
    On this page you can add specific libraries or specific directories to the classpath of the tomcat server. Add the paths, hit OK and then start tomcat within MyEclipse and you should be ok.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Tomcat "endorsed" directory question/issue

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