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 DataSource Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DataSource Problem" Watch "DataSource Problem" New topic
Author

DataSource Problem

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 627
Hi guys,

I followed this tutorial here to test data source.
http://www.webagesolutions.com/knowledgebase/waskb/waskb001/index.html
I did everything that was there on the page and now I write the following sample Servlet as shown in the example with my own datasource name as


Now, when I try to run the program, I am getting the following errors:




Any idea as why this is happening and any one tried out the example in that page?

Thanks.


Be Humble... Be Nice.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

Your exception says that you have error 12505.

From Oracle's error messages:
TNS-12505 TNS:listener could not resolve SID given in connect descriptor.


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataSource Problem
 
Similar Threads
WSAD datasource problem URGENT
Error in connecting to database
Name comp/env/jdbc not found in context "java:"
WSAD Datasource error.
PMGR6020E: Error connecting to adapter for Oracle