I'm working on an application server bug fix that I need some advice
with, as Hibernate ORM 4.3.6.Final is throwing a
"o.h.DuplicateMappingException: Duplicate query mapping
EventManager.MyEvents" after I fixed a jar-file reference bug in WildFly
(when I try to deploy a test case).
Prior to my jar-file bug fix, the jar-file URL was incorrectly pointing
at the wrong location (zero files were returned when file url was
accessed). As a result, entities were loaded only once from the ear/lib
jar. Now, with my bug fix (getJarFileUrls now returns a valid URL for
jar-file) , WildFly is getting the DuplicateMappingException because the
entity is loaded twice (even though *exclude-unlisted-classes* is in the
I would like to resolve the DME before back porting the "jar-file"
(WildFly) bug fix. I didn't see this behaviour in my ORM 4.2.x testing
By the way, the getPersistenceUnitRootUrl is the test.ear.
EventManager entity class
Event entity class
<load-collection alias="manages" role="EventManager.manages"
SELECT * FROM EVENT e where e.manager = ?
Show replies by date