title: oracle hibernate + maven dependenciesm dbcp.basicdatasource exception
body: <p>I'm trying to create a web application using maven, tomcat and hibernate.
  Now I'm getting a cannot find class for org.appache.commons.dbcp.basicdatasource for bean with name datasource... exception.</p>
  
  <p>Without the hibernate aspects it works fine, but if I add </p>
  
  <pre><code>&lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"&gt;
      &lt;property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/&gt;
      &lt;property name="url" value="jdbc:oracle:thin:@localhost:1521:xe"/&gt;
      &lt;property name="username" value="temp"/&gt;
      &lt;property name="password" value="temp"/&gt;
  &lt;/bean&gt; 
  
  &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt;
      &lt;property name="dataSource" ref="dataSource"/&gt;
      &lt;property name="hibernateProperties"&gt;
          &lt;props&gt;
              &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.Oracle10gDialect&lt;/prop&gt;
              &lt;prop key="hibernate.hbm2ddl.auto"&gt;create&lt;/prop&gt;
              &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
      &lt;property name="mappingResources"&gt;
          &lt;list&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt; 
  </code></pre>
  
  <p>to my applicationContext then I get the error.</p>
  
  <p>What I did was:</p>
  
  <ul>
  <li>add org.hibernate to my pom</li>
  <li>put ojdbc16.jar in my tomcat bin folder</li>
  <li>add the above snippet to my applicationContext.xml</li>
  </ul>
  
  <p>I use a bat file to compile my project (using maven), copy it to my tomcat webapp folder and to start the server.</p>
  
  <p>Any input on what I'm doing wrong is welcome.</p>