Yeah, i try latest 3.2.2-SNAPSHOT as i wrote. I don't know where's the problem. When i point internet explorer on address http://localhost:9090/service?xsd=common.xsd it display this:
The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- XML document must have a top level element. Error processing resource 'http://localhost:9090/service?xsd=common.xsd'. Eclipse WebServices explorer display error message: IWAB0380E Errors were encountered while validating XML schemas. XSD: The location 'http://localhost:9090/service?xsd=common.xsd' may not resolve to something other than a schema XSD: Type reference 'http://huavi.sedo.sk/common#TestTypeOut' is unresolved XSD: Type reference 'http://huavi.sedo.sk/common#TestTypeIn' is unresolved IWAB0381I http://localhost:9090/service?wsdl was successfully opened. Freeman Fang wrote: > > Hi, > > I believe this problem already get resovled. > I just try with your SA, I can't reproduce your problem. I can get the > schema from http://localhost:9090/service?xsd=common.xsd. > > What's the servicemix version you are using? Would you try with the > lastest servicemix 3.2.2snapshot please? > > Freeman > > sedo wrote: >> Hi all, >> help needed from you. I attach an example and hope u can help me. >> Example: >> http://www.nabble.com/file/p17554225/smx-assembly.zip smx-assembly.zip >> >> Assembly looks something like this: >> poc-bc (using cxf-bc) : contains wsdl which imports schema from jar >> (dependency in pom) >> poc-se (using cxf-se) : implementation of service >> >> If you look on wsdl which is published on: >> http://localhost:9090/service?wsdl >> >> published wsdl declare imported schema on: >> http://localhost:9090/service?xsd=common.xsd >> >> --------------------------------------------------------------- >> but on this address can't find any schema, it throws exception.. : >> >> 30.5.2008 10:13:31 >> org.apache.cxf.transport.http_jetty.JettyHTTPDestination >> doService >> WARNING: writeResponse failed: >> org.apache.cxf.transport.http.WSDLQueryException: Exception occurred >> while >> trying to process http://localhost:9090/service?xsd=common.xsd >> at >> org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:232) >> at >> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:237) >> at >> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70) >> at >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722) >> at >> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) >> at >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) >> at org.mortbay.jetty.Server.handle(Server.java:324) >> at >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) >> at >> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) >> at >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) >> at >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) >> at >> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) >> at >> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) >> Caused by: java.net.MalformedURLException: unknown protocol: classpath >> at java.net.URL.<init>(URL.java:574) >> at java.net.URL.<init>(URL.java:464) >> at java.net.URL.<init>(URL.java:413) >> at >> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown >> Source) >> at >> org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown >> Source) >> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >> Source) >> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >> Source) >> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) >> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown >> Source) >> at >> org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:188) >> ... 13 more >> 1 name = common.xsd >> 1 name = common.xsd >> 1 name = common.xsd >> >> >> >> ------------------------------------------------------------------- >> This assembly does strange output in deployment to servicemix >> 3.2.2-SNAPSHOT: >> >> INFO - AutoDeploymentService - Directory: hotdeploy: Archive >> changed: processing poc-sa-1.0.jar ... >> 1 name = >> C:/Program%20Files/Java/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/data/smx/service-assemblies/poc-sa/version_14/sus/servicemix-cxf-bc/poc-bc/common.xsd >> 1 name = >> C:/Program%20Files/Java/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/data/smx/service-assemblies/poc-sa/version_14/sus/servicemix-cxf-bc/poc-bc/common.xsd >> 1 name = >> C:/Program%20Files/Java/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/data/smx/service-assemblies/poc-sa/version_14/sus/servicemix-cxf-bc/poc-bc/common.xsd >> 1 name = >> C:/Program%20Files/Java/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/data/smx/service-assemblies/poc-sa/version_14/sus/servicemix-cxf-bc/poc-bc/common.xsd >> 1 name = >> C:/Program%20Files/Java/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/data/smx/service-assemblies/poc-sa/version_14/sus/servicemix-cxf-bc/poc-bc/common.xsd >> 1 name = >> C:/Program%20Files/Java/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/data/smx/service-assemblies/poc-sa/version_14/sus/servicemix-cxf-bc/poc-bc/common.xsd >> 30.5.2008 10:13:18 org.apache.cxf.endpoint.ServerImpl initDestination >> INFO: Setting the server's publish address to be >> http://localhost:9090/service >> INFO - ServiceAssemblyLifeCycle - Starting service assembly: >> poc-sa >> INFO - ServiceUnitLifeCycle - Initializing service unit: >> poc-bc >> INFO - ServiceUnitLifeCycle - Initializing service unit: >> poc-se >> INFO - ServiceUnitLifeCycle - Starting service unit: poc-bc >> INFO - ServiceUnitLifeCycle - Starting service unit: poc-se >> 30.5.2008 10:13:18 >> org.apache.cxf.service.factory.ReflectionServiceFactoryBean >> buildServiceFromClass >> INFO: Creating Service >> {http://huavi.sedo.sk/service/dht}ServiceRoutingDHTService from class >> sk.sedo.huavi.service.dht.ServiceRoutingDHTImpl >> 30.5.2008 10:13:18 org.apache.cxf.configuration.spring.ConfigurerImpl >> getBeanName >> INFO: Could not determine bean name for instance of class >> org.apache.cxf.transport.jbi.JBIDestination. >> 30.5.2008 10:13:18 org.apache.cxf.endpoint.ServerImpl initDestination >> INFO: Setting the server's publish address to be >> jbi://ID-10-63-10-88-11a38b79898-21-4 >> INFO - AutoDeploymentService - Directory: hotdeploy: Finished >> installation of archive: poc-sa-1.0.jar >> 1 name = common.xsd >> 1 name = common.xsd >> 1 name = common.xsd >> >> Can someone help me please? >> thanks alot >> > > > -- View this message in context: http://www.nabble.com/imported-schema-from-wsdl-not-published-tp17554225p17555912.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
