title: LinkageError JAXB 2.0 -> 2.1 (Tomcat)
body: <p>I'm getting this error when trying to access my webservice running inside tomcat.</p>
  
  <blockquote>
    <p>Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/software/tomcat6/webapps/messaging/WEB-INF/lib/jaxb-impl-2.1.5.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 <a href="http://java.sun.com/j2se/1.5.0/docs/guide/standards/" rel="nofollow noreferrer">http://java.sun.com/j2se/1.5.0/docs/guide/standards/</a>)</p>
  </blockquote>
  
  <p>I googled for the error and did what should solve it (I put jaxb-api.jar, version 2.1 in JDK/lib/endorsed and JDK/jre/lib/endorsed) but it doesn't appear to have any effect.</p>
  
  <p>I didn't have it before, and I'm not sure what was changed. I use JDK 6u10. </p>