Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

Problems tracking NoClassDefFoundError from Web Service

Thread view: 
earendil@merseymail.com - 18 Sep 2007 18:52 GMT
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.
Roedy Green - 18 Sep 2007 21:09 GMT
>NoClassDefFoundError

my condolences, see
http://mindprod.com/jgloss/runerrormessages.html#NOCLASSDEFFOUNDERROR
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.