Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1980

XML Validation in offline fails due to missing cxf-beans.xsd in distro

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.0.10, 2.1.4
    • Component/s: Resources
    • Labels:
      None

      Description

      Validation of Spring config fails when XML parser cannot reach schema online:

      ...
      2009-01-14 13:02:07,968 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/beans.xml]
      2009-01-14 13:02:08,703 [main] WARN org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Ignored XML validation warning
      org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://cxf.apache.org/schemas/configuration/cxf-beans.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
      ...

      Comparing versions 2.1.3 and 2.2 is seems that:
      1. in cxf-2.2*.jar!/schemas/configuration/cxf-beans.xsd is missing
      2. in cxf-2.2*.jar!/META-INF/spring.schemas mapping entry is missing

      It is not possible to apply client-side fix (introducing spring.schemas in client application) so CXF must be fixed.
      I guess it is build problem, however temporarily I do not have time to checkout code, fix build and apply patch :/

      cheers,
      andy.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              amichalec Andrzej Michalec
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: