I am getting the following error:
Retrieving document at '/a/location/wsdl/DataServerImpl.wsdl'.
WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at '/a/location/wsdl/DataServerImpl.wsdl'.: no content-type: java.net.UnknownServiceException: no content-type
The calling code simply does this:
WSDLFactory fact = WSDLFactory.newInstance();
WSDLReader aDoc = fact.newWSDLReader();
if (aDoc != null) {
javax.wsdl.Definition aDef = null;
try {
aDef = aDoc.readWSDL(file);
} catch (WSDLException we) {
we.printStackTrace();
}
<-- snipped -->
If I invoke the main method (from a shell) of the class which calls the method that executes this code segment, it works fine. When this code gets executed from the web app running under JBoss I get the message above. I cannot determine why this works from a shell but not from the app server.
I have made sure that the following System properties were the same when invoking from a shell and from the app server prior to this code section being hit:
java.protocol.handler.pkgs = org.jboss.net.protocol
java.content.handler.pkgs = null