title: Issue with Hibernate Search and Spring Integration
body: <p>I have been trying to integrate Spring with Hibernate Search but getting different exceptions with different versions.
  In my pom.xml I have following dependencies</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-core&lt;/artifactId&gt;
      &lt;version&gt;2.1.8.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-spring-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.1.8.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;mysql&lt;/groupId&gt;
      &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
      &lt;version&gt;5.1.9&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring&lt;/artifactId&gt;
      &lt;version&gt;2.5.6&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
      &lt;version&gt;2.5.6&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;asm&lt;/groupId&gt;
      &lt;artifactId&gt;asm-all&lt;/artifactId&gt;
      &lt;version&gt;3.3&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;asm&lt;/groupId&gt;
      &lt;artifactId&gt;asm&lt;/artifactId&gt;
      &lt;version&gt;3.3&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
      &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
      &lt;version&gt;3.6.7.Final&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-convention-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.1.8.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-tiles-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.1.8.1&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
      &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
      &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;log4j&lt;/groupId&gt;
      &lt;artifactId&gt;log4j&lt;/artifactId&gt;
      &lt;version&gt;1.2.15&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;joda-time&lt;/groupId&gt;
      &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
      &lt;version&gt;2.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;commons-configuration&lt;/groupId&gt;
      &lt;artifactId&gt;commons-configuration&lt;/artifactId&gt;
      &lt;version&gt;1.6&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.jgeppert.struts2.jquery&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-jquery-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.jgeppert.struts2.jquery&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-jquery-grid-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.jgeppert.struts2.jquery&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-jquery-richtext-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.jgeppert.struts2.jquery&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-jquery-tree-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.jgeppert.struts2.jquery&lt;/groupId&gt;
      &lt;artifactId&gt;struts2-jquery-mobile-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I have also tried to get the actual version of hibernate (3.2.0 Final) from my tests so that I can easily compare the compatibility of hiberante search with my application's hiberante version.</p>
  
  <pre><code>String hibernateVersion = org.hibernate.annotations.common.Version.VERSION;
  System.out.println("Hibernate Version: "+ hibernateVersion);
  </code></pre>
  
  <p>But whenever I just add these lines into my pom file </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
      &lt;artifactId&gt;hibernate-search&lt;/artifactId&gt;
      &lt;version&gt;3.1.0.GA&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and try to deploy my application then it gives me an exception</p>
  
  <pre><code>ERROR org.springframework.web.context.ContextLoader.initWebApplicationContext:215 - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource ....
  ....
  ....
  Caused by: java.lang.NoSuchMethodError: org.hibernate.util.SoftLimitMRUCache.&lt;init&gt;(I)V
  </code></pre>