Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to parse xml by jaxb in ejb module

 
Priya Joshi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, have you placed the jaxb.properties file where the classloader can find it?
 
Priya Joshi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic