?
Solved

Resolve Error

Posted on 2007-11-14
4
Medium Priority
?
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
rama_krishna580 earned 1500 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 1500 total points
ID: 20282773
0
 
LVL 9

Assisted Solution

by:ysnky
ysnky earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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:
Suggested Courses
Course of the Month11 days, 19 hours left to enroll

752 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