[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5522?page=c...
]
jaikiran commented on HHH-5522:
-------------------------------
After discussing this with Emmanuel and Steve, this turned out to be a bug in the AS
Scanning integration code. Ales has fixed (r107257) this recently in the jboss-scanning
project and plans to release a new version into JBoss AS trunk (which effectively means
it's going to be fixed for JBoss AS 6.0.0.CR1).
This JIRA can be closed.
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira