title: getting error java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator
body: <p>I have a spring project in which i am using a validator like the following:</p>
  
  <pre><code>&lt;beans:bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"  
              p:basenames="WEB-INF/i18n/messages,WEB-INF/i18n/application" 
              p:fallbackToSystemLocale="false" /&gt;         
  
  &lt;beans:bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"&gt;
      &lt;beans:property name="validationMessageSource" ref="messageSource" /&gt;
  &lt;/beans:bean&gt;
  
  &lt;annotation-driven validator="validator" /&gt;
  
  &lt;resources location="/, classpath:/META-INF/web-resources/" mapping="/resources/**" /&gt;
  </code></pre>
  
  <p>When i run the project i get the following <code>BeanCreationException</code>:</p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with
  name 'validator' defined in ServletContext resource [/WEB-INF/spring/appServlet
  /servlet-context.xml]: Error setting property values; nested exception is 
  org.springframework.beans.PropertyBatchUpdateException; nested 
  PropertyAccessExceptions (1) are:
  
  PropertyAccessException 1: org.springframework.beans.MethodInvocationException: 
  Property 'validationMessageSource' threw exception; nested exception is 
  java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocator
  </code></pre>
  
  <p>Here is my snippet of POM:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
      &lt;artifactId&gt;spring-data-jpa&lt;/artifactId&gt;
      &lt;version&gt;1.3.2.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;!-- Hibernate entity manager with JPA 2 support. --&gt;
  &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?</p>
  
  <p>Thanks</p>