File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JDBC Connection Pooling error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC Connection Pooling error" Watch "JDBC Connection Pooling error" New topic
Author

JDBC Connection Pooling error

jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 127
Hi

I set up my connection pool as described in netbeans doc.

Then i tried to use, (in my own fashion) the Technics described in javaranch journal


But i get an error from the lines below :: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jdbc/gameDataSource








I'd appreciate some help with that error.

I'm trying to read articles and documentation on InitialContext and Context, but so far everything I've found is rather "verbose"!


jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 127
I found the cause of the error ;

I had to include this couple of lines in my web.xml file:



however, these lines are deleted when ever i build my application! But for now the error fixed
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

Which application server you are using? If any then check the documentation of that to see how to set up connection pooling.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDBC Connection Pooling error
 
Similar Threads
javax.naming.NamingException: Cannot create resource instance
Getting Database Connection from Servlet
JNDI problem
Datasource JNDI Lookup in WSAD from standalone app
Creating Datasource