teatrove/teatrove — Issue #29: BeanPropertyAccessor loads against wrong class loader
Author: nicholashagen
Created: 2012-03-09 19:56:03+00:00
State: open

The BeanPropertyAccessor attempts to create a dynamic class injector for its dynamic classes based on the class loader of the bean being created. However, in EAR-type environments where multiple classloaders exist, the bean may be in a higher classloader than the parent BeanPropertyAccessor class. As a result, a ClassNotFoundException occurs. The class injector should instead use the Thread context class loader to ensure highest portability.