You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/04 14:47:40 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15179891#comment-15179891 ]
ASF GitHub Bot commented on OPENJPA-2632:
-----------------------------------------
GitHub user rsandtner opened a pull request:
https://github.com/apache/openjpa/pull/4
OPENJPA-2632 use TCCL as fallback
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rsandtner/openjpa OPENJPA-2632
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/openjpa/pull/4.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4
----
commit b44db2f7754c785da44f084849e7caac9ff216e9
Author: rsandtner <rs...@apache.org>
Date: 2016-03-04T13:44:25Z
OPENJPA-2632 use TCCL as fallback
----
> 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
>
> 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)