aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Unable to parse xml by jaxb in ejb module Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Unable to parse xml by jaxb in ejb module" Watch "Unable to parse xml by jaxb in ejb module" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to parse xml by jaxb in ejb module
 
Similar Threads
No Class def found error: JAXBContext
Jar in a Jar
JAXB sample in the JWSDP1.3
(Camel-spring ) BeanDefinitionStoreException
XML parsing by jaxb