[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-279) Entity Listener defined in orm.xml does not work

Gary Ip (JIRA) noreply at atlassian.com
Fri Mar 23 06:40:09 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-279?page=comments#action_26532 ] 

Gary Ip commented on EJB-279:
-----------------------------

Sorry, I don't think I can provide a unit test case by tomorrow. However, I found an interesting issue. I try to introduce some garbage into orm.xml, so that it would cause the "org.xml.sax.SAXParseException" (as this XML is not valid). However, it seems the orm.xml is simply ignored when using 3.3.0 but 3.2.1 give me an expected "org.xml.sax.SAXParseException" exception.
I wonder the scanning process for orm.xml in 3.3.0 is different from 3.2.1. Let me provide you more information, I have two jar files containing META-INF/persistence.xml and one of it contains additional orm.xml, i.e.

a.jar
META-INF/persistence.xml

b.jar
META-INF/persistence.xml
META-INF/orm.xml

hope this information can help. Thanks.

> Entity Listener defined in orm.xml does not work
> ------------------------------------------------
>
>          Key: EJB-279
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-279
>      Project: Hibernate Entity Manager
>         Type: Bug

>   Components: EntityManager
>     Versions: 3.3.0.ga
>  Environment: Hibernate core 3.2.2.GA, Hibernate Annotations 3.3.0.GA, Hibernate Entity Manager 3.3.0.GA, Spring 2.0.3, Tomcat 5.5.20, Oracle 9i
>     Reporter: Gary Ip

>
>
> A default Entity Listener defined in orm.xml (this EJB3 deployment descriptor) worked in HEM and HAN 3.2.1 but not 3.3.0
> http://forums.hibernate.org/viewtopic.php?t=972352&sid=95588b2c2391806158e23a814f7babdc

-- 
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