[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5522) META-INF/orm.xml in a persistence unit jar is not being picked up

jaikiran (JIRA) noreply at atlassian.com
Wed Sep 1 08:06:18 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38247#action_38247 ] 

jaikiran commented on HHH-5522:
-------------------------------

Forgot to mark the "Affects Version" (and I don't have Edit option). This bug affects 3.5.2-Final through 3.5.5-Final.


> META-INF/orm.xml in a persistence unit jar is not being picked up
> -----------------------------------------------------------------
>
>                 Key: HHH-5522
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5522
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: entity-manager
>            Reporter: jaikiran
>         Attachments: entity-source.tar.gz, jboss-ejb3-tutorial-entity.jar
>
>
> Starting JBoss AS 6.0.0.M4 (and even the current AS trunk), the META-INF/orm.xml file in a persistence unit jar file is not being picked up. JBoss AS 6.0.0.M3 picks up that file correctly. Attached is a jar file which contains a META-INF/orm.xml with the following (intentionally invalid) contents:
> <?xml version="1.0" encoding="UTF-8"?>
> <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" version="1.0">
>     <!-- Intentional bogus element, to fail orm.xml parsing (if at all it's picked up) -->
>     <bogus/>
> </entity-mappings>
> Place the attached .jar file JBOSS_HOME/server/<servername>/deploy folder and start the server. The deployment _doesn't_ complain of this invalid orm.xml file (Note: This is just a quick way of testing that the META-INF/orm.xml isn't being picked up. The real test where I encountered the issue involved default entity listeners in META-INF/orm.xml not being invoked).
> I've also attached the source files of that jar. It contains an Ant build script too - just set JBOSS_HOME and run "ant ejbjar" to deploy to AS.
>  
> P.S: JBoss AS 6.0 M4 uses 3.5.2-Final and the current AS trunk uses 3.5.5-Final of Hibernate

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list