Help with JAXP (NoClassDefFoundError)
I copied a program SimpleJaxp.java (from Java & XSLT, OReilly) and ran it successfully within Eclipse, as a standalone prog. Now I wanted to use the same prog within my JBoss ear project - when I wrote the prog in Eclipse, there was no compile error and build was successful. However, once I deploy&run it in JBoss, I get the following NoClassDefFound error:
2007-07-12 17:59:32,623 ERROR [STDERR] java.lang.NoClassDefFoundError: javax/xml/transform/Result
The snippet of code, where it seems to be failing is:
javax.xml.transform.Source xmlSource = new
javax.xml.transform.Source xsltSource = new
javax.xml.transform.Result result = new
Both Eclipse and JBoss are using the same JDK on the same machine (Win XP), and when I look into rt.jar within [JDK]/bin, I see the path to javax/xml/transform/Result.class.
So then where is the problem??
I have spent just too many hours to resolve this!!! Driving me nuts.