13 Replies Latest reply on Jan 29, 2008 11:32 AM by peterj

    Cannot get URL for schema (because of extra slash)



      I have Glassfish v2 experience but I am currently evaluating JBoss. The following problem does not occur in glassfish.

      I have a WSDL containing a schema that imports another schema.

      <xs:import namespace="http://www.ggf.org/namespaces/ws-agreement"

      I am developing some web services. The following is the implementation class of an SEI:
      @WebService(serviceName = "PRService",
      portName = "PerformanceRepository",
      endpointInterface = "org.gridcc.qos._20070730._3.QoS",
      targetNamespace = "http://www.gridcc.org/qos/20070730/3",
      wsdlLocation = "META-INF/wsdl/PRService/QoS-WS-v2-RC3a.wsdl")
      public class PRService implements org.gridcc.qos._20070730._3.QoS {

      Notice the wsdlLocation (only one slash between "wsdl" and "PRService").

      Clean and build no problem. Deploy into JBoss 4.2.1 and I get the following error:
      Caused by: java.io.IOException: Cannot get URL for: META-INF/wsdl//PRService/agreement_types.xsd
      Note that there are two slashes. I assume that's why the schema can't be found.

      Can anyone help me? I would be very grateful.