title: is java.lang.NoClassDefFoundError: org/apache/ibatis/session/SqlSessionFactory with mybatis and Spring
body: <p>I'm new to Mybatis and trying to implement mybatis with Spring but getting the below runtime error while starting tomcat.</p>
  
  <p>Here is my <code>pom.xml</code></p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;c3p0&lt;/groupId&gt;
      &lt;artifactId&gt;c3p0&lt;/artifactId&gt;
      &lt;version&gt;0.9.1.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.mybatis&lt;/groupId&gt;
      &lt;artifactId&gt;mybatis-spring&lt;/artifactId&gt;
      &lt;version&gt;1.0.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and application context:</p>
  
  <pre><code>&lt;bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"&gt;
      &lt;property name="dataSource" ref="uactivityDS"/&gt;
      &lt;property name="configLocation" value="classpath:mybatis-config.xml"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>the resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/ibatis/session/SqlSessionFactory
  </code></pre>
  
  <p>The <code>mybatis-spring-1.0.0.jar</code> file exists in <code>war/web-inf/lib</code>, though.</p>
  
  <p>Any idea what's going on in this scenario?</p>