incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Minto van der Sluis (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLEREZZA-724) Remove internally used "org.apache.xerces.util" from bundle import-package/export-package
Date Fri, 07 Dec 2012 11:41:20 GMT
Minto van der Sluis created CLEREZZA-724:
--------------------------------------------

             Summary: Remove internally used "org.apache.xerces.util" from bundle import-package/export-package
                 Key: CLEREZZA-724
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-724
             Project: Clerezza
          Issue Type: Bug
          Components: rdf.parse
    Affects Versions: 0.2-incubating
            Reporter: Minto van der Sluis


I am experiencing LinkageError when using Clerezza in combination with CXF.

Caused by: java.lang.LinkageError: loader constraint violation: when
resolving method
"org.apache.xerces.util.ParserConfigurationSettings.<init>(Lorg/apache/xerces/xni/parser/XMLComponentManager;)V"
the class loader (instance of
org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of
the current class, org/apache/xerces/parsers/BasicParserConfiguration,
and the class loader (instance of
org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for
resolved class, org/apache/xerces/util/ParserConfigurationSettings, have
different Class objects for the type
gs.<init>(Lorg/apache/xerces/xni/parser/XMLComponentManager;)V used in
the signature
    at org.apache.xerces.parsers.BasicParserConfiguration.<init>(Unknown
Source)
    at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
    at
org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
    at
org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
    at
com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:117)
    at com.hp.hpl.jena.rdf.arp.JenaReader.<init>(JenaReader.java:62)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)[:1.7.0_02]
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_02]
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_02]
    at
java.lang.reflect.Constructor.newInstance(Constructor.java:525)[:1.7.0_02]
    at java.lang.Class.newInstance0(Class.java:372)[:1.7.0_02]
    at java.lang.Class.newInstance(Class.java:325)[:1.7.0_02]
    at
com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:113)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
    at
org.apache.clerezza.rdf.jena.parser.JenaParserProvider.parse(JenaParserProvider.java:68)
    ...

Removing "org.apache.xerces.util" from the bundle import-package and export-package resuls
in expected operation. Since the Xerces library is embedded inside the bundle it needs not
to be exported.

See also the mailing list:
http://mail-archives.apache.org/mod_mbox/incubator-clerezza-dev/201212.mbox/%3C50C0B4BB.3030307%40xup.nl%3E

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message