]
Scott Marlow commented on WFLY-10381:
-------------------------------------
Would be nice to fix both issues together
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.