Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2632

select new not working if result class is not in same classloader

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.4.2
    • Component/s: jdbc
    • Labels:
      None

      Description

      in my case i'm using an ear with multiple war files.

      the entities are located in ear/lib and my select new result class and the service which loads it are located in a war (doesn't matter if in WEB-INF/lib or WEB-INF/classes)

      openJPA uses the CL stored in QueryImpl but this one can not load my class.

      imo if the class can not be loaded with the stored class loader, we can try to use the TCCL to load the class.

        Attachments

        1. OPENJPA-2632.patch
          7 kB
          Reinhard Sandtner

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              rsandtner Reinhard Sandtner
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: