users@jaxb.java.net

Re: XJC and "choice" element.

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Thu, 26 Nov 2009 09:12:57 +0100

On Wed, Nov 25, 2009 at 2:36 PM, Wolfgang Laun <wolfgang.laun_at_gmail.com> wrote:
> On Wed, Nov 25, 2009 at 2:26 PM, Pavel Bucek <Pavel.Bucek_at_sun.com> wrote:
>>
>> reason: you are using jaxb-api v2.1 from jdk 1.6
>> needed action: copy jaxb-api.jar (v2.2!) to jdk's endorsed dir
>
> Which, to save you the bother of googling, is
> $JAVA_HOME/jre/lib/endorsed/, needing to be created.

And copy jaxb-impl.jar as well, or else execution fails with
   java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory

-W