com.sun.xml.internal.ws.client does not exist
<p>I'm trying to catch ClientTransportException and my program fails on compilation stage with the following exception </p>

<pre><code>[ERROR]\workspace\rates\java\service\bundle1\src\main\java\com\connector\ws\TestClass1.java:[72,70] package com.sun.xml.internal.ws.client does not exist
</code></pre>

<p>As I know this package is from rt.jar and exist in jre</p>

<p>If I add @SuppressWarnings("restriction") it compiles from Eclipse Maven Plugin, but not from IntelliJ Idea(via maven) or command line neither. </p>

<p>When I remove @SuppressWarnings Eclipse show the following warning </p>

<pre><code>Access restriction: The type ClientTransportException is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
</code></pre>

<p>I've found similar <a href="http://stackoverflow.com/questions/1269319/package-com-sun-xml-internal-bind-v2-model-annotation-does-not-exist">question</a> but it's answer isn't clear enough for me cause I can this class in rt.jar and my IntelliJ Idea can see it either. </p>

<p>Can someone explain such behavior and possible solution for it?</p>
