facebook

Tomcat 5 classloader

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #210950 Reply

    antoine
    Member

    Firstaval thank you so much for my eclipse that’s really a great product. 😀
    I have a question about tomcat plugin configuration.
    I’m developping a new Realm class for authentication in Tomcat Container so this class had to be reacheable by the classloader. I tried to put my package in “class path” or “library path” of tomcat 5 plugin control panel but it didn’t worked : the system didn’t found others org.apache.catalina classes.

    Readng the tomcat doc I found that I had to put my package in a jar in $TOMCAT_HOME$/server/lib. It works but as I’m working on these classes it’s quite fastidious to publish a jar in this path each time I make change. Is there any trick to publish this classes in a directory accesible by Tomcat classloader ? I was told that sysdeo plugin for Tomcat has such a feature but as I don’t want to mix plugins if not necessary I would prefer use a solution with your pulgin.

    Thanks again

    #210956 Reply

    Scott Anderson
    Participant

    Antoine,

    Adding your jar file to the ‘Append to classpath’ list on Window > Preferences > MyEclipse > Application Servers > Tomcat 5 > JDK should be all you need to do as this literally places your jar file at the end of the classpath that is used to launch Tomcat. Can you try this and tell us exactly what errors you’re getting when you do it, versus what happens when you don’t?

    Also, can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Tomcat 5 classloader

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