You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sedo <se...@gmail.com> on 2008/05/30 10:44:39 UTC
imported schema from wsdl not published
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-tp17554225p17554225.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: imported schema from wsdl not published
Posted by sedo <se...@gmail.com>.
Also, if i generate client from my local wsdl and schema present - it works.
parameters are sent and received in right way.
But why explorer and eclipse web services explorer can't resolve this
schema?
Also cxf wsdl2java can't generate client from
http://localhost:9090/service?wsdl
throwing exception:
WSDLToJava Error: java.lang.RuntimeException: Fail to create wsdl definition
from : http://localhost:9090/service?wsdl
Caused by : WSDLException (at /wsdl:definitions/wsdl:types/xs:schema):
faultCode=PARSER_ERROR: Problem parsing
'http://localhost:9090/service?xsd=common.xsd'.:
org.xml.sax.SAXParseException: Premature end of file.
sedo wrote:
>
> 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-tp17554225p17556036.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: imported schema from wsdl not published
Posted by sedo <se...@gmail.com>.
Hi,
I finally found the problem!
I have servicemix folder in 'program files' folder - which contains space.
I move servicemix into c:\servicemix and all works!
damn, what a stupid mistake
Freeman Fang wrote:
>
> Hi,
> The kit is over 84M, so it's hard to send to you. :-)
> What's the problem you encounter to build the kit?
> You can get how to build servicemix from [1]
>
> [1]http://servicemix.apache.org/building.html
>
> Regards
> Freeman
> sedo wrote:
>> Sorry i can't build it now
>> must wait for next snapshot, or can u send me your build? :)
>>
>>
>>
>>
>> Freeman Fang wrote:
>>
>>> Hi,
>>> That's weird for me.I simply drop your sa.jar to hotdeploy folder and I
>>> can get the schema from firefox.
>>> Could you update the latest code and build kit yourself, or you need
>>> wait for the next snapshot.
>>>
>>> Freeman
>>>
>>>
>>>
>>> sedo wrote:
>>>
>>>> Yeah, i tried firefox, opera, explorer - all of them report error
>>>> I download servicemix snapshot with name:
>>>> apache-servicemix-3.2.2-20080520.065446-1.zip
>>>>
>>>> I check today for newer version, but folders of snapshosts were (and
>>>> still
>>>> are) empty.
>>>> Still can't see my schema
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> You build 3.2.2 snapshot kit from latest code or you download kit from
>>>>> somewhere? If you download it, would you please give me the link so
>>>>> that
>>>>> I can check the date to see if it include the fix
>>>>>
>>>>> I think that's may be brower problem since you are using IE, would you
>>>>> please try with firefox?
>>>>>
>>>>> I can see that schema in my firefox
>>>>> <xs:schema elementFormDefault="qualified"
>>>>> targetNamespace="http://huavi.sedo.sk/common">
>>>>> −
>>>>> <xs:complexType name="TestTypeIn">
>>>>> −
>>>>> <xs:annotation>
>>>>> <xs:documentation> Test type for input </xs:documentation>
>>>>> </xs:annotation>
>>>>> −
>>>>> <xs:sequence>
>>>>> <xs:element name="testString1" type="xs:string"/>
>>>>> <xs:element name="testString2" type="xs:string"/>
>>>>> </xs:sequence>
>>>>> </xs:complexType>
>>>>> −
>>>>> <xs:complexType name="TestTypeOut">
>>>>> −
>>>>> <xs:annotation>
>>>>> <xs:documentation> Test type for output</xs:documentation>
>>>>> </xs:annotation>
>>>>> −
>>>>> <xs:sequence>
>>>>> <xs:element name="result" type="xs:string"/>
>>>>> </xs:sequence>
>>>>> </xs:complexType>
>>>>> </xs:schema
>>>>>
>>>>> Freeman
>>>>>
>>>>> sedo wrote:
>>>>>
>>>>>
>>>>>> 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-tp17554225p17800501.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: imported schema from wsdl not published
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
The kit is over 84M, so it's hard to send to you. :-)
What's the problem you encounter to build the kit?
You can get how to build servicemix from [1]
[1]http://servicemix.apache.org/building.html
Regards
Freeman
sedo wrote:
> Sorry i can't build it now
> must wait for next snapshot, or can u send me your build? :)
>
>
>
>
> Freeman Fang wrote:
>
>> Hi,
>> That's weird for me.I simply drop your sa.jar to hotdeploy folder and I
>> can get the schema from firefox.
>> Could you update the latest code and build kit yourself, or you need
>> wait for the next snapshot.
>>
>> Freeman
>>
>>
>>
>> sedo wrote:
>>
>>> Yeah, i tried firefox, opera, explorer - all of them report error
>>> I download servicemix snapshot with name:
>>> apache-servicemix-3.2.2-20080520.065446-1.zip
>>>
>>> I check today for newer version, but folders of snapshosts were (and
>>> still
>>> are) empty.
>>> Still can't see my schema
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> You build 3.2.2 snapshot kit from latest code or you download kit from
>>>> somewhere? If you download it, would you please give me the link so that
>>>> I can check the date to see if it include the fix
>>>>
>>>> I think that's may be brower problem since you are using IE, would you
>>>> please try with firefox?
>>>>
>>>> I can see that schema in my firefox
>>>> <xs:schema elementFormDefault="qualified"
>>>> targetNamespace="http://huavi.sedo.sk/common">
>>>> −
>>>> <xs:complexType name="TestTypeIn">
>>>> −
>>>> <xs:annotation>
>>>> <xs:documentation> Test type for input </xs:documentation>
>>>> </xs:annotation>
>>>> −
>>>> <xs:sequence>
>>>> <xs:element name="testString1" type="xs:string"/>
>>>> <xs:element name="testString2" type="xs:string"/>
>>>> </xs:sequence>
>>>> </xs:complexType>
>>>> −
>>>> <xs:complexType name="TestTypeOut">
>>>> −
>>>> <xs:annotation>
>>>> <xs:documentation> Test type for output</xs:documentation>
>>>> </xs:annotation>
>>>> −
>>>> <xs:sequence>
>>>> <xs:element name="result" type="xs:string"/>
>>>> </xs:sequence>
>>>> </xs:complexType>
>>>> </xs:schema
>>>>
>>>> Freeman
>>>>
>>>> sedo wrote:
>>>>
>>>>
>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: imported schema from wsdl not published
Posted by sedo <se...@gmail.com>.
Sorry i can't build it now
must wait for next snapshot, or can u send me your build? :)
Freeman Fang wrote:
>
> Hi,
> That's weird for me.I simply drop your sa.jar to hotdeploy folder and I
> can get the schema from firefox.
> Could you update the latest code and build kit yourself, or you need
> wait for the next snapshot.
>
> Freeman
>
>
>
> sedo wrote:
>> Yeah, i tried firefox, opera, explorer - all of them report error
>> I download servicemix snapshot with name:
>> apache-servicemix-3.2.2-20080520.065446-1.zip
>>
>> I check today for newer version, but folders of snapshosts were (and
>> still
>> are) empty.
>> Still can't see my schema
>>
>>
>>
>>
>>
>>
>>
>> Freeman Fang wrote:
>>
>>> Hi,
>>>
>>> You build 3.2.2 snapshot kit from latest code or you download kit from
>>> somewhere? If you download it, would you please give me the link so that
>>> I can check the date to see if it include the fix
>>>
>>> I think that's may be brower problem since you are using IE, would you
>>> please try with firefox?
>>>
>>> I can see that schema in my firefox
>>> <xs:schema elementFormDefault="qualified"
>>> targetNamespace="http://huavi.sedo.sk/common">
>>> −
>>> <xs:complexType name="TestTypeIn">
>>> −
>>> <xs:annotation>
>>> <xs:documentation> Test type for input </xs:documentation>
>>> </xs:annotation>
>>> −
>>> <xs:sequence>
>>> <xs:element name="testString1" type="xs:string"/>
>>> <xs:element name="testString2" type="xs:string"/>
>>> </xs:sequence>
>>> </xs:complexType>
>>> −
>>> <xs:complexType name="TestTypeOut">
>>> −
>>> <xs:annotation>
>>> <xs:documentation> Test type for output</xs:documentation>
>>> </xs:annotation>
>>> −
>>> <xs:sequence>
>>> <xs:element name="result" type="xs:string"/>
>>> </xs:sequence>
>>> </xs:complexType>
>>> </xs:schema
>>>
>>> Freeman
>>>
>>> sedo wrote:
>>>
>>>> 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-tp17554225p17646228.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: imported schema from wsdl not published
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
That's weird for me.I simply drop your sa.jar to hotdeploy folder and I
can get the schema from firefox.
Could you update the latest code and build kit yourself, or you need
wait for the next snapshot.
Freeman
sedo wrote:
> Yeah, i tried firefox, opera, explorer - all of them report error
> I download servicemix snapshot with name:
> apache-servicemix-3.2.2-20080520.065446-1.zip
>
> I check today for newer version, but folders of snapshosts were (and still
> are) empty.
> Still can't see my schema
>
>
>
>
>
>
>
> Freeman Fang wrote:
>
>> Hi,
>>
>> You build 3.2.2 snapshot kit from latest code or you download kit from
>> somewhere? If you download it, would you please give me the link so that
>> I can check the date to see if it include the fix
>>
>> I think that's may be brower problem since you are using IE, would you
>> please try with firefox?
>>
>> I can see that schema in my firefox
>> <xs:schema elementFormDefault="qualified"
>> targetNamespace="http://huavi.sedo.sk/common">
>> −
>> <xs:complexType name="TestTypeIn">
>> −
>> <xs:annotation>
>> <xs:documentation> Test type for input </xs:documentation>
>> </xs:annotation>
>> −
>> <xs:sequence>
>> <xs:element name="testString1" type="xs:string"/>
>> <xs:element name="testString2" type="xs:string"/>
>> </xs:sequence>
>> </xs:complexType>
>> −
>> <xs:complexType name="TestTypeOut">
>> −
>> <xs:annotation>
>> <xs:documentation> Test type for output</xs:documentation>
>> </xs:annotation>
>> −
>> <xs:sequence>
>> <xs:element name="result" type="xs:string"/>
>> </xs:sequence>
>> </xs:complexType>
>> </xs:schema
>>
>> Freeman
>>
>> sedo wrote:
>>
>>> 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
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: imported schema from wsdl not published
Posted by sedo <se...@gmail.com>.
Yeah, i tried firefox, opera, explorer - all of them report error
I download servicemix snapshot with name:
apache-servicemix-3.2.2-20080520.065446-1.zip
I check today for newer version, but folders of snapshosts were (and still
are) empty.
Still can't see my schema
Freeman Fang wrote:
>
> Hi,
>
> You build 3.2.2 snapshot kit from latest code or you download kit from
> somewhere? If you download it, would you please give me the link so that
> I can check the date to see if it include the fix
>
> I think that's may be brower problem since you are using IE, would you
> please try with firefox?
>
> I can see that schema in my firefox
> <xs:schema elementFormDefault="qualified"
> targetNamespace="http://huavi.sedo.sk/common">
> −
> <xs:complexType name="TestTypeIn">
> −
> <xs:annotation>
> <xs:documentation> Test type for input </xs:documentation>
> </xs:annotation>
> −
> <xs:sequence>
> <xs:element name="testString1" type="xs:string"/>
> <xs:element name="testString2" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> −
> <xs:complexType name="TestTypeOut">
> −
> <xs:annotation>
> <xs:documentation> Test type for output</xs:documentation>
> </xs:annotation>
> −
> <xs:sequence>
> <xs:element name="result" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:schema
>
> Freeman
>
> sedo wrote:
>> 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-tp17554225p17558717.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: imported schema from wsdl not published
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
You build 3.2.2 snapshot kit from latest code or you download kit from
somewhere? If you download it, would you please give me the link so that
I can check the date to see if it include the fix
I think that's may be brower problem since you are using IE, would you
please try with firefox?
I can see that schema in my firefox
<xs:schema elementFormDefault="qualified"
targetNamespace="http://huavi.sedo.sk/common">
−
<xs:complexType name="TestTypeIn">
−
<xs:annotation>
<xs:documentation> Test type for input </xs:documentation>
</xs:annotation>
−
<xs:sequence>
<xs:element name="testString1" type="xs:string"/>
<xs:element name="testString2" type="xs:string"/>
</xs:sequence>
</xs:complexType>
−
<xs:complexType name="TestTypeOut">
−
<xs:annotation>
<xs:documentation> Test type for output</xs:documentation>
</xs:annotation>
−
<xs:sequence>
<xs:element name="result" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema
Freeman
sedo wrote:
> 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
>>>
>>>
>>
>>
>
>
Re: imported schema from wsdl not published
Posted by sedo <se...@gmail.com>.
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.
Re: imported schema from wsdl not published
Posted by Freeman Fang <fr...@gmail.com>.
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
>