Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blaze PersistenceUnit fails to start on Wildfly 27 #1633

Closed
theobisproject opened this issue Nov 20, 2022 · 2 comments · Fixed by #1635
Closed

Blaze PersistenceUnit fails to start on Wildfly 27 #1633

theobisproject opened this issue Nov 20, 2022 · 2 comments · Fixed by #1635
Assignees
Labels
component: core kind: bug worth: high Implementing this has a high worth
Milestone

Comments

@theobisproject
Copy link

Description

While updating an application to Wildfly 27 I encountered an error when the persistence unit is started. To ensure this has nothing to do with my project I set up a new repository and followed the Getting Started guide. The error is there too.

Expected behavior

PersistenceUnit initializes and the application starts.

Actual behavior

The following exception is thrown when deploying the application

[org.jboss.msc.service.fail] (ServerService Thread Pool -- 22) MSC000001: Failed to start service jboss.persistenceunit."blaze-persistence-demo-1.0-SNAPSHOT#ExampleDS": org.jboss.msc.service.StartException in service jboss.persistenceunit."blaze-persistence-demo-1.0-SNAPSHOT#ExampleDS": java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
	at org.jboss.as.jpa@27.0.0.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:199)
	at org.jboss.as.jpa@27.0.0.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:129)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at org.wildfly.security.elytron-base@2.0.0.Final//org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:664)
	at org.jboss.as.jpa@27.0.0.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:214)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
	at java.base/java.lang.Thread.run(Thread.java:829)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
	at deployment.blaze-persistence-demo-1.0-SNAPSHOT.war//com.blazebit.persistence.integration.hibernate.Hibernate60MetadataContributor.addEntity(Hibernate60MetadataContributor.java:59)
	at deployment.blaze-persistence-demo-1.0-SNAPSHOT.war//com.blazebit.persistence.integration.hibernate.Hibernate60MetadataContributor.contribute(Hibernate60MetadataContributor.java:53)
	at org.hibernate@6.1.5.Final//org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:297)
	at org.hibernate@6.1.5.Final//org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1350)
	at org.hibernate@6.1.5.Final//org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1421)
	at org.hibernate.jipijapa-hibernate6@27.0.0.Final//org.jboss.as.jpa.hibernate.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:45)
	at org.jboss.as.jpa@27.0.0.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:171)
	... 10 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.ReflectionManager from [Module "deployment.blaze-persistence-demo-1.0-SNAPSHOT.war" from Service Module Loader]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:200)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
	... 17 more

Steps to reproduce

  1. Download and extract Wildfly 27 (https://www.wildfly.org/downloads/)
  2. Deploy the code from https://github.com/theobisproject/blaze-persistence-demo

Environment

Version: 1.6.7
JPA-Provider: Hibernate 6.1.5.Final
DBMS: H2
Application Server: Wildfly 27

@beikov beikov added this to the 1.6.8 milestone Nov 21, 2022
@beikov beikov self-assigned this Nov 21, 2022
@beikov beikov added kind: bug component: core worth: high Implementing this has a high worth labels Nov 21, 2022
@beikov
Copy link
Member

beikov commented Nov 21, 2022

Hi there. Thanks for the report! I'll look into it today :)

@theobisproject
Copy link
Author

Thanks for the quick fix and the new version! The update now worked without any further problems.

beikov added a commit to beikov/blaze-persistence that referenced this issue Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: core kind: bug worth: high Implementing this has a high worth
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants