FileNotFoundException when parsing local WSDL, using javax.xml.ws.Service on JBoss EAP 6

Solution Unverified - Updated -

Issue

We load the WSDL_LOCATION from the classpath using the following code:

  import javax.xml.ws.Service;

  URL wsdl = new URL(com.example.service.MyService.class.getResource("test.wsdl"));
  QName qname = new QName("http://service.example.com/", "My_Service");
  Service service = new Service(wsdl, qname);

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 6.1.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content