[ 
https://issues.apache.org/jira/browse/CXF-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539479
 ] 

Benson Margulies commented on CXF-1150:
---------------------------------------

This is still happening even with recent Dan fixes. Run the SerializationTest 
from rt/javascript, I've added a test case there that still produces this, 
albeit on a different bit of the schema.

The test passes, all this is just noise in the log.


> 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.

Reply via email to