cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <>
Subject [jira] [Created] (CXF-6959) Error loading Aegis Databinding in OSGi
Date Mon, 04 Jul 2016 14:56:10 GMT
Christian Schneider created CXF-6959:

             Summary: Error loading Aegis Databinding in OSGi
                 Key: CXF-6959
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding
    Affects Versions: 3.1.6
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: 3.1.7, 3.2.0

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.

Caused by: java.lang.IllegalArgumentException: No SchemaFactory that implements the schema
language specified by: could be loaded
	at javax.xml.validation.SchemaFactory.newInstance(
	at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(
	... 26 more

This message was sent by Atlassian JIRA

View raw message