• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

DB Connection pooling problem

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am using Tomcat5.5 DB Connection pooling, through server.xml .
My context is:

<Context path="/POModule" docBase="POModule"
debug="0" reloadable="true" crossContext="true">
<Resource name="jdbc/POModule" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@144.20.35.123:1521:ABC" username="root" password="root" maxActive="100" maxIdle="60" maxWait="200"/>


But i am getting following exception after some users loged in.

Exceptions:org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object


Please help.
Thanks.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
--------------------------------------------------------
<Context path="/POModule" docBase="POModule"
debug="0" reloadable="true" crossContext="true">
<Resource name="jdbc/POModule" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@144.20.35.123:1521:ABC" username="root" password="root" maxActive="100" maxIdle="60" maxWait="200"/>
----------------------------------------------------------

where is your <resource params>?..please search google for the configuration..and make this file name as your we-app name ,then put it into the Tomcat 5.0\conf\Catalina\localhost..


thanks & regards,
seetharaman
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please look into the below link for sample configuration:

http://www.crazysquirrel.com/computing/java/connection-pooling.jspx

Regards,
Kiran.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic