• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlets

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic