JAXB 2.0 API is being loaded from the bootstrap classloader

[INFO] JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI
(from jar:file:/C:/m2/repository/com/sun/xml/bind/jaxb-impl/2.1.1
3/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 boot
strap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)


When I faced this problem I found many sulutions but that didn't work
   1) Because of ambiguity in jars; having same jar with different versions will give this issue.       a)Can resolve this problem by changing the latest version of jar on top for the project in Eclipse
Eclipse --> BuildPath for the project --> JavaBuild Path --> Order and Export tab(make latest version of jaxb-api is top)
      b)try to delete the lower verion of jar
      c)In java jre/endorsed folder will be there, in that we can place latest version of jar and that will be picked by the system. This kind of folder will have so many softwares. While going to place latest jar in JRE/endorsed folder check any software which is using by your application have endorsed folder or not. If not it iwll take defaault structure of JDK.

But for me above solutions didn't work.
For me recenty I have changed JDK version jdk1.6X to jdk1.6Y. That JDK internally using lower version of jar which is not required for my project.
after doing undo on jdk it is working for me.

Post a Reply
Captcha Image