Classloader fix under Tomcat

Description

We use Rome within a webapp on Tomcat6 and the properties failed to be found due
to the use of Thread.currentThread().getContextClassLoader().

In my case the rome.jar is dynamically loaded so
Thread.currentThread().getContextClassLoader() will not contain the
classloader for rome.jar.

The patch included fixes this so it always uses the classloader which the Rome
jar was loaded by regardless of the classloader the current thread is using.

Tested the patch outside of Tomcat in a regular simple app and that is fine.

Also before patching, we tried enabling the fix made for OSGi support, but that
was no good either in this situation.

Environment

None

Status

Assignee

ROME Jira Lead

Reporter

hovis

Labels

None

Participants

None

Affects versions

current

Priority

Blocker