• 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

problem with connection pooling

 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
am trying to use connection pooling with tomcat 5.0
code in server.xml

when I try to connect like this -->>>

it shows the exception as
please can anybody tell me what to do ???
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ResourceParams are a thing of the past; see http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html for how to do that now.
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you, but am using Tomcat 5.0 , I have seen "ResourceParams" in server.xml
eventhough I have changed the code without using Resource params as you suggested, still ... the same problem.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, how I hate that message. It's obscure, it's confusing, and it's just plain wrong.

Since you didn't throw a NamingException, it looks like you did connect to a Connection Pool Object, and the message implies that attempts to create and add connections to that pool failed.

There are 2 things that I think might be a problem. First of all, I think it's "oracle:jdbc:thin@hostname....", not "oracle.jdbc.thin:@hostname... Secondly, verify that "username" is the right capitalization, as opposed to "userName". Unfortunately, incorrectly spelled/capitalized items don't get tagged as errors, since this is a generic XML being used by a generic interface.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic