[jboss-jira] [JBoss JIRA] (WFLY-9053) AbstractMethodError with Hibernate 5.2
Giovanni Lovato (JIRA)
issues at jboss.org
Thu Jul 6 09:05:00 EDT 2017
[ https://issues.jboss.org/browse/WFLY-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431553#comment-13431553 ]
Giovanni Lovato edited comment on WFLY-9053 at 7/6/17 9:04 AM:
---------------------------------------------------------------
Thank you [~smarlow] for the feedback, but I didn't filed this issues about the adoption of Hibernate 5.2 as the default JPA provider in WildFly 11, as I know there's already ongoing work on this.
I'm just reporting that the same exact application worked in 10.0.0 and 10.1.0 by adding (not replacing) Hibernate 5.2 modules and selecting them in the persistence descriptor (see https://docs.jboss.org/hibernate/orm/5.2/topical/html_single/wildfly/Wildfly.html).
Since this worked in 10.0.0 and 10.1.0 I was expecting to work in 11 also, but as for this issue this is not the case.
was (Author: heruan):
Thank you [~smarlow] for the feedback, but I didn't filed this issues about the adoption of Hibernate 5.2 in WildFly 11, as I know there's already ongoing work on this.
I'm just reporting that the same exact application worked in 10.0.0 and 10.1.0 by adding (not replacing) Hibernate 5.2 modules and selecting them in the persistence descriptor (see https://docs.jboss.org/hibernate/orm/5.2/topical/html_single/wildfly/Wildfly.html).
Since this worked in 10.0.0 and 10.1.0 I was expecting to work in 11 also, but as for this issue this is not the case.
> AbstractMethodError with Hibernate 5.2
> --------------------------------------
>
> Key: WFLY-9053
> URL: https://issues.jboss.org/browse/WFLY-9053
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 11.0.0.Alpha1
> Reporter: Giovanni Lovato
> Assignee: Scott Marlow
>
> I'm deploying an EAR specifying in its {{persistence.xml}} to use Hibernate 5.2 as JPA provider:
> {code:xml}
> <property name="jboss.as.jpa.providerModule" value="org.hibernate:5.2" />
> {code}
> Hibernate 5.2 modules are placed in the {{modules}} directory.
> This configuration works in 10.1.0.Final but in 11.0.0.Alpha1 I get this error at deployment:
> {code}
> ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."oss-application-ear-1.0.0.ear".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."oss-application-ear-1.0.0.ear".FIRST_MODULE_USE: WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment "oss-application-ear-1.0.0.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.AbstractMethodError: org.jboss.as.jpa.hibernate5.HibernatePersistenceProviderAdaptor.beanManagerLifeCycle(Ljavax/enterprise/inject/spi/BeanManager;)Ljava/lang/Object;
> at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.<init>(PhaseOnePersistenceUnitServiceImpl.java:89)
> at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deployPersistenceUnitPhaseOne(PersistenceUnitServiceHandler.java:485)
> at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:279)
> at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleEarDeployment(PersistenceUnitServiceHandler.java:228)
> at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:135)
> at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
> ... 5 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list