title: Access restriction: Is not accessible due to restriction on required library ..\jre\lib\rt.jar
body: <p>I am trying to modify some legacy code from while back and getting the following kind of errors:</p>
  
  <p>Access restriction: The method create(JAXBRIContext, Object) from the type Headers is not accessible due to restriction on required library ..\jre\lib\rt.jar </p>
  
  <p>for these import statements:</p>
  
  <pre><code>import com.sun.xml.internal.bind.api.JAXBRIContext;
  import com.sun.xml.internal.ws.api.message.Header;
  import com.sun.xml.internal.ws.api.message.Headers;
  import com.sun.xml.internal.ws.developer.WSBindingProvider;
  </code></pre>
  
  <p>Been searching what this might mean and how to fix it, however not been able to find a clear answer. Some posts seem to suggest that I have some JARs included that implement classes that are now available as part of the core java distribution, but as far as I can see none of the JARs I include contain different/older versions of the above classes.</p>
  
  <p>Anyone able to tell me what this error is all about and how I might go about fixing this? </p>
  
  <p>Thanks for your help already in advance,</p>
  
  <p>Olli</p>