Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: SF-393
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Willem Jiang
Reporter: Willem Jiang
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FUSE Services Framework

enhancement of the exception message when configuring the schema location in the jaxws endpoint.

Created: 08/Dec/11 03:00 AM   Updated: 08/Dec/11 06:44 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4.3-fuse-00-xx, 2.3.7-fuse-00-xx, 2.5.0-fuse-00-xx

External Issue URL: https://issues.apache.org/jira/browse/CXF-3965


 Description  « Hide
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
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)

It could be handy if we know about the document namespace when CXF throws the exception.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Willem Jiang added a comment - 08/Dec/11 06:44 AM
Merged the patch into 2.5.x-fuse, 2.4.x-fuse, 2.3.x-fuse branch.