This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with connection pooling,unable to establish connection

 
Dec Decan
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new enough to Java, about 9 months.
I am trying to run the example of connection pooling of the Tomcat documentation.
I am running tomcat version 5 have manged to establish a connection to my sql database using jdbc driver but cannot this example working
For anyone who has tomcat installed the example is called "JNDI Datasource HOW-TO"
This can be found at
http://localhost:8080/tomcat-docs/jndi-datasource-examples-howto.html

When i try to launch the jsp page i receive the message
"Results
Foo Not Connected
Bar -1 "
I set up the mysql datbase and compiled the file without any problems,
I also coped the files

commons-collections.jar
> commons-dbcp-1.1.jar
> commons-pool-1.1.jar
to the directory
C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib
I also copied the jdbc driver file aswell

If you need me to post the code i can do so , but it is exactly as it appears in the example and I have carefully followed each step.
I'd be grateful for any feedback becuase i have been stuck on this for a few days.
Ps:I tried running a similar example and it returned a simliar message .

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic