• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets

 
vidhya subramaniam
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
vidhya.
 
BJ Grau
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 http://127.0.0.1:8080 should work unless your networking configuration has been damages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic