wood burning stoves*
The moose likes JSP and the fly likes help me! 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 » JSP
Bookmark "help me!" Watch "help me!" New topic
Author

help me!

jack.demo
Greenhorn

Joined: Oct 15, 2002
Posts: 2
when i has installed tomcat, then run startup file, but the aphache web site wasnot opened.i tried to type http://localhost:8080 in IE,it links to www.cnnic.com.cn, then i type http://127.0.0.1:8080, this time it's right. and my window system file Host also is right:127.0.0.1 localhost. who can help me?i was confused!


great wall!
Hartmut Ludwig
Ranch Hand

Joined: Aug 31, 2002
Posts: 51
Well - this is a lookup problem. Your system does not know the name "localhost".
You can easily fix this using a host file. A host file is something like a DNS-Lookup table. It assigns IPs to hostnames. The format is quite easy. My hosts-file looks like this:

You see: it contains only one entry which assigns the logical hostname "localhost" to your local loopback IP (the lines with # are treated as comments).
If you use Win9x you will find your hosts file in the system folder. If you use NT/2000/XP you will find it in system32\drivers\etc.
Edit the file and add the entry like shown above. After that everything will be fine...
cheers
Hartmut
jack.demo
Greenhorn

Joined: Oct 15, 2002
Posts: 2
My hosts-file is same as your hosts-file, no error. I believe my regedit keys had problems, but i don't know which key is wrong.
cyrus wang
Greenhorn

Joined: Oct 23, 2002
Posts: 1
you should change your configure file.
/tomcat/conf/server.xml
the last line .


Nice to meet you .<br />cyrus.wang
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help me!
 
Similar Threads
Problem installing Tomcat 5.5 on Windows XP
http://localhost:8080 not working but http://127.0.0.1 is working
Is localhost always = 127.0.0.1 ?
A basic problem
Server was disconnected