Solved

Resolve Error

Posted on 2007-11-14
4
219 Views
Last Modified: 2010-03-30
How can I resolve the error I am receiving?

The web application fails to connect to the database because of this error.  I have a java application designed using the MVC with jsp pages, servlets and beans.  Thank you for your assistance.
0
Comment
Question by:OliviaRedhorse
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
rama_krishna580 earned 375 total points
ID: 20282730
Hi,

That exception indicates that no up-and-running TCP/IP network can be found on your host. It takes more than just the installation of the server, you must also have installed and started a TCP/IP networking stack. You may be required to have at least one working piece of networking hardware, like a card or a modem, to do this. It depends on the platform and the stack software.

If you think one is installed and running, then try to run a ping command from a console window to "localhost" (the same as IP 127.0.0.1). If you can ping yourself (without going blind), you should be able to open a socket to a port with a listening process. At the very least, if there is no listener, you should only get a "java.net.ConnectException: Connection refused: connect" exception instead of the "Network is unreachable" exception.

I hope you find this of some help.

R.K
0
 
LVL 23

Assisted Solution

by:rama_krishna580
rama_krishna580 earned 375 total points
ID: 20282773
0
 
LVL 9

Assisted Solution

by:ysnky
ysnky earned 125 total points
ID: 20283655
check these;
Can you ping the host you are trying to connect to ?
Can you ping any other machines ?
Is the network card functioning correctly ?
Are your iptables or firewall blocking your connection ?
0
 

Author Comment

by:OliviaRedhorse
ID: 20283865
I got it!  Thank you!!
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to execute a Python program and gather return output in Java 2 40
null output 3 35
How do I remove an object from a 3 40
Selenium docs api java index 3 48
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

829 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