users@jaxb.java.net

Re: ExceptionInInitializerError

From: Thomas John Kincaid <Tom.Kincaid_at_sun.com>
Date: Sun, 02 Mar 2003 22:52:17 -0500

Try it with out putting the jaxp.jar in lib/ext. JAXP is part of JRE
1.4.x. Also don't set the endorsed dirs. You only need this if you are
over riding a standard in the JRE such as DOM or SAX. The JAXB runtime
should never be in the endorsed directory.

Tom

Jason Tang wrote:

>Hi, My UI lied on an applet which was run within JRE 1.4.1_01 under window. It read the settings from an XML file which is then converted to objects by JAXB. In order to make it work, I copy the jars (jaxb-api.jar, jaxb-libs.jar, jaxb-ri.jar and jaxp.jar) to j2re1.4.1_01/lib/ext and put the endorsed folder to /lib. When I trys to run my applet, I got the following error. I got the JAXB running excellent with the same codes on my IDE, but not on applet. Any thoughts?
>
>java.lang.ExceptionInInitializerError
> at com.sun.msv.verifier.Verifier.startElement(Verifier.java:163)
> at com.sun.msv.verifier.VerifierFilter.startElement(VerifierFilter.java:97)
> at org.iso_relax.verifier.impl.ForkContentHandler.startElement(Unknown Source)
> at com.sun.xml.bind.validator.ValidatingUnmarshaller.startElement(ValidatingUnmarshaller.java:104)
> at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1488)
> at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
> at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
> at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
> at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:130)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:139)
>
>Thanks
>Jason
>
>