Here is the syntax for reading from a jar file (this would go in the Location field of the XML Catalog entry): "jar:file:C:/java/apache-cxf-2.0.4-incubator/lib/cxf-2.0.4-incubator.jar!/schemas/configuration/cxf-beans.xsd"
For this example, Key Type is: Schema Location and Key is: http://cxf.apache.org/schemas/configuration/cxf-beans.xsd You need to make sure other cxf schemas referenced in your entries are entered in the eclipse catalog as well. blacksheep wrote: > >> > >> > 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 >> >> >> >> > -- View this message in context: http://www.nabble.com/Eclipse-XSD-validation-for-jaxws.xsd-tp11691580p16286508.html Sent from the cxf-user mailing list archive at Nabble.com.
