| Author |
Unable to parse xml by jaxb in ejb module
|
Priya Joshi
Greenhorn
Joined: Feb 24, 2008
Posts: 8
|
|
Hi, I am new to jaxb and ejbs. I am using jaxb to parse the xml file. In my workspace I have created to projects one for ejb module and another for web module. I am able to parse the xml perfectly with the web module but when I am trying the same thing in ejb module getting following error : 'before this i have removed all the jars and generated binding interfaces and other files from web module' [javax/xml/bind/JAXBException]: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException It seems, it is asking for some jar file and I have included all the jars in 'Java Build Path(in WASAD)' which I used in web module. In web module I had copied all the necessary jars under WEB-INF/lib folder also. might be it is not getting the jaxb.properties file Please help me!!! Thanking you in an anticipation. Regards,
|
 |
Roger Chung-Wee
Ranch Hand
Joined: Sep 29, 2002
Posts: 1683
|
|
|
So, have you placed the jaxb.properties file where the classloader can find it?
|
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
|
 |
Priya Joshi
Greenhorn
Joined: Feb 24, 2008
Posts: 8
|
|
Originally posted by Roger Chung-Wee: So, have you placed the jaxb.properties file where the classloader can find it?
Yes, Actually problem was with class loader only.
|
 |
 |
|
|
subject: Unable to parse xml by jaxb in ejb module
|
|
|