permaculture playing cards
The moose likes Servlets and the fly likes Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets" Watch "Servlets" New topic


vidhya subramaniam
Ranch Hand

Joined: Jul 14, 2001
Posts: 91
Hi all,
I had prev posted this topic but didnt get any favourable answers. So asking again.
I habe downloaded tomcat and set the classpath also as servlet.jar. I even opened the DOS prompt and set the foll:
set TOMCAT_HOME = tomcat
set JAVA_HOME = C:\JDK1.2.2
then i tried typing in the url in the browser http://localhost:8080 or even the url http:\\127.0.01:8080\examples\servlet\HelloWorldExample
but it gives me the foll error:
Bad Gateway
The following error occurred:
A DNS lookup error occurred. The host was not found.

Please contact the administrator.
why is this problem. i need to fix this soon bcoz i want to start working. is this any firewall pbm or is it that i need jdk1.3
I am workin on WindowsNT.
can someone pl explain?
BJ Grau
Ranch Hand

Joined: Jul 10, 2001
Posts: 234
Dont set your environment variables on the command line. Use your tomcat.bat file for that. To figure it out how to set it up, open up the file and you will see what it is asking for.
You didn't mention starting Tomcat.
Did you start Tomcat?
vidhya subramaniam
Ranch Hand

Joined: Jul 14, 2001
Posts: 91
Hi bj,
i didnt understand what you said, can you be more specific. i started tomcat in the dos prompt giving the command startup. then another window pops up saying tomcat started. i think thats the way it starts... can you be more specific?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

I doubt it has anything to do with Tomcat. However, your second example has BACKslashes in the URL. Only "real" - that is, forward - slashes are valid for a URL, regardless of OS. I could qualify that, but the difference isn't important here.
Under NT, both http://localhost:8080 and should work unless your networking configuration has been damages.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Servlets
It's not a secret anymore!