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

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

Attach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment