title: getting error Caused by: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory
body: <p>I have a spring project. When i run i get the following error</p>
  
  <pre><code>SEVERE: Unable to process Jar entry [javax/validation/bootstrap/GenericBootstrap.class] 
  from Jar [jar:file:/D:/Personal%20Work/eclipse%2032%20Bit/workspace/Java%20EE/Spring
  /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
  /ch17_ImplementTheViewsForContactInformation/WEB-INF/lib/validation-api-1.0.0.GA.jar!/] 
  for annotations
  java.util.zip.ZipException: invalid LOC header (bad signature)
  at java.util.zip.ZipFile.read(Native Method)
      ....
  </code></pre>
  
  <p>Here is my snippet of POM</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
          &lt;version&gt;4.3.0.Beta2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Hibernate’s implementation of JSR-303. --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
          &lt;version&gt;4.2.0.Final&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- The JSR-303 Bean Validation API library. --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;javax.validation&lt;/groupId&gt;
         &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
         &lt;version&gt;1.0.0.GA&lt;/version&gt; 
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Why i am getting this error ? I checked, i have this jar at location <code>C:\Users\basit.ahmed\.m2\repository\javax\validation\validation-api\1.0.0.GA</code>. </p>
  
  <p>How can i solve this ?</p>
  
  <p>Thanks</p>