Weblogic using Eclipse-Link instead of Hibernate

0

I'm developing a migration project from Jboss to Weblogic and my application in Jboss runs perfectly, however in Weblogic I get the following error:

  

Exception [EclipseLink-7298] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException Exception Description: The mapping [xxx] from the embedded ID class [class br.com .yyy.xyz.pk.rrrPK] is an invalid mapping for this class. An embeddable class that is used with an embedded ID specification (attribute [pqrsPK] from the source [class br.com.yyy.xyz.model.klm.Pppq]) can only contain basic mappings. Either remove the non-basic mapping or change the embedded ID specification on the source to be embedded.

As far as I understand, it's using EclipseLink , but I use Hibernate to persist the data. I tried to add in weblogic.xml o prefer-application-packages following:

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
     http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd 
     http://xmlns.oracle.com/weblogic/weblogic-web-app 
     http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">

 <wls:weblogic-version>12.1.3</wls:weblogic-version>
 <wls:context-root>meuprojeto</wls:context-root>
 <wls:container-descriptor>
     <wls:prefer-application-packages>
         <wls:package-name>org.hibernate</wls:package-name>
     </wls:prefer-application-packages>
 </wls:container-descriptor>

Any suggestions or solutions to solve this problem?

    
asked by anonymous 07.12.2018 / 21:04

0 answers