You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Alex Bitman (JIRA)" <ji...@apache.org> on 2018/03/11 19:32:00 UTC
[jira] [Comment Edited] (SM-3020) NoClassDefFoundError using Xerces
/ XmlResolver
[ https://issues.apache.org/jira/browse/SM-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16394501#comment-16394501 ]
Alex Bitman edited comment on SM-3020 at 3/11/18 7:31 PM:
----------------------------------------------------------
Hi,
your problem is that xerces comes from different classloader.
Your bundle should not export these package: just import or private.
As the resolver uses xerces, they should go in the same classloader (so
from lib/endorsed).
Let me double check your use case.
Regards ,[Alex Bitman|https://bitmann.org/localbitcoins-review/]
was (Author: bitmann):
Hi,
your problem is that xerces comes from different classloader.
Your bundle should not export these package: just import or private.
As the resolver uses xerces, they should go in the same classloader (so
from lib/endorsed).
Let me double check your use case.
Regards ,Alex
> NoClassDefFoundError using Xerces / XmlResolver
> -----------------------------------------------
>
> Key: SM-3020
> URL: https://issues.apache.org/jira/browse/SM-3020
> Project: ServiceMix
> Issue Type: Bug
> Components: assemblies
> Affects Versions: 6.1.0
> Reporter: Jean-Baptiste Martin
> Priority: Major
> Fix For: 6.1.5, 7.0.2
>
>
> cf. http://servicemix.396122.n5.nabble.com/NoClassDefFoundError-using-Xerces-XmlResolver-td5723624.html
> In a nutshell, Xerces bundle wants to use a class (org/apache/xml/resolver/CatalogManager) contained in XmlResolver bundle but can't reach it (due to classloading mechanism).
> The issue can be resolved if XmlResolver's classes are loaded by the same classloader as Xerces's one (the bootstrap / primordial classloader). In our case, this consists in :
> - Adding XmlResolver jar file in <SMX_HOME>/lib/endorsed/
> - Exporting 'org.apache.xml.resolver' to the bootdelegation packages (via <SMX_HOME>/etc/config.properties file)
> Should this solution be the default configuration ?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)