JAX-WS catalog does not seem to be loaded in JBoss EAP 5 with CXF or JBoss EAP 6
Issue
- I am attempting to run the jUDDI client in EAP 6 that has limited network resources.
- The limited network connectivity precludes loading DTDs, Schemas, etc from across the web. I am hitting the following exception.
java.lang.RuntimeException: org.apache.juddi.v3.client.transport.TransportException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
...
Caused by: org.apache.juddi.v3.client.transport.TransportException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
...
Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
...
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
...
Caused by: javax.wsdl.WSDLException: WSDLException (at /definitions/import[1]/definitions/import/definitions/types/xsd:schema/xsd:schema): faultCode=PARSER_ERROR: Problem parsing 'vfszip:/home/jsightler/server/eap5/cxf/jboss-eap-5.1/jboss-as/server/default/deploy/juddi-test-war.war/WEB-INF/lib/uddi-ws-3.1.3.jar/www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd'.: java.net.UnknownHostException: www.w3.org
...
Caused by: java.net.UnknownHostException: www.w3.org
...
- I have attempted to work around this with the following
jax-ws-catalog.xml
file, however, my catalog file seems to be ignored.
<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="http://www.w3.org/2001/XMLSchema.dtd" uri="classpath:/META-INF/XMLSchema.dtd" />
</catalog>
Environment
- JBoss Enterprise Application Platform
- 5.1.2 + CXF
- 6.0
- Apache jUDDI
- jUDDI-Client
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.