dev@jaxb.java.net

Re: NoClassDefFoundError on JAXBException

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Mon, 7 Dec 2009 21:19:57 -0800

On Mon, Dec 7, 2009 at 8:56 PM, Josh Hester <Josh.Hester_at_sas.com> wrote:
> Thank you Tatu!
>
> I should have mentioned that I'm including the following jars:
>
> <classpathentry kind="lib" path="jaxb1-impl.jar"/>
>        <classpathentry kind="lib" path="activation.jar"/>
>        <classpathentry kind="lib" path="jsr173_1.0_api.jar"/>
>        <classpathentry kind="lib" path="jaxb-xjc.jar"/>
>        <classpathentry kind="lib" path="jaxb-impl.jar"/>
>        <classpathentry kind="lib" path="jaxb-api.jar"/>
>
> Any other ideas?

I could be wrong, but maybe those are JAXB v1.0 jars? (which are not
compatible with JAXB v2.0)
So it could be version incompatibility issue.
This seems likely, given that implementation jar specifically
indicates its version 1.0.
And unless you really do want to use ancient (and for all purposes
obsolete) version 1.0, you want to upgrade to 2.0.

Hope this helps,

-+ Tatu +-