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

Error loading Aegis Databinding in OSGi

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.6
    • 3.1.7, 3.2.0
    • Aegis Databinding
    • None
    • Unknown

    Description

      When running the CXF DOSGi build with Java 8 I get the exception below.
      I think Aegis does not find the SchemaFactory. As a workaround I propose to move the line

      SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);

      into the try catch block. So Aegis should then work without schema support. A better solution might be to use a suitable thread context classloader or another way to load the factory.

      I would be happy about suggestions and will implement the workaround for now.

      http://apaste.info/8TO

      Caused by: java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/2001/XMLSchema could be loaded
      at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:215)
      at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java:122)
      ... 26 more

      Attachments

        Activity

          People

            cschneider Christian Schneider
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: