Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3959

schema import failure - JBWS022092: Could not resolve vfs%3A/content...

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jbossws-cxf-5.1.1.Final
    • jbossws-cxf-5.1.0.Final
    • None
    • None

    Description

      The importing XSD file in a same jar can't be resolved during WSDL publishing. I hit this issue on WildFly10 CR4/JBossWS 5.1.0.Final, and this sample application is working fine on EAP6/WildFly8.0.
      On EAP6/WildFly8.0, the xsd path starts with "vfs:/content" at ResourceResolverImpl#resolve(), but on WF10 it's "vfs%3A/content". It seems like the required decode ("%3A"=>":") is not processed for the XSD path.

      [0m[31m16:39:41,215 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."switchyard-demo-library-2.1.0-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-demo-library-2.1.0-SNAPSHOT.jar".SwitchYardService: org.switchyard.component.soap.WebServicePublishException: java.lang.RuntimeException: JBWS024076: Service {urn:switchyard-quickstart-demo:library:1.0}SuggestionService, cannot publish wsdl to: /home/tomo/workspace/SwitchYard/switchyard/release/jboss-as7/wildfly/dist/target/jboss-switchyard/wildfly-10.0.0.CR4/standalone/data/wsdl/suggestion.deployment/vfs%3A/content/switchyard-demo-library-2.1.0-SNAPSHOT.jar/META-INF/SuggestionService.wsdl
      
      ..... (snip) .....
      
      Caused by: java.lang.RuntimeException: JBWS024076: Service {urn:switchyard-quickstart-demo:library:1.0}SuggestionService, cannot publish wsdl to: /home/tomo/workspace/SwitchYard/switchyard/release/jboss-as7/wildfly/dist/target/jboss-switchyard/wildfly-10.0.0.CR4/standalone/data/wsdl/suggestion.deployment/vfs%3A/content/switchyard-demo-library-2.1.0-SNAPSHOT.jar/META-INF/SuggestionService.wsdl
              at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:113)
              at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.publishContractToFilesystem(EndpointImpl.java:148)
              at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:85)
              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543)
              at org.jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:231)
              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97)
              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59)
              at org.jboss.ws.common.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:118)
              at org.jboss.as.webservices.publish.EndpointPublisherImpl.doDeploy(EndpointPublisherImpl.java:163)
              at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:114)
              at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:107)
              at org.switchyard.as7.extension.ws.JBossWSEndpoint.publish(JBossWSEndpoint.java:103)
              at org.switchyard.as7.extension.ws.JBossWSEndpointPublisher.publish(JBossWSEndpointPublisher.java:89)
              ... 11 more
      Caused by: java.io.IOException: JBWS022092: Could not resolve vfs%3A/content/switchyard-demo-library-2.1.0-SNAPSHOT.jar/META-INF/LibraryTypes.xsd in deployment suggestion.deployment
              at org.jboss.ws.common.deployment.ResourceResolverImpl.resolve(ResourceResolverImpl.java:128)
              at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:234)
              at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:259)
              at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:263)
              at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:98)
              ... 24 more
      

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            toigaras@redhat.com tomohisa igarashi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: