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

Cannot load schema with namespace import

XMLWordPrintable

      $ ant -Dtest=org.jboss.test.ws.marshall.rpclit.MarshallRpcLitDIITestCase one-test

      fails because the following schema cannot be loaded.

      <schema targetNamespace='http://org.jboss.ws/marshall/rpclit/types' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://org.jboss.ws/marshall/rpclit/types' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
      <import namespace='http://org.jboss.ws/marshall/rpclit/types/arrays/java/math'/>
      <import namespace='http://org.jboss.ws/marshall/rpclit/types/arrays/java/util'/>
      <import namespace='http://org.jboss.ws/marshall/rpclit/types/arrays/'/>
      <import namespace='http://org.jboss.ws/marshall/rpclit/types/arrays/java/lang'/>
      <import namespace='http://org.jboss.ws/marshall/rpclit/types/arrays/javax/xml/namespace'/>
      <import namespace='http://org.jboss.ws/marshall/rpclit/types/arrays/org/jboss/test/ws/marshall/rpclit/types'/>
      <complexType name='JavaBean'>
      <sequence>
      <element name='myBigDecimal' nillable='true' type='decimal'/>
      <element name='myBigInteger' nillable='true' type='integer'/>
      <element name='myBoolean' type='boolean'/>
      <element name='myByte' type='byte'/>
      <element name='myCalendar' nillable='true' type='dateTime'/>
      <element name='myDouble' type='double'/>
      <element name='myFloat' type='float'/>
      <element name='myInt' type='int'/>
      <element name='myJavaBean' nillable='true' type='tns:JavaBean2'/>
      <element name='myLong' type='long'/>
      <element name='myShort' type='short'/>
      <element name='myString' nillable='true' type='string'/>
      </sequence>
      </complexType>
      <complexType name='JavaBean2'>
      <sequence>
      <element name='myBigDecimal' nillable='true' type='decimal'/>
      <element name='myBigInteger' nillable='true' type='integer'/>
      <element name='myBoolean' type='boolean'/>
      <element name='myByte' type='byte'/>
      <element name='myCalendar' nillable='true' type='dateTime'/>
      <element name='myDouble' type='double'/>
      <element name='myFloat' type='float'/>
      <element name='myInt' type='int'/>
      <element name='myLong' type='long'/>
      <element name='myShort' type='short'/>
      <element name='myString' nillable='true' type='string'/>
      </sequence>
      </complexType>
      </schema>
      2005-08-09 11:32:04,406 DEBUG [org.jboss.ws.soap.MessageContextAssociation] setMessageContext: null
      2005-08-09 11:32:04,406 DEBUG [org.jboss.ws.server.ServiceEndpoint] END handleRequest: jbossws-marshall-rpclit.war#MarshallService/StandardTypesPort
      2005-08-09 11:32:04,406 ERROR [org.jboss.ws.server.AbstractServlet] Error processing web service request
      java.lang.IllegalArgumentException: Invalid URI for schema: file:/D:/jboss-temp/jbossws/JBossWS_org.jboss.ws.marshall.rpclit.types17623.xsd
      at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.loadSchema(XsdBinder.java:972)
      at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:102)
      at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:89)
      at org.jboss.ws.jaxb.JAXBUnmarshallerImpl.initSchemaBinding(JAXBUnmarshallerImpl.java:293)
      at org.jboss.ws.jaxb.JAXBUnmarshallerImpl.unmarshal(JAXBUnmarshallerImpl.java:72)
      at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:84)

      The test succeeds when the namespace imports are removed from the wsdl.

            jgreene@redhat.com Jason Greene
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: