File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "help me!" Watch "help me!" New topic

help me!


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, then i type, this time it's right. and my window system file Host also is right: 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...

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

Joined: Oct 23, 2002
Posts: 1
you should change your configure file.
the last line .

Nice to meet you .<br />
I agree. Here's the link:
subject: help me!
It's not a secret anymore!