title: Caused by: java.lang.NoClassDefFoundError: Ljavax/transaction/TransactionManager;
body: <p>I read many posts about the error <code>javax/transaction/TransactionManager</code>, but none of those solutions fix my problem.</p>
  
  <p>First thing to say is that I get that error when I deploy my web-application (made with Spring MVC and Hibernate) on the server. On my computer, with Eclipse and Tomcat 7 everything works.</p>
  
  <p>Second thing to say is that on that server I have another web-application that's running under tomcat <code>/root</code> folder (this is a simple java application, that DOESN'T use neither Spring mvc nor Hibernate). The new application that i'm trying to deploy is running under another folder called <code>/prova</code>.</p>
  
  <p>These are all the libraries of my application
   <a href="https://i.stack.imgur.com/nFfMZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nFfMZ.jpg" alt="enter image description here"></a></p>
  
  <p>Plus, according to what I read on some posts, I added to my lib folder:</p>
  
  <p>1) jta-3.1.2.2.jar</p>
  
  <p>2) hibernate3.3.1-jta-1.1.jar</p>
  
  <p>3) javax.transaction.jar</p>
  
  <p>In my xml file I have this bean that defines the transaction manager</p>
  
  <pre><code>&lt;bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt;
       &lt;property name="sessionFactory" ref="sessionFactory" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Something strange is that in the server log the exact error is </p>
  
  <pre><code>Caused by: java.lang.NoClassDefFoundError: Ljavax/transaction/TransactionManager;
  </code></pre>
  
  <p>There's a <strong>L</strong> before <code>javax/transaction/TransactionManager</code></p>
  
  <p>Any idea?</p>
  
  <p>Thank you</p>