3 Replies Latest reply on Jul 2, 2014 12:05 PM by simplex-software

    Can't deploy archive - WSDL Exception, FileNotFoundException

    simplex-software

      Hello,

       

      I'm trying to deploy an archive on FSW 6.0 and I get the following exception:

       

      Caused by: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at '../xsd/travel-request-type.xsd', relative to 'vfs:/C:/jboss-eap-6.1/bin/content/travel-bpel-0.0.1-SNAPSHOT.jar/travel-service.wsdl'.: java.io.FileNotFoundException: This file was not found: vfs:/C:/jboss-eap-6.1/bin/content/xsd/travel-request-type.xsd

          at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:862)

          at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:632)

          at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:593)

          at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:305)

          at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2265)

          at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2229)

          at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2282)

          at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2190)

          at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2152)

          at org.switchyard.component.bpel.riftsaw.WSDLHelper.getWSDLDefinition(WSDLHelper.java:58)

          ... 11 more

      Caused by: java.io.FileNotFoundException: This file was not found: vfs:/C:/jboss-eap-6.1/bin/content/xsd/travel-request-type.xsd

          at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(StringUtils.java:173)

          at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:783)

          ... 20 more

       

      The deployed JAR has the following structure:

       

      |- travel-service.wsdl

      |- xsd

      |---- travel-request-type.xsd

       

      travel-service.wsdl is importing travel-request-type.xsd by referencing it as ../xsd/travel-request-type.xsd. This deployment works correctly in a non switchayard project. I don't understand why the app server is looking for the travel-request-type.xsd in vfs:/C:/jboss-eap-6.1/bin/content/xsd as of course this file doesn't exist there. This directory even doesn't exist in the JBoss install.

       

      Many thanks in advance,

       

      Nicolas DUMINIL