You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org> on 2011/12/08 05:45:39 UTC

[jira] [Resolved] (CXF-3965) Enhancement of the exception message when configuring the schema location in the jaxws endpoint.

     [ https://issues.apache.org/jira/browse/CXF-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CXF-3965.
-------------------------------

    Resolution: Fixed

Dan already committed the fix here
trunk http://svn.apache.org/viewvc?rev=1211099&view=rev
2.4.x http://svn.apache.org/viewvc?rev=1211190&view=rev
I just merged the patch into 2.3.x-fixes branch
http://svn.apache.org/viewvc?rev=1211755&view=rev 
                
> Enhancement of the exception message when configuring the schema location in the jaxws endpoint.
> ------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3965
>                 URL: https://issues.apache.org/jira/browse/CXF-3965
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAXB Databinding
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 2.3.8, 2.4.5, 2.5.1
>
>
> If the schema doesn't have the namespace of W3C_XML_SCHEMA_NS_URI ("http://www.w3.org/2001/XMLSchema"), we just have the exception like this
> {code}
> Caused by: java.lang.RuntimeException: Invalid schema document passed to AbstractDataBinding.addSchemaDocument, not in W3C schema namespace
>        at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:98)
>        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:344)
>        at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
>        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:438)
>        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:682)
>        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:501)
>        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
>        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
>        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
>        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)
>        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:202)
>        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)
>        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)
> {code}
> It could be handy if we know about the document namespace when CXF throws the exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira