[jboss-jira] [JBoss JIRA] (WFLY-10381) AttributeConverter injection fails with EclipseLink if deploy-on-startup = true
Rich DiCroce (JIRA)
issues at jboss.org
Wed May 16 13:46:00 EDT 2018
Rich DiCroce created WFLY-10381:
-----------------------------------
Summary: AttributeConverter injection fails with EclipseLink if deploy-on-startup = true
Key: WFLY-10381
URL: https://issues.jboss.org/browse/WFLY-10381
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 12.0.0.Final
Reporter: Rich DiCroce
Assignee: Scott Marlow
As of 2.7, EclipseLink implements JPA 2.2 and therefore supports injection into AttributeConverters. Injection fails silently if the eclipselink.deploy-on-startup PU property is set to true, because the BeanManager is not available yet when EclipseLink tries to instantiate the AttributeConverter.
Workaround: don't set the deploy-on-startup property.
It would be nice if this could be made to work, but I'm guessing it will be a chicken/egg problem of dependencies between CDI and JPA. So if it can't be made to work, it would be good to at least detect that the PU property has been set, and warn about it in the log.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list