• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

Unable to retireve connection in tomcat 4.1.3

Hi,

I have configured my server.xml to have the <Resources> tag which has entry for the database url, username,password, .

I have an entry in web.xml which references the corresponding entry in server.xml

When I try to obtain the datasource from the context, I get an exception:
Unable to retrieve connection for dataSource ds
Name java:comp is not bound in this context.
Datasource not bound.

Can anybody tell me what to do?

I am using tomcat 4.1.3 on Windows NT.

The server.xml & web.xml have the entries. Should there be some other entries other than <Resource> & <Context> in any other file?

Thanks a lot.

Regards
DBN
0
badri_nana
Asked:
badri_nana
1 Solution
 
kiranhkCommented:
No...
you just need to have the entry in server.xml and the web.xml

check out this and configure your tomcat accordingly.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now