You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2016/03/14 22:58:33 UTC

[jira] [Resolved] (OPENJPA-2632) select new not working if result class is not in same classloader

     [ https://issues.apache.org/jira/browse/OPENJPA-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OPENJPA-2632.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.2

patch applied, txs Reinhard!
Will just add some docs for it.

> select new not working if result class is not in same classloader
> -----------------------------------------------------------------
>
>                 Key: OPENJPA-2632
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2632
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.4.1
>            Reporter: Reinhard Sandtner
>            Assignee: Mark Struberg
>             Fix For: 2.4.2
>
>         Attachments: OPENJPA-2632.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)