Why jar-file tag does not find entities in JBoss EAP?

Solution Verified - Updated -

Issue

After a migration of an application from JBoss 4.2.3.GA to JBoss EAP 6.1.1, and the tag jar-file in persistence.xml file does not identify the entities. Below the EAR structure:

app-ear.ear
app-framework1.jar
app-framework2.jar
app-web.war
app-framework3.jar
jboss-seam.jar
lib
META-INF
jboss-deployment-structure
persistence.jar
persistence.xml

persistence.xml

<persistence xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"><!-- persistence-unit name="grpfor">
...
<jar-file>../grpfor-framework.jar</jar-file>
<jar-file>../grpforfc-framework.jar</jar-file>
<jar-file>../grpforfc-orc.jar</jar-file>
...

Environment

Red Hat JBoss Enterprise Application Platform all versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.