This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Database connectivity problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Database connectivity problem" Watch "Database connectivity problem" New topic

Database connectivity problem

Nee Kat
Ranch Hand

Joined: Jan 27, 2004
Posts: 37
I am having a problem connecting my servlet to the database.
I am able to connect to the database using SQL Worksheet so it is a problem with the servlet. I using Jrun3 as webserver.

This is the error I get.

Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093632)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

I have verified the username, pwd and instance and they are correct. Please help me. I am trying to resolve this since yesterday but it is not working.

The same code is working from another environment but not from my machine.

Phani Kumar

Joined: Feb 15, 2002
Posts: 22
See if you are able to ping the database from your machine. It should be a network error as its working from other environment.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
It sounds like a Database specific question.

Need some more details like,

- where is your DB reside, on a remote machine or locally?
- Code snippet?
- DB Vendor?
- JDBC Driver?
It is sorta covered in the JavaRanch Style Guide.
subject: Database connectivity problem
Similar Threads
Problem connecting J2ee Server to Oracle
Unable to establish a network connection
JDBC connection problem on connecting to oracle on linux
Io exception: Connection refused in WSAD 5.1.1
Database Connection problem.Help Please