java – Weblogic using Eclipse-Link instead of Hibernate

I am developing a migration project JBoss for WebLogic and my application in the JBoss wheel perfectly, but in the WebLogic I have the following error:

exception [EclipseLink-7298] (Eclipse Persistence Services – 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException Exception Description: Mapping [xxx] from the embedded ID class [class br.com.yyy.xyz.pk.rrrPK] It is an invalid mapping for this class. A packaged entity that is used with an identification identification specification [pqrsPK] from the source [class br.com.yyy.xyz.model.klm.Pppq]) can only contain base maps. Remove the non-mapping frame or change the identification insertion identifier at the origin so that they are embedded.

From what I understood, he's using the EclipseLinkbut I use hibernate to persist the data.
I tried adding in the weblogic.xml the Prefer-Application-packages following:




 12.1.3
 My project
 
     
         org.hibernate
     
 

Any suggestions or solutions to solve this problem?