tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Gallimore (JIRA)" <>
Subject [jira] [Created] (TOMEE-2295) Persistence Unit mapping-file ignored by CmpJpaConversion
Date Wed, 28 Nov 2018 11:32:00 GMT
Jonathan Gallimore created TOMEE-2295:

             Summary: Persistence Unit mapping-file ignored by CmpJpaConversion
                 Key: TOMEE-2295
             Project: TomEE
          Issue Type: Bug
    Affects Versions: 7.1.0, 7.0.5, 8.0.0-M1, 1.7.5
            Reporter: Jonathan Gallimore
            Assignee: Jonathan Gallimore
             Fix For: 8.0.0-Final, 1.7.6, 7.0.6, 7.1.1

The CmpJpaConversion code enables TomEE to run CMP entity beans by converting them to JPA
"on the fly". It does this by using a persistence unit it creates on the app module named
"cmp", and generating an orm.xml file for the persistence component to use.


However, if you create a persistence.xml file and a custom orm.xml file (using the `openejb.descriptors.output=true`
system property, for example) and reference the custom orm.xml in persistence.xml, it is


One possible workaround is to remove the mapping file reference from persistence.xml and package
it in the artifact as META-INF/openejb-cmp-orm.xml (or WEB-INF/openejb-cmp-orm.xml for .war
files): [] and


However, it should be possible to also check for the presence of an existing mapping file
on the cmp persistence unit, and use that as opposed to generating a new one.

This message was sent by Atlassian JIRA

View raw message