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

CXF 实现webservice例子 集成spring

发布时间:2020-12-17 01:12:38 所属栏目:安全 来源:网络整理
导读:?http://www.cnblogs.com/frankliiu-java/articles/1641949.html ? 错误信息:Exception in thread "main" java.lang.LinkageError: JAXB 2.1 API is being loaded from the bootstrap classloader,but this RI (from jar:file:/D:/FrameWork/apache-cxf-2.4

?http://www.cnblogs.com/frankliiu-java/articles/1641949.html

?

错误信息:Exception in thread "main" java.lang.LinkageError: JAXB 2.1 API is being loaded from the bootstrap classloader,but this RI (from jar:file:/D:/FrameWork/apache-cxf-2.4.2/lib/jaxb-impl-2.2.1.1.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.2 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.6.0/docs/guide/standards/)

解决

如果使用的是jdk1.5 则在C:Program1jdk1.5.0jrelibendorsed?? ,? 目录下建立endorsed文件夹,如果存在 在添加两个jar包:jaxb-api-2.2.1.jar??? jaxws-api-2.0.jar

(编辑:李大同)

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

    推荐文章
      热点阅读