[jboss-jira] [JBoss JIRA] (WFLY-9878) EclipseLink Entity Scanning broken in Wildfly 11

Alessandro Moscatelli (JIRA) issues at jboss.org
Tue Feb 27 06:47:00 EST 2018


    [ https://issues.jboss.org/browse/WFLY-9878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13538739#comment-13538739 ] 

Alessandro Moscatelli commented on WFLY-9878:
---------------------------------------------

Here, I made a simple new empty project with a single entity and a single startup bean ...

... and it's not working :

2018-02-27 11:41:02,407 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 83) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "eclipselinktest-ear-1.0.0-SNAPSHOT.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"eclipselinktest-ear-1.0.0-SNAPSHOT.ear\".\"eclipselinktest-ejb-1.0.0-SNAPSHOT.jar\".component.TestBean.START" => "java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: Object: org.visiontech.TestEntity at 3bc58e76 is not a known Entity type.
    Caused by: java.lang.IllegalArgumentException: Object: org.visiontech.TestEntity at 3bc58e76 is not a known Entity type."}}
2018-02-27 11:41:02,407 ERROR [org.jboss.as.server] (management-handler-thread - 83) WFLYSRV0021: Deploy of deployment "eclipselinktest-ear-1.0.0-SNAPSHOT.ear" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"eclipselinktest-ear-1.0.0-SNAPSHOT.ear\".\"eclipselinktest-ejb-1.0.0-SNAPSHOT.jar\".component.TestBean.START" => "java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: Object: org.visiontech.TestEntity at 3bc58e76 is not a known Entity type.
    Caused by: java.lang.IllegalArgumentException: Object: org.visiontech.TestEntity at 3bc58e76 is not a known Entity type."}}

 [^eclipselinktest.zip] 

> EclipseLink Entity Scanning broken in Wildfly 11
> ------------------------------------------------
>
>                 Key: WFLY-9878
>                 URL: https://issues.jboss.org/browse/WFLY-9878
>             Project: WildFly
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 11.0.0.Final
>         Environment: Enterprise Maven Project
> Wildfly 11
> Eclipse Link 2.7.1 (2.6.3 and 2.64 were also tested)
>            Reporter: Alessandro Moscatelli
>            Assignee: Scott Marlow
>         Attachments: eclipselinktest.zip, screenshot-1.png
>
>
> 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>



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list