Description
When accessing a bean via the InitialContext, the context classloader of the calling thread is changed. This causes problems in application that rely on certain context classloaders, e.g. Eclipse. The bug is quite obvious: before creating the proxy instance in line 209 of org.apache.openejb.client.EJBObjectHandler, the context classloader is changed. However, after the call is should be restored but is again set to the other classloader. The argument should be "oldCl" instead.