I have this strange error when deploying my application , but the jar needed is in my POM file !!!
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>5.0.4.Final</version>
</dependency>
Here the error:
Error creating bean with name 'entityManagerFactory' defined in class path resource [fr/telecom/configuration/HibernateConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/boot/MetadataBuilder
I even check the war and the jar is inside the war
Searching Ctrl + Shift + T I found:
org.hibernate.validator.internal.metadata.aggregated.MetaDataBuilder
and
org.hibernate.boot.MetadataBuilder

Ctrl + Shift + T(Open Type) in your Eclipse and search forMetadataBuilder, how many do you get?