users@jaxb.java.net

Re: ContextFactory_1_0_1

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 14 May 2007 17:22:42 -0700

You must be still having jaxb.properties somewhere. Try
-Djaxb.debug=true to get the debug output in the JAXB API.

miker2 wrote:
> I'm upgrading from JAXB 1.0 to 2.1.1 and am getting this error when
> attempting to create a JAXBContext for marshalling/unmarshalling.
>
>
> [junit] javax.xml.bind.JAXBException: Provider
> com.sun.xml.bind.ContextF
> actory_1_0_1 not found
> [junit] - with linked exception:
> [junit] [java.lang.ClassNotFoundException:
> com.sun.xml.bind.ContextFactory_1
> _0_1]
> [junit] at
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:1
> 51)
> [junit] at javax.xml.bind.ContextFinder.find(ContextFinder.java:257)
> [junit] at
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
> [junit] at
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
> [junit] at
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
> [junit] at com.*.*.*.util.JaxbUtils.unmarshall(JaxbUtils.java:64)
>
>
> I've removed all 'jaxb.properties' files and have verified that I'm
> generating 2.1.1 jaxb classes from the XSD's I have. I'm at a loss as to
> what could be causing this.
>
> Thanks,
> Mike


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com