Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9878

EclipseLink Entity Scanning broken in Wildfly 11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 11.0.0.Final
    • JPA / Hibernate
    • None

    Description

      Following :

      https://docs.jboss.org/author/display/WFLY/JPA+Reference+Guide#JPAReferenceGuide-MigratingfromEclipseLink

      When you try to persist ANY entity (located in ejb, or jar or anywhere you want) if such entity is not listed in persistence.xml you'll get a :

      Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: Object: org.visiontech.optoplus.entity.Provider[ id=null ] is not a known Entity type

      If I list such entity in persistence.xml the error is gone and the entity is persisted.

      Inside standalone.xml I used :

      <system-properties>
      ...
      <property name="eclipselink.archive.factory" value="org.jipijapa.eclipselink.JBossArchiveFactoryImpl"/>
      </system-properties>

      Is this a problem related to the last version (11 Final) of jipijapa.eclipselink ?
      I found several topic stating that what I done worked with Wildfly 10 and older version of jipijapa.

      I tried several combination of older jipijapa and eclipselink versions without success.

      I have about 130 entities in my probject, I'd REALLY love not to enlist them all.

      My persistence.xml :

      <persistence-unit name="optoplus">
      <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
      <jta-data-source>java:/jdbc/db_optoplus</jta-data-source>
      <exclude-unlisted-classes>false</exclude-unlisted-classes>
      </persistence-unit>

      Attachments

        1. screenshot-1.png
          93 kB
          Alessandro Moscatelli

        Activity

          People

            smarlow1@redhat.com Scott Marlow
            alessandro.moscatelli@live.com Alessandro Moscatelli (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: