[jboss-jira] [JBoss JIRA] (WFLY-13159) Datasource resolution fails for application layer alias when using Hibernate bytecode enhancement
Scott Marlow (Jira)
issues at jboss.org
Mon Feb 24 21:31:00 EST 2020
[ https://issues.redhat.com/browse/WFLY-13159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13981264#comment-13981264 ]
Scott Marlow commented on WFLY-13159:
-------------------------------------
Just to mention a (larger code change) alternative, we could move the internal (WildFly) DataSource service dependency from the first pu bootstrap phase (org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl) service to the second pu phase (org.jboss.as.jpa.service.PersistenceUnitServiceImpl) service and passing the DataSource via org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder#withDataSource(DataSource). This could be a change to consider in the future, to allow even later specifying of the DataSource.
> Datasource resolution fails for application layer alias when using Hibernate bytecode enhancement
> -------------------------------------------------------------------------------------------------
>
> Key: WFLY-13159
> URL: https://issues.redhat.com/browse/WFLY-13159
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 18.0.1.Final
> Reporter: Stephen Fikes
> Assignee: Scott Marlow
> Priority: Major
> Fix For: 20.0.0.Beta1
>
>
> {code}
> ... ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "jboss.eap-1.0-SNAPSHOT.ear")]) - failure description: {
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.app.ejb-application.env.testDS"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"jboss.eap-1.0-SNAPSHOT.ear/ejb.jar#jboss-eap-hibernate\".__FIRST_PHASE__ is missing [jboss.naming.context.java.app.ejb-application.env.testDS]"]
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list