geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-5606) Bad persistenceUnitRoot for PUs in jars embedded in WARs
Date Tue, 14 Sep 2010 20:37:37 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909435#action_12909435
] 

Jarek Gawor commented on GERONIMO-5606:
---------------------------------------

In revision 997073 I committed a set of changes that represent an attempt at fixing the persistenceUnitRoot
problem. If a persistence.xml is discovered within a jar file, the persistenceUnitRoot of
the PU will be a "jar" type of URL. The classloader of the PU is also changed to BundleResourceClassLoader
which returns "jar" type of URLs for resources embedded in jar files. Because the persistenceUnitRoot
URL is now consistent with the URLs returned by BundleResourceClassLoader, OpenJPA can successfully
discover the orm.xml file and other resources.


> Bad persistenceUnitRoot for PUs in jars embedded in WARs
> --------------------------------------------------------
>
>                 Key: GERONIMO-5606
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5606
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: persistence
>    Affects Versions: 3.0
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 3.0
>
>
> The persistenceUnitRoot for PUs in jars embedded in WARs is computed incorrectly which
for example causes the META-INF/orm.xml files not to be discovered by OpenJPA.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message