Skip to content

XStreamMarshaller should avoid direct use of CompositeClassLoader which is not exported by XStream in OSGi #25662

Closed
@aclemons

Description

@aclemons

XStreamMarshaller uses the class CompositeClassLoader here, but it is not part of the public API. xstream is an OSGi bundle and does not export the package com.thoughtworks.xstream.core.util. This results in a ClassNotFoundException when using Spring oxm + xstream in an OSGi environment since that package is not exported.

I've asked explicitly here about this. Could Spring oxm use the same classloader which loaded the xstream classes (XStream.class.getClassLoader()) to lookup the CompositeClassLoader and create a new instance to avoid this issue?

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions