2 Replies Latest reply on Oct 6, 2004 10:39 AM by mazz

    bad path to included schema getting built in WSDLFilePublish

    mazz Master

      My web service WSDL imports another WSDL which in turn includes a schema.

      It looks like WSDLFilePublisher is not building the path correctly to that included schema. It's missing a "/".

      While debugging in WSDLFilePublisher, line 206 results in this as value for resourcePath:

      WEB-INF/wsdl//services/../spec/wsrfWS-ResourceProperties-1_1.xsd

      Note that there is a "/" missing between the last directory "wsrf" and the schema filename "WS-ResourceProperties-1_1.xsd".

      The value of this.expLocation was "WEB-INF/wsdl/" and the value of schemaLocation was "WS-ResourceProperties-1_1.xsd". baseURI had a value of "file:/C:/mazz/jboss/jboss-4.0.0/server/default/data/wsdl/jboss-wsdm.war/services/../spec/wsrf/WS-ResourceProperties-1_1.wsdl". this.di.shortName is "jboss-wsdm.war". index is 57.

      The WSDL includes the .xsd like this:

      <wsd:types><xsd:schema>
      <xsd:include schemaLocation="WS-ResourceProperties-1_1.xsd"/>
      ...

      I think the algorithm just isn't right. Am I seeing this right or am I missing something?

      John Mazz

      P.S. the resulting exception is (which is actually thrown in line 210):

      16:13:24,774 ERROR [ServiceDeployer] Cannot startup webservice for: jboss-wsdm.war
      org.jboss.deployment.DeploymentException: Cannot publish wsdl to: C:\mazz\jboss\jboss-4.0.0\server\default\data\wsdl\jboss-wsdm.war\services\sensor.wsdl; - nested throwable: (java.lang.IllegalArgumentException: Cannot find schema import in
      deployment: WEB-INF/wsdl//services/../spec/wsrfWS-ResourceProperties-1_1.xsd)
      at org.jboss.webservice.WSDLFilePublisher.publishWsdlFile(WSDLFilePublisher.java:106)