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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.