Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-2100

Context Classloader not restored in org.apache.openejb.client.EJBObjectHandler.createEJBObjectProxy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.6.0.2
    • 4.7.1, 7.0.0-M2
    • general
    • None

    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.

      Attachments

        1. EJBObjectHandler.java.patch
          0.9 kB
          Thorsten Meinl

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            sithmein Thorsten Meinl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: