• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connection Pool problem in tomcat 5

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
iam trying to configure data source on tomcat 5, but getting the following error : Cannot create JDBC driver of class '' for connect URL 'null'.

I've seen some postings on the same topic but even after following the same steps no success.
Not able to make out whats wrong.

Thanks
Ajay
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apparently, neither the DB URL nor the class name of the driver are picked up. What does your configuration look like?
 
Ajju Chawla
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
here is the configuration-

server.xml--

<Context crossContext="true" debug="5" docBase="ddmweb" path="/ddmweb" reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_ddmweb_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/myoracle" auth="Container"
type="javax.sql.DataSource"/>

<ResourceParams name="jdbc/myoracle">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc racle:thin:@192.168.192.28:1521:LBSLVLD</value>
</parameter>
<parameter>
<name>username</name>
<value>ddmdev</value>
</parameter>
<parameter>
<name>password</name>
<value>devddm</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>
</Context>

web.xml--
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/myoracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

and I've the following jars in my common\lib\
commons-pool-1.2.jar
commons-dbcp-1.2.1.jar
commons-collections-3.1.jar
classes12.jar


Thanks
Ajay
 
reply
    Bookmark Topic Watch Topic
  • New Topic