> -----Original Message-----
> From: Wolfgang Laun [mailto:wolfgang.laun_at_gmail.com]
> Sent: Saturday, February 06, 2010 6:42 AM
> To: users_at_jaxb.dev.java.net
> Subject: Re: ClassDefNotFoundError for
> com/sun/xml/bind/v2/runtime/JAXBContextImpl$JAXBContextBuilder with xjc
> in Ant
>
> FWIW, I have found
>
> com/sun/xml/bind/v2/runtime/JAXBContextImpl$JAXBContextBuilder.class
>
> in JAXB_2_1_10/lib/jaxb-impl.jar and all later releases, up to 2.2;
> it's not in 2.1.8.
I'm having trouble keeping all of these releases straight. I had tried to use what I thought was the latest JAXB release with the build script, and it failed with that NCDFE. I then found the "20061211" release and installed those jars, and it worked fine.
I'm using the latest JAXB release in another project, but that's using JDK 1.6. That other project also doesn't run "xjc". I was actually using that latest JAXB release in a different project using JDK 1.5 with no trouble, but that also wasn't running "xjc".
> On Sat, Feb 6, 2010 at 3:03 PM, KARR, DAVID (ATTSI) <dk068x_at_att.com>
> wrote:
> >> -----Original Message-----
> >> From: Wolfgang Laun [mailto:wolfgang.laun_at_gmail.com]
> >> Sent: Saturday, February 06, 2010 1:33 AM
> >> To: users_at_jaxb.dev.java.net
> >> Subject: Re: ClassDefNotFoundError for
> >> com/sun/xml/bind/v2/runtime/JAXBContextImpl$JAXBContextBuilder with
> xjc
> >> in Ant
> >>
> >> 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
> >
> > Yes, all that is clear, but there are different releases of the JAXB
> jars. One of them has the JAXBContextBuilder class, and the other does
> not.
> >
> > In any case, I believe I've resolved this. The jaxb-ri-20061211
> release worked with JDK 1.5. The newer release did not.
> >
> >> 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(Bin
> >> d
> >> > 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
> >> >
> >> >
> >>
> >> --------------------------------------------------------------------
> -
> >> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> >> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> > For additional commands, e-mail: users-help_at_jaxb.dev.java.net
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net