my dog learned polymorphism
The moose likes JDBC and Relational Databases 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DataSource Problem" Watch "DataSource Problem" New topic

DataSource Problem

Arjun Reddy
Ranch Hand

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

I followed this tutorial here to test data source.
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?


Be Humble... Be Nice.
Jan Cumps

Joined: Dec 20, 2006
Posts: 2550

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
I agree. Here's the link:
subject: DataSource Problem
It's not a secret anymore!