You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by senderj <se...@hotmail.com> on 2009/03/05 04:29:05 UTC
jaxb-api.jar v2.0 and v2.1
New to OpenEJB. Trying to put it into Tomcat 6.0.16. Installation all ok, but
when try to run the example from openejb site, encountered this problem:
org.apache.openejb.OpenEJBException: Unable to load handler chain file:
client-handlers.xml: JAXB 2.0 API is being loaded from the bootstrap
classloader, but this RI (from
jar:file:/C:/Dev/java/NetBeans_projects/OpenEJBtest/build/web/WEB-INF/lib/jaxb-impl.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/)
This was run outside Netbean, I just use the same docbase. The jaxb-impl.jar
is v2.1 from Netbean. The one in openejb.war is jaxb-impl-2.0.5.jar. I've
tried with v2.1 in openejb folder too but still not work. I've also tried
v2.0 in the above docbase instead, still not work. Please help.
--
View this message in context: http://www.nabble.com/jaxb-api.jar--v2.0-and-v2.1-tp22344644p22344644.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: jaxb-api.jar v2.0 and v2.1
Posted by David Blevins <da...@visi.com>.
On Mar 4, 2009, at 7:29 PM, senderj wrote:
>
> New to OpenEJB. Trying to put it into Tomcat 6.0.16. Installation
> all ok, but
> when try to run the example from openejb site, encountered this
> problem:
>
> org.apache.openejb.OpenEJBException: Unable to load handler chain
> file:
> client-handlers.xml: JAXB 2.0 API is being loaded from the bootstrap
> classloader, but this RI (from
> jar:file:/C:/Dev/java/NetBeans_projects/OpenEJBtest/build/web/WEB-
> INF/lib/jaxb-impl.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/)
>
> This was run outside Netbean, I just use the same docbase. The jaxb-
> impl.jar
> is v2.1 from Netbean. The one in openejb.war is jaxb-impl-2.0.5.jar.
> I've
> tried with v2.1 in openejb folder too but still not work. I've also
> tried
> v2.0 in the above docbase instead, still not work. Please help.
I just downloaded and tested Tomcat 6.0.16 and 6.0.18 and all worked
fine. So assuming no modifications of any kind to the jaxb libraries
all should work. If the goal is to get something working at all, I'd
suggest backing up your tomcat install, unpacking a new one, make no
library changes, and then deploy the openejb.war. Make sure you have
removed any jaxb libraries you added the endorsed dir.
That said, if the goal is specifically to get jaxb 2.1 working we can
probably help with that too. I think the biggest thing would be to
get you a version of the javaee-api jar that doesn't contain the jaxb
2.0 api classes.
Let us know and we can help further.
-David