5 Replies Latest reply on May 23, 2007 10:06 AM by Heiko Braun

    ws-i schema for swaRef

    Noel Rocher Apprentice

      Is there any issue to ship the ws-i schema for swaRef types ?
      http://ws-i.org/profiles/basic/1.1/swaref.xsd

      Without this, I need an internet connection to deploy a web service with a @XmlAttachmentRef annotated type.

        • 1. Re: ws-i schema for swaRef
          Noel Rocher Apprentice

          The problem is solved if I put the swaref.xsd with in jbossws-core.jar and jbossws-client.jar under /schema and modify org.jboss.ws.core.utils.JBossWSEntityResolver adding :

          ...
           public JBossWSEntityResolver()
           {
          ...
           registerEntity("http://ws-i.org/profiles/basic/1.1/swaref.xsd", "schema/swaref.xsd");
           }
          ...
          


          The last problem is with wsconsume that is not using this resolver. I've got :
          [wsconsume] java.net.UnknownHostException: ws-i.org
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:213)
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(ModelInfo.java:88)
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.Processor.runModeler(Processor.java:82)
          [wsconsume] at org.jboss.com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:543)
          [wsconsume] at org.jboss.com.sun.tools.ws.util.ToolBase.run(ToolBase.java:57)
          [wsconsume] at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl$1.run(WSContractConsumerImpl.java:163)
          [wsconsume] at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl.consume(WSContractConsumerImpl.java:166)
          [wsconsume] at org.jboss.ws.tools.jaxws.api.WSContractConsumer.consume(WSContractConsumer.java:176)
          [wsconsume] at org.jboss.ws.tools.jaxws.ant.wsconsume.executeNonForked(wsconsume.java:196)
          [wsconsume] at org.jboss.ws.tools.jaxws.ant.wsconsume.execute(wsconsume.java:217)
          [wsconsume] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
          [wsconsume] at org.apache.tools.ant.Task.perform(Task.java:364)
          [wsconsume] at org.apache.tools.ant.Target.execute(Target.java:341)
          [wsconsume] at org.apache.tools.ant.Target.performTasks(Target.java:369)
          [wsconsume] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
          [wsconsume] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
          [wsconsume] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
          [wsconsume] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
          [wsconsume] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
          [wsconsume] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
          [wsconsume] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
          [wsconsume] Caused by: java.net.UnknownHostException: ws-i.org
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:128)
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2207)
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:224)
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:181)
          [wsconsume] ... 20 more
          [wsconsume] Caused by: java.net.UnknownHostException: ws-i.org
          [wsconsume] at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:74)
          [wsconsume] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:374)
          [wsconsume] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:273)
          [wsconsume] at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.startElement(AbstractReferenceFinderImpl.java:78)
          [wsconsume] at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
          [wsconsume] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:224)
          [wsconsume] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:261)
          [wsconsume] at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:230)
          [wsconsume] at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:107)
          [wsconsume] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema(SchemaCompilerImpl.java:118)
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.internalBuildJAXBModel(JAXBModelBuilder.java:91)
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.<init>(JAXBModelBuilder.java:70)
          [wsconsume] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2190)
          [wsconsume] ... 22 more
          [wsconsume] Caused by: java.net.UnknownHostException: ws-i.org
          [wsconsume] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
          [wsconsume] at java.net.Socket.connect(Socket.java:519)
          [wsconsume] at java.net.Socket.connect(Socket.java:469)
          [wsconsume] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
          [wsconsume] at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
          [wsconsume] at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
          [wsconsume] at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
          [wsconsume] at sun.net.www.http.HttpClient.New(HttpClient.java:304)
          [wsconsume] at sun.net.www.http.HttpClient.New(HttpClient.java:316)
          [wsconsume] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:817)
          [wsconsume] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769)
          [wsconsume] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694)
          [wsconsume] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:938)
          [wsconsume] at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
          [wsconsume] at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184)
          [wsconsume] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
          [wsconsume] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
          [wsconsume] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
          [wsconsume] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
          [wsconsume] at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:366)
          [wsconsume] ... 33 more
          [wsconsume] error: java.net.UnknownHostException: ws-i.org
          


          • 3. Re: ws-i schema for swaRef
            Noel Rocher Apprentice

            You forgot to mention the wsconsume issue. It's solved in SUN RI by adding a "catalog" attribute to the wsimport tool.

            Also, you're saying that this should be fixed for JBossWS 2.0. Is the JBoss WS 1.2.x generated from the JBoss WS 2.0 codebase ?

            • 4. Re: ws-i schema for swaRef
              Heiko Braun Master

              Could you create a jira for that and add the suggested solution?