You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2016/07/05 15:27:10 UTC
[jira] [Resolved] (CXF-6959) Error loading Aegis Databinding in
OSGi
[ https://issues.apache.org/jira/browse/CXF-6959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schneider resolved CXF-6959.
--------------------------------------
Resolution: Fixed
> Error loading Aegis Databinding in OSGi
> ---------------------------------------
>
> Key: CXF-6959
> URL: https://issues.apache.org/jira/browse/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.
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)