title: java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool DataSourceFactory
body: <p>I'm investigating moving away from an Oracle connection pool and using the Tomcat connection pool. I followed the myriad of example for configuring the <code>&lt;Resource&gt;</code> in Tomcat's <code>/conf/server.xml</code>. I found great info <a href="http://people.apache.org/~fhanik/tomcat/jdbc-pool.html" rel="noreferrer">here</a>. However, when I start Tomcat, I get the following error:</p>
  
  <blockquote>
    <p>javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool DataSourceFactory]</p>
  </blockquote>
  
  <p>I'm using Tomcat 6.0. My <code>&lt;Resource&gt;</code> config in <code>/conf/server.xml</code> is:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Resource 
      name="jdbc/myds"
      type="javax.sql.DataSource"
      auth="Container" 
      factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
      driverClassName="oracle.jdbc.OracleDriver"
      url="jdbc:oracle:thin:@10.10.10.33:1234:myds"
      user="myuname"
      password="mypasswd"
  /&gt;
  </code></pre>
  
  <p>I understand that Tomcat can't find the factory class, but I don't understand <strong>why</strong>? I don't see anything in the documentation about adding extra <code>.jar</code> files. I've looked in the distribution and can't find the golden <code>.jar</code> anyway.</p>
  
  <p>Can anyone tell me what I am doing wrong?</p>