Skip to content

Jakarta Data with Hibernate fails deploy in EJB Module #25548

Answered by OndroMih
diegosilval asked this question in Q&A
Discussion options

You must be logged in to vote

The NoClassDefFoundError errors are probably related to how classloading works in GlassFish for EARs. In a WAR, the classloader hierarchy is much simpler than in EARs.

If you fixed the first issue by adding hibernate-commons-annotations, then you probably need to add another hibernate dependency which contains the MetadataProvider class.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@diegosilval
Comment options

@OndroMih
Comment options

Comment options

You must be logged in to vote
1 reply
@diegosilval
Comment options

Answer selected by diegosilval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants