• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JAXB?

 
Bartolo Almeda
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how to use JAXB withouth using all this Sun JWSDK? I just want to use JAXB.
 
David L Gilbert
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAXB is part of the Sun Java Web Services Developer Pack. Within the pack are separate sections for jaxb, jaxp, jaxm, jax-rpc, jstl, and saaj. Each section has its own jars. You can pick and choose the code you want to use from these sections, but there may be some dependencies between them. For example, when last working with JAXB I needed to include the JAXB and SAAJ jars, but not any of the jars from the other sections. I have not heard of any non-Sun JAXB implementations - please let me know if anyone else has.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried just working with the jar files shipped in lib directory of JAXB directory.
 
norman richards
Author
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bartolo Almeda:
Does anyone know how to use JAXB withouth using all this Sun JWSDK? I just want to use JAXB.

When we use JAXB, we use the following jars at runtime:
jaxb-api.jar
jaxb-impl.jar
jaxb-libs.jar
jax-qname.jar
namespace.jar
relaxngDatatype.jar
xsdlib.jar
I didn't do any of the JAXB work here, so I can't say much more. But, if you add them all in, then your app will work. (note - you need the jaxb-xjc jar to generate your classes)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!