Problems tracking NoClassDefFoundError from Web Service

Discussion in 'Java' started by earendil@merseymail.com, Sep 18, 2007.

  1. Guest

    Hi

    I am encountering a NoClassDefFoundError and I'm struggling to trace
    the cause.

    The scenario is as follows:
    ClassA (an Axis/web service SOAPBindingImpl class) Instantiates ClassB
    which turn invokes a getInstance() method on ClassC (a singleton).
    getInstance() calls a protected ClassC constructor which attempts to
    parse and xml file via JaxME2.

    However, at the point of invoking ClassC.getInsance(), ClassB traps a
    NoClassDefFoundError with the offending class is
    javax.xml.bind.JAXBException. The jar for this class is JaxMe2
    jaxmeapi-0.5.2.jar file and is included on the classpath for the
    project.

    I am using Websphere Studio 5.1.1 and attempted to step through the
    code in debug mode. However I cannot step 'in' to ClassC.getInstance()
    at all: the exception is thrown immediately and I dont know why.
    ClassC appears to be the offendor but I cannot step into the code and
    therefore cannot see which is the offending JAXME call that is causing
    the problem! Consequently I really have no idea why this exception is
    being thrown at all as, up to that point, nothing in the JaxMe suite
    has been executed as far as I can see. (ClassC.geTInstance has a ctach
    block defined to (amongst other things) trap NoClassDefFoundError but
    to no avail)

    Is there something obvious I am overlooking here?

    Any pointers gratefully received. Many thanks.
     
    , Sep 18, 2007
    #1
    1. Advertisements

  2. Roedy Green Guest

    Roedy Green, Sep 18, 2007
    #2
    1. Advertisements

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. Carl Howells
    Replies:
    1
    Views:
    3,871
    Carl Howells
    Jan 28, 2004
  2. hocho888
    Replies:
    1
    Views:
    881
  3. Michael Averstegge
    Replies:
    0
    Views:
    4,563
    Michael Averstegge
    Jan 10, 2006
  4. Replies:
    1
    Views:
    2,627
    Irmen de Jong
    Jun 22, 2004
  5. Not Me
    Replies:
    1
    Views:
    3,476
    Not Me
    Jun 5, 2007
  6. Isaias Formacio Serna

    Web Service that calls an external Web Service

    Isaias Formacio Serna, Jan 28, 2004, in forum: ASP .Net Security
    Replies:
    5
    Views:
    469
  7. Replies:
    1
    Views:
    413
    Joe Kaplan \(MVP - ADSI\)
    Jun 14, 2006
  8. Leo Violette
    Replies:
    0
    Views:
    1,317
    Leo Violette
    Apr 17, 2009
Loading...