You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jan Kriesten <ja...@renitence.de> on 2007/06/27 14:47:08 UTC
latest trunk error...
hi,
i've got the following problem with the latest trunk defining the services:
---8<---
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
document 'http://cxf.apache.org/schema/jaxws.xsd', because
1) could not find the document; 2) the document could not be read; 3) the root
element of the document is not <xsd:schema>.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
---8<---
this is the services.xml which should be loaded:
---8<---
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<jaxws:endpoint id="AuthService"
implementor="de.footprint.www.services.auth.AcegiAuthService"
address="/AuthService" />
</beans>
---8<---
version cxf-2.0-incubator-RC.jar is working with this services.xml though.
regards, --- jan.
Re: latest trunk error...
Posted by Jan Kriesten <ja...@renitence.de>.
hi dan,
> Try making your xsi:schemaLocation look like this:
thanks! that did it! :-)
best regards, --- jan.
Re: latest trunk error...
Posted by Dan Diephouse <da...@envoisolutions.com>.
Hi Jan,
Try making your xsi:schemaLocation look like this:
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd<http://cxf.apache.org/schema/jaxws.xsd>
"
Notice the extra 's' in the JAX-WS '/schemas/' portion of the URL.
Regards,
- Dan
On 6/27/07, Jan Kriesten <ja...@renitence.de> wrote:
>
>
> hi,
>
> i've got the following problem with the latest trunk defining the
> services:
>
> ---8<---
> org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
> document 'http://cxf.apache.org/schema/jaxws.xsd', because
> 1) could not find the document; 2) the document could not be read; 3) the
> root
> element of the document is not <xsd:schema>.
> at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown
> Source)
> ---8<---
>
> this is the services.xml which should be loaded:
>
> ---8<---
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd">
>
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
>
> <jaxws:endpoint id="AuthService"
> implementor="
> de.footprint.www.services.auth.AcegiAuthService"
> address="/AuthService" />
>
> </beans>
> ---8<---
>
> version cxf-2.0-incubator-RC.jar is working with this services.xml though.
>
> regards, --- jan.
>
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog