Unable to retireve connection in tomcat 4.1.3

Posted on 2004-11-12
Last Modified: 2010-03-04

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.

Question by:badri_nana
    1 Comment
    LVL 8

    Accepted Solution

    you just need to have the entry in server.xml and the web.xml

    check out this and configure your tomcat accordingly.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting ( to http…
    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now