[
https://issues.apache.org/jira/browse/CXF-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp updated CXF-1150:
-----------------------------
Affects Version/s: (was: 2.1)
2.0.2
Fix Version/s: 2.0.3
Assignee: Daniel Kulp
> EndpointReferenceUtils cannot obtain schema for client
> ------------------------------------------------------
>
> Key: CXF-1150
> URL: https://issues.apache.org/jira/browse/CXF-1150
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.0.2
> Reporter: Benson Margulies
> Assignee: Daniel Kulp
> Fix For: 2.0.3
>
>
> The following looks like another variation on the missing import issue,
> except that I fixed the missing import issue.
> 1) Set up a basic JAXB+JAXWS client.
> 2) Call EndpointReferenceUtils.getSchema() for the serviceInfo.
> 3)
> WARNING: SAXException for newSchema()
> org.xml.sax.SAXParseException: src-resolve.4.2: Error resolving component
> 'ns0:testBean1'. It was detected that 'ns0:testBean1' is in namespace
> 'uri:org.apache.cxf.javascript.testns', but components from this namespace
> are not referenceable from schema document 'null'. If this is the incorrect
> namespace, perhaps the prefix of 'ns0:testBean1' needs to be changed. If this
> is the correct namespace, then an appropriate 'import' tag should be added to
> 'null'.
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2241)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1192)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(XSDElementTraverser.java:376)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseLocal(XSDElementTraverser.java:214)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseLocalElements(XSDHandler.java:1781)
> at
> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:484)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:556)
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:523)
> at
> com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
> at
> org.apache.cxf.wsdl.EndpointReferenceUtils.getSchema(EndpointReferenceUtils.java:460)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.