Acess JDOM from Servlet

Discussion in 'Java' started by Ekim, Feb 12, 2004.

  1. Ekim

    Ekim Guest

    hy,

    I'm using Tomcat for my Servlet, and within the servlet I use my self
    programmed class, which shall access some JDOM-functions.

    My problem is that the JDOM-classes are not found when I want to execute the
    servlet.
    I always get an error-message similar to this one:

    ...................
    root cause

    java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
    ............The jdom.jar-file on the other hand is included in the classpath
    correctly,because when I want to compile the file from the command
    line,everything is okay!So where's my mistake?I hope you can help me,thanks
    in advance,ekim!
    Ekim, Feb 12, 2004
    #1
    1. Advertising

  2. Ekim

    Wendy S Guest

    "Ekim" <> wrote
    > I'm using Tomcat for my Servlet, and within the servlet I use my self
    > programmed class, which shall access some JDOM-functions.
    > My problem is that the JDOM-classes are not found when I want to execute

    the
    > servlet.
    > I always get an error-message similar to this one:
    > java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
    > ...........The jdom.jar-file on the other hand is included in the

    classpath
    > correctly,because when I want to compile the file from the command
    > line,everything is okay!So where's my mistake?I hope you can help

    me,thanks
    > in advance,ekim!


    Tomcat forms its own classpath for each servlet context. Place jdom.jar (or
    whatever it's called) in /WEB-INF/lib for your context, and it will be found
    at runtime.

    --
    Wendy in Chandler, AZ
    Wendy S, Feb 12, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wendy S
    Replies:
    1
    Views:
    6,332
    Darren Davison
    Aug 5, 2003
  2. circuit_breaker
    Replies:
    2
    Views:
    1,984
    Jack Jia
    Apr 4, 2004
  3. Bernd Oninger
    Replies:
    4
    Views:
    12,207
    GIMME
    Jun 21, 2004
  4. Tinker
    Replies:
    4
    Views:
    5,264
    Harry Bosch
    Oct 9, 2005
  5. Bernd Oninger
    Replies:
    3
    Views:
    2,864
    GIMME
    Jun 21, 2004
Loading...

Share This Page