JAXB is bundled with JDK 1.6, but not with 1.5.
To run JAXB with 1.5, the JAXB runtime jars must be in the classpath.
The JAXB release notes say:
Jars required to deploy a JAXB 2.x client: jaxb-api.jar,
jaxb-impl.jar, jsr173_1.0_api.jar, activation.jar
-W
On Fri, Feb 5, 2010 at 8:09 PM, KARR, DAVID (ATTSI) <dk068x_at_att.com> wrote:
> I'm running 1.5.0_19. I have the JAXB jars, seeming to correspond to
> version 2.1.5-b01-fcs. I've constructed a small Ant script that
> attempts to generate the client jar for a schema (the Soap 1.1 schema).
>
> When I run it, I get the following:
>
> java.lang.NoClassDefFoundError:
> com/sun/xml/bind/v2/runtime/JAXBContextImpl$JAXBContextBuilder
> at
> com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(Bind
> Info.java:330)
> at
> com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$
> 1.<init>(AnnotationParserFactoryImpl.java:80)
>
> This "JAXBContextBuilder" isn't found in the JAXB jars I have. I
> searched for it in the JDK 1.5 jars, and it wasn't there. I did find
> it, however, in the JDK 1.6 "rt.jar".
>
> Do I need a separate set of JAXB jars to use with JDK 1.5?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>