Thank you for your response. I did make the changes in the order in which the 2 EJB jars are deployed; however what I can understand is that the server recognizes the first "persistence.xml" and seems to ignore the second. So if I invoke a finder in the EJB JAR deployed first, the query is executed, but when the finder in second EJB JAR is invoked the named query is not found.
Any other possible solution would be appreciated.
There is a solution to this problem.
EAR Structure - Not working in JBoss 7.1.3 but works in JBoss5.1.0.GA
EAR Structure - Working in JBoss 7.1.3
Also, there is a change in "persistence.xml".
version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
<persistence-unit name="MY_PU" transaction-type="JTA">
<property name="hibernate.show_sql" value="true" />
Can anyone reason why such a change is required?