users@jaxb.java.net

Re: InvocationTargetException when parsing a schema

From: Marina Bykova <mbykova_at_purdue.edu>
Date: Mon, 31 Mar 2003 12:15:00 -0700

On Mon, 31 Mar 2003 08:46:11 -0800, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM> wrote:

>If you are using Sun XML Datatypes Library, that might be interfering
>with JAXB 1.0.
>
>Is there any chance you put a wrong version of it somewhere in your
>classpath?

I have only a standard distribution of JDK 1.3.1 and JAXB from JWSDP 1.1.
My classpath looks like the following:

CLASSPATH=.:$JWSDP_HOME/jaxb-1.0/lib/jaxb-api.jar:$JWSDP_HOME/jaxb-1.0/lib/jaxb-+libs.jar
:$JWSDP_HOME/jaxb-1.0/lib/jaxb-ri.jar:$JWSDP_HOME/jaxb-1.0/lib/jaxb-xjc.jar
:$JWSDP_HOME/jaxp-1.2.2/lib/jaxp-api.jar:$JWSDP_HOME/jaxp-1.2.2/lib/endorsed/xer+cesImpl.jar
:$JWSDP_HOME/jaxp-1.2.2/lib/endorsed/sax.jar:$JWSDP_HOME/jaxp-1.2.2/lib/endorsed+/dom.jar
:$JWSDP_HOME/jwsdp-shared/lib/jax-qname.jar

where $JWSDP_HOME is the directory where JWSDP is installed. But I am also
getting the same invocation target exception if I remove all JAXB jar from
my classpath. Is there a way to force the compiler to use the JAXB library
first?

Thanks,
Marina.