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

Error loading Aegis Databinding in OSGi

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.6
    • Fix Version/s: 3.1.7, 3.2.0
    • Component/s: Aegis Databinding
    • Labels:
      None
    • Estimated Complexity:
      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

            • Assignee:
              cschneider Christian Schneider
              Reporter:
              cschneider Christian Schneider

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment