[jboss-jira] [JBoss JIRA] (WFLY-9773) Bug in Module Classloading
Thomas Isaksen (JIRA)
issues at jboss.org
Thu Feb 8 03:29:01 EST 2018
[ https://issues.jboss.org/browse/WFLY-9773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Isaksen updated WFLY-9773:
---------------------------------
Steps to Reproduce:
unzip IgniteHandler.zip into $WILDFLY_HOME/modules
set $IGNITE_HOME and unzip gatekeeper-token-config.xml.zip to that location
Add a filter and a filter-red in standalone.xml as follows:
<filter-ref name="igniteHandler" priority="100"/>
<filter name="igniteHandler" class-name="no.toyota.gatekeeper.handler.IgniteHandler" module="no.toyota.gatekeeper:simplified"/>
was:Download
Workaround Description:
A workaround was provided by https://developer.jboss.org/people/jaikiran
public IgniteHandler() {
final ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(TokenBouncerHandler.class.getClassLoader());
// rest of your existing code goes here
....
} finally {
Thread.currentThread().setContextClassLoader(oldCL);
}
> Bug in Module Classloading
> --------------------------
>
> Key: WFLY-9773
> URL: https://issues.jboss.org/browse/WFLY-9773
> Project: WildFly
> Issue Type: Bug
> Components: Class Loading
> Affects Versions: 10.1.0.Final
> Environment: Windows 10
> Java 1.8.0_112
> WildFly 10.1.Final
> Reporter: Thomas Isaksen
> Assignee: David Lloyd
> Attachments: IgniteHandler.zip, gatekeeper-token-config.xml.zip
>
>
> Custom module class loading fails with ClassNotFoundException
> I have attached a reproducible example here but it is also available on the forum thread mentioned.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list