0 Replies Latest reply on Apr 24, 2014 5:05 AM by zurdo

    Exception while deploying a WAR with OASIS XML catalog

    zurdo Newbie

      I'm trying to deploy a WAR in WildFly and I get this exception:

       

      2014-04-23 12:37:43,787 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."cgtc.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."cgtc.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "cgtc.war"
       at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.CR1.jar:8.1.0.CR1]
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0]
       at java.lang.Thread.run(Thread.java:744) [rt.jar:1.8.0]
      Caused by: javax.xml.ws.WebServiceException: JBWS022087: Failed to read http://foo.bar/foo/bar: foo.bar
      at org.jboss.ws.common.deployment.SOAPAddressWSDLParser.parse(SOAPAddressWSDLParser.java:140)
       at org.jboss.ws.common.deployment.SOAPAddressWSDLParser.<init>(SOAPAddressWSDLParser.java:75)
       at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.getCurrentSOAPAddressWSDLParser(MetadataBuilder.java:317)
       at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.processAddressRewrite(MetadataBuilder.java:289)
       at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.build(MetadataBuilder.java:89)
       at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.generateMetadataFromDeployment(DescriptorDeploymentAspect.java:135)
       at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.start(DescriptorDeploymentAspect.java:68)
       at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
       at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.CR1.jar:8.1.0.CR1]
       ... 5 more
      Caused by: java.net.UnknownHostException: foo.bar
       at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) [rt.jar:1.8.0]
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) [rt.jar:1.8.0]
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) [rt.jar:1.8.0]
       at java.net.Socket.connect(Socket.java:589) [rt.jar:1.8.0]
       at java.net.Socket.connect(Socket.java:538) [rt.jar:1.8.0]
       at sun.net.NetworkClient.doConnect(NetworkClient.java:180) [rt.jar:1.8.0]
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) [rt.jar:1.8.0]
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) [rt.jar:1.8.0]
       at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) [rt.jar:1.8.0]
       at sun.net.www.http.HttpClient.New(HttpClient.java:308) [rt.jar:1.8.0]
       at sun.net.www.http.HttpClient.New(HttpClient.java:326) [rt.jar:1.8.0]
       at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1167) [rt.jar:1.8.0]
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103) [rt.jar:1.8.0]
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997) [rt.jar:1.8.0]
       at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:931) [rt.jar:1.8.0]
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511) [rt.jar:1.8.0]
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439) [rt.jar:1.8.0]
       at java.net.URL.openStream(URL.java:1038) [rt.jar:1.8.0]
       at org.jboss.ws.common.deployment.SOAPAddressWSDLParser.parse(SOAPAddressWSDLParser.java:134)
       ... 13 more
      
      

       

      WAR file includes a OASIS XML Catalog in 'WEB-INF/classes/META-INF/jax-ws-catalog.xml' with the following line:

       

      <oasis:system systemId="http://foo.bar/foo/bar" uri="wsdl/bar.wsdl"/>
      
      

       

      This should make WildFly look for the resource in 'WEB-INF/classes/META-INF/wsdl' directory as specified in JSR-224 (4.4 Catalog Facility):

       

      JAX-WS mandates support for a standard catalog facility to be used when resolving any Web service document that is part of the description of a Web service, specifically WSDL and XML Schema documents. The facility in question is the OASIS XML Catalogs 1.1 specification [33]. It defines an entity catalog that handles the following two cases:

      • Mapping an external entity’s public identifier and/or system identifier to a URI reference.
      • Mapping the URI reference of a resource to another URI reference.

       

      My settings are:

      • WildFly 8.1.0.CR1
      • Windows 8.1

       

      Has anyone a clue about how to solve this?

       

      Many thanks.