Jboss 服务启动的时候报:
JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/D:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp18392lidia-web-1.0.0-exp.war/WEB-INF/lib/jaxb-impl-2.1.13.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/)
错误原因: JBoss -4.2.2.GA启动加载的 jaxws 为 2.0, 而 jaxb-impl 需要2.1 支持,版本冲突!
解决办法有两个
1、 把JDK 更新到 jdk1.6u11 ,或以上版本;
2、 在JBoss 安装目录, lib\endorsed 下添加 jaxb-api 和 jaxws-api 两个 jar 包;
按官网 介绍,第二种方式应将 jar包放在 <java-home>\lib\endorsed 下!
重启jboss OK