ValidateComponent does not create StreamSource with a SystemId which breaks 
schema includes and imports
-------------------------------------------------------------------------------------------------------

                 Key: SM-514
                 URL: https://issues.apache.org/activemq/browse/SM-514
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-components
    Affects Versions: 3.0
         Environment: Windows XP SP2, Ubuntu Linux 5.10, ServiceMix HEAD
            Reporter: Grant McDonald
         Assigned To: Grant McDonald
             Fix For: 3.0
         Attachments: servicemix-components.zip

When creating a new schema object with a Source object the only way for 
Xalan/Xerces to resolve schema imports is via a SystemId which is an attribute 
on Source objects.  Without this attribute being set schema imports and 
includes are not resolved correctly and an obscure message is returned:

org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'USAddress' 
to a(n) 'type definition' component.

This is actually because the import/include failed.  It is unfortunate that the 
error message is not more informative.  A patch has been provided to fix this 
error and the ValidationTest test case updated to use a simple hierarchical 
directory layout.

NOTE: the attached zip file has two patches and a new directory and xsd.  The 
layout is as from the servicemix-components directory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to