This content has been marked as final.
Show 2 replies
-
1. Re: Wildfly 9.0.2 classloading issues
jaikiran Jan 2, 2017 12:03 AM (in response to sumanthreddybandi)Please post the complete stacktrace and the contents of your jboss-deployment-structure.xml
-
2. Re: Wildfly 9.0.2 classloading issues
sumanthreddybandi Jan 2, 2017 5:15 PM (in response to jaikiran)Sorry it was code issue. I was migrating an application from JBoss 4 to Wildfly 9.
There is a code where explicitly setting context classloader to parent classloaders
ClassLoader cl = TestXXX.class.getClassLoader().getParent().getParent().getParent().getParent();
Thread.currentThread().setContextClassLoader(cl);
It worked when i removed this because the current class loader in wildfly is: org.jboss.modules.ModuleClassLoader and most of the dependent classes (including com.sun.el.ExpressionFactoryImpl) are loaded from module dependency.