title: Error creating bean with jetty
body: <p>I am having issue when start web application with Jetty, but when i start it with Tomcat-07 there is no such issue,</p>
  
  <p>Error :  </p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException:  
  Error creating bean with name    
  'hbmSessionFactory' defined in ServletContext resource 
  [/WEB-INF/applicationContext.xml]:
  Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:   
  javax.persistence.OneToMany.orphanRemoval()Z  
  </code></pre>
  
  <p>What can be the reason ?   </p>
  
  <p>Thanks,  </p>
  
  <pre><code>&lt;properties&gt;
      &lt;org.springframework.version&gt;3.0.5.RELEASE&lt;/org.springframework.version&gt;
      &lt;slf4j.version&gt;1.5.6&lt;/slf4j.version&gt;&lt;cxf.version&gt;2.3.3&lt;/cxf.version&gt;
      &lt;ehcacheVersion&gt;2.4.2&lt;/ehcacheVersion&gt;&lt;toolkitVersion&gt;3.3.0&lt;/toolkitVersion&gt;
  &lt;/properties&gt;&lt;dependencies&gt;        
      &lt;dependency&gt;&lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;&lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-expression&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-aop&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-oxm&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&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;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-webmvc-portlet&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;&lt;artifactId&gt;spring-test&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;&lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;&lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
          &lt;version&gt;2.5&lt;/version&gt;&lt;type&gt;jar&lt;/type&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;jstl&lt;/artifactId&gt;
          &lt;version&gt;1.2&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;taglibs&lt;/groupId&gt;&lt;artifactId&gt;standard&lt;/artifactId&gt;
          &lt;version&gt;1.1.2&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;javax.transaction&lt;/groupId&gt;&lt;artifactId&gt;jta&lt;/artifactId&gt;
          &lt;version&gt;1.1&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.aspectj&lt;/groupId&gt;&lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
          &lt;version&gt;1.6.2&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;commons-io&lt;/groupId&gt;&lt;artifactId&gt;commons-io&lt;/artifactId&gt;
          &lt;version&gt;2.0&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;&lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
          &lt;version&gt;1.2.2&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;commons-pool&lt;/groupId&gt;&lt;artifactId&gt;commons-pool&lt;/artifactId&gt;
          &lt;version&gt;1.4&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.18&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;&lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
          &lt;version&gt;3.5.5-Final&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;org.hibernate.java-persistence&lt;/groupId&gt;&lt;artifactId&gt;jpa-api&lt;/artifactId&gt;
          &lt;version&gt;2.0-cr-1&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;&lt;artifactId&gt;jsr311-api&lt;/artifactId&gt;
          &lt;version&gt;0.11&lt;/version&gt;
      &lt;/dependency&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;&lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;&lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
          &lt;version&gt;4.0.2.GA&lt;/version&gt;
      &lt;/dependency&gt;&lt;dependency&gt;
          &lt;groupId&gt;javax.annotation&lt;/groupId&gt;&lt;artifactId&gt;jsr250-api&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;&lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;&lt;/dependencies&gt;  
  </code></pre>
  
  <p>Thanks for the reply ,All the dependencies are loading properly, mvn clean compile package war:war also working fine,and that war file doesn't have any issues with Tomcat-7, but having above error with jetty ?    </p>