加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

JAXB 2.0 API is being loaded from the bootstrap classloader,

发布时间:2020-12-17 21:18:29 所属栏目:安全 来源:网络整理
导读:?? 在两年多前。在使用cxf做webservice开发时,就碰到过类似这样的异常: nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader,but this RI needs 2.1 API. Use the endorsed directory mechanism to
?? 在两年多前。在使用cxf做webservice开发时,就碰到过类似这样的异常:
nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader,but this RI 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/)
很明显,是说加载了2.0版本的,需要2.1版本的,很可能,你装的就是1.6的jdk, 那么现在今天在新的环境里再次碰到此问题时,又回想起当初,特现在记下处理方式: 将jaxb-api.jar和jaxws-api.jar两个jar包放到%{JAVA_HOME}jrelibendorsed下即可,如果没有endorsed,则新建一个.这两个jar包我放提供在附件里

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读