[ https://issues.apache.org/jira/browse/OPENEJB-2070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Gumbrecht resolved OPENEJB-2070. ------------------------------------- Resolution: Fixed Assignee: Andy Gumbrecht Not seen any issues since lock introduced. > Potential deadlock in URLClassLoaderFirst > ----------------------------------------- > > Key: OPENEJB-2070 > URL: https://issues.apache.org/jira/browse/OPENEJB-2070 > Project: OpenEJB > Issue Type: Bug > Components: container system > Affects Versions: 4.6.0 > Environment: NA > Reporter: Andy Gumbrecht > Assignee: Andy Gumbrecht > Fix For: 4.7.0 > > > Calling org.apache.openejb.util.classloader.URLClassLoaderFirst#loadClass > from one thread may cause a deadlock if Class.forName is called from another > thread, as this internally calls ClassLoader.getCallerClassLoader() - Which > may be the same URLClassLoaderFirst instance. > Adding an ReentrantLock should be a viable solution. -- This message was sent by Atlassian JIRA (v6.2#6252)