• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to parse xml by jaxb in ejb module

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic