This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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: 28402
210
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.
 
Where does a nanny get ground to air missles? Protect this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic