users@glassfish.java.net

Exception in thread "main" java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader,...

From: Legolas wood <legolas.w_at_gmail.com>
Date: Sat, 12 Apr 2008 02:19:54 +0430

Hi
Thank you for reading my post
I have JDK 6 and Glassfish 2 ur 1, when I try to compile or run some
application the following error is shown, what should I do?

Exception in thread "main" java.lang.LinkageError: JAXB 2.0 API is being
loaded from the bootstrap classloader, but this RI (from
jar:file:/opt/glassfish-v2ur1/lib/webservices-rt.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
needs 2.1 API. Use the endorsed directory mechanism to place
jaxb-api.jar in the bootstrap classloader. (See
http://java.sun.com/j2se/1.5.0/docs/guide/standards/)

Please let me know whether I should change the JDK? The Glassfish?...

Thanks.