title: java.lang.NoClassDefFoundError: org/hibernate/boot/MetadataBuilder
body: <p>I have this strange error when deploying my application , but the jar needed is in my POM file !!!</p>
  
  <pre><code>&lt;dependency&gt;
  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
  &lt;version&gt;5.0.4.Final&lt;/version&gt;
  &lt;/dependency&gt; 
  </code></pre>
  
  <p>Here the error:</p>
  
  <pre><code> 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
  </code></pre>
  
  <p>I even check the war and the jar is inside the war</p>
  
  <p><a href="https://i.stack.imgur.com/8pYZC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8pYZC.png" alt="enter image description here"></a></p>
  
  <p>Searching  Ctrl + Shift + T I found:</p>
  
  <pre><code>org.hibernate.validator.internal.metadata.aggregated.MetaDataBuilder
  </code></pre>
  
  <p>and </p>
  
  <pre><code>org.hibernate.boot.MetadataBuilder 
  </code></pre>