Yep!  It works.

- unpack the 2 XSDs:
        - ex. C:\dev\xsd\cxf-beans.xsd
        - ex. C:\dev\xsd\jaxws.xsd

- change your service.xml xsi:schemaLocation attribute to point to: 
file:///C:/dev/xsd/jaxws.xsd
- also, make sur you change schemaLocation attribute in jaxws.xsd, for it is 
referencing cxf-beans.xsd
        - schemaLocation="file:///C:/dev/xsd/cxf-beans.xsd"

Then, do a clean build, and watch, with great satisfaction, the disapearing of 
the errors ...

JS.

-----Message d'origine-----
De : Dale Peakall [mailto:[EMAIL PROTECTED] 
Envoyé : 20 août 2007 04:06
À : [email protected]
Objet : Re: Eclipse XSD validation for jaxws.xsd

I ended up just unpacking the JARs and pointing eclipse to the actual XSD 
files.  You'll also need to set the key type to 'Schema Location'.

blacksheep wrote:
> Durga,
>
> Were you able to figure out the problem ? Looks like I have the same 
> problem.
>
> Thanks,
>
> Mustafa
>
>
> gdprao wrote:
>   
>> Thanks for the reply.  I have tried the following as this jaxws.xsd 
>> is contained in the cxf-2.0-incubator.jar.
>>
>> Window-->Preferences-->Web and XML-->XML Catalog-->User specified 
>> Window-->Preferences-->entries
>> -->Add
>>
>> Location: C:\apache-cxf-2.0-incubator\lib\cxf-2.0-incubator.jar
>> Key Type: URI
>> Key: http://cxf.apache.org/schemas/jaxws.xsd
>>
>> It produced the following details:
>>
>> Location:    C:\apache-cxf-2.0-incubator\lib\cxf-2.0-incubator.jar
>> URI:                 
>> file:///C:/apache-cxf-2.0-incubator/lib/cxf-2.0-incubator.jar
>> Key Type:    URI
>> Key:         http://cxf.apache.org/schemas/jaxws.xsd
>>
>> Still after this I have the following error:
>>
>> Referenced file contains errors
>> (file:/C:/apache-cxf-2.0-incubator/lib/cxf-2.0-incubator.jar).  For 
>> more information, right click on the message and select "Show Details...
>>
>> My applicationContext file:
>>
>> <beans xmlns="http://www.springframework.org/schema/beans";
>>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>       xmlns:jaxws="http://cxf.apache.org/jaxws";
>>       xmlns:soap="http://cxf.apache.org/bindings/soap";
>>       xsi:schemaLocation="
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>> http://cxf.apache.org/bindings/soap
>> http://cxf.apache.org/schemas/configuration/soap.xsd
>> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>
>>
>>     <jaxws:endpoint
>>         id="hello_world_xml_bare"
>>         implementor="demo.hw.server.GreeterImpl"
>>         wsdlLocation="WEB-INF/wsdl/hello_world.wsdl"
>>         address="/hello_world">
>>                 <jaxws:features>
>>                  <bean class="org.apache.cxf.feature.LoggingFeature"/>
>>                 </jaxws:features>
>>     </jaxws:endpoint>
>>
>> </beans>
>>
>> I am not sure as to how to load the XSD from jar file into the Eclipse.
>> Please help. 
>>
>> Thanks,
>> Durga
>>
>>
>> bmargulies wrote:
>>     
>>> Type 'catalog' into the window/preferences filter box.
>>>
>>>       
>>>> -----Original Message-----
>>>> From: Durgaprasad Rao [mailto:[EMAIL PROTECTED]
>>>> Sent: Thursday, July 19, 2007 12:30 PM
>>>> To: [email protected]
>>>> Subject: RE: Eclipse XSD validation for jaxws.xsd
>>>>
>>>> Thanks for the reply.  I found the location of this jar containing 
>>>> jaxws.xsd.  How can I export this XSD to Eclipse so that it finds 
>>>> this schema. Currently my eclipse reports : Failed to read schema 
>>>> document 'http://cxf.apache.org/schema/jaxws.xsd'. Eclipse could 
>>>> able to find spring related name spaces but not the CXF related 
>>>> ones.  Any help is appreciated.
>>>>
>>>>   Thanks,
>>>>   Durga
>>>>
>>>> Christopher Moesel <[EMAIL PROTECTED]> wrote:
>>>>   The jaxws.xsd file is packaged in the 
>>>> cxf-rt-frontend-jaxws-2.0-incubator.jar as well as the uber 
>>>> cxf-2.0-incubator.jar. In both cases, you can find it under /schemas.
>>>>
>>>> -Chris
>>>>
>>>> -----Original Message-----
>>>> From: gdprao [mailto:[EMAIL PROTECTED]
>>>> Sent: Thursday, July 19, 2007 11:35 AM
>>>> To: [email protected]
>>>> Subject: Eclipse XSD validation for jaxws.xsd
>>>>
>>>>
>>>> I am new to CXF and trying to use it with spring. When I am trying 
>>>> to use beans.xml file with jaxws.xsd namespace, Eclipse reports 
>>>> that this namespace is not found. How can I add this schema to the 
>>>> eclipse so that it can find the schema and does not report 
>>>> validation errors. Any help is appreciated.
>>>> --
>>>> View this message in context:
>>>>
>>>>         
>>> http://www.nabble.com/Eclipse-XSD-validation-for-jaxws.xsd-tf4111858
>>> .htm
>>>       
>>>> l#a11691580
>>>> Sent from the cxf-user mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------
>>>> Yahoo! oneSearch: Finally,  mobile search that gives answers, not 
>>>> web links.
>>>>         
>>>       
>>     
>
>   

Reply via email to