在使用webservice,mule esb等需要jaxb的项目里经常会出现 JAXB 2.0 API is being loaded from the bootstrap classloader这个错误,按照打出的信息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/)
解决方案:
1、需要下载jaxb-api.jar 而是下载jaxb-api-2.1.jar文件
2、将web项目的lib中jaxb-api-2.1.jar放在该服务器的lib中即可解决问题
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloa
最新推荐文章于 2019-02-18 21:22:39 发布