6 Replies Latest reply on Apr 5, 2018 12:58 PM by skorejo

    Migration Glassfish 3.1.2 to Wildfly: Challenge trying to get EclipseLink to Work

    sharkbite

      Hi

       

      I have got EclipseLink enabled on WildFly using post from other forums.

       

      The problem I am getting now is:

      10:53:43,430 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014613: Operation ("deploy") failed - address: ({"deployment" => "fnds-ear-1.0.0.ear"}) - failure description: {

          "JBAS014671: Failed services" => {"jboss.persistenceunit.\"fnds-ear-1.0.0.ear/fnds-persistence-1.0.0.jar#za.co.fnds_fnds-core_ejb_1.0.0PU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"fnds-ear-1.0.0.ear/fnds-persistence-1.0.0.jar#za.co.fnds_fnds-core_ejb_1.0.0PU\": javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.EntityManagerSetupException

      Exception Description: Predeployment of PersistenceUnit [za.co.fnds_fnds-core_ejb_1.0.0PU] failed.

       

      Internal Exception: Exception [EclipseLink-7250] (Eclipse Persistence Services - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.ValidationException

      Exception Description: [class za.co.fnds.persistence.entities.Tcu05CustomerBinProgs] uses a non-entity [class za.co.fnds.persistence.entities.Tca11BinPrograms] as target entity in the relationship attribute [field binProgId].

          Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.EntityManagerSetupException

       

      To make this error go away I add za.co.fnds.persistence.entities.Tca11BinPrograms to the persitance.xml. Please see file attached

       

       

      How do I solved this problem of not adding all these entities into this xml file? What does it mean when you add them to this file using the class tag?

       

      Tks,

      daslan