title: Some class(StubExt) is not visible from class loader, JbossESB
body: <p>I have got fallowing error when i call my service:</p>
  
  <pre><code>2015-07-06 14:53:09,885 ERROR [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] (pool-39-thread-1) Cannot create proxy for SEI com.foo.FooPortType from: jar:file:/D:/servers/jboss-soa-p-5/jboss-as/server/default/deploy/Foo.esb!/
  2015-07-06 14:53:09,887 ERROR javax.xml.ws.WebServiceException: Cannot create proxy
  at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.createProxy(ServiceDelegateImpl.java:471)
  at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:304)
  at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:225)
  at javax.xml.ws.Service.getPort(Service.java:92)
  at com.foo.FooService.getFooPort(FooService.java:86)
  at com.foo.actions.FooAction.process(FooAction.java:65)
  at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:649)
  at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:603)
  at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:433)
  at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:550)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
  at java.lang.Thread.run(Thread.java:662)
  
  Caused by: java.lang.IllegalArgumentException: interface org.jboss.ws.core.StubExt is not visible from class loader
  at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:461)
  at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:690)
  at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.createProxy(ServiceDelegateImpl.java:451)
  ... 12 more
  </code></pre>
  
  <p>This service is calling another one. I have added maven dependency:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.ws.native&lt;/groupId&gt;
          &lt;artifactId&gt;jbossws-native-core&lt;/artifactId&gt;
          &lt;version&gt;4.2.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>And if i will open this jar, i clearly can see StubExt class. </p>
  
  <p>What can be wrong?</p>
  
  <p>This problem is similar to: <a href="https://developer.jboss.org/thread/232142" rel="nofollow">https://developer.jboss.org/thread/232142</a> </p>
  
  <p>However there is no answer at all :(</p>