The hierarchy search is just a hack for lazy users.
Thomas should be passing in the RealClassLoader in the first place,
i.e. the (sub-)deployment classloader.
The one he was actually passing in is the wrapper ejb classloader which
has other side affects like it is associated with the EJB's enc when used as the
context classloader.
This "fix" corrects the problem for JMX but not for other uses of that
"deployment"
classloader.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205597#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...