This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache web server

 
Weigang Gu
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, guys;
I am just starting to learn how to use servlets. I tried to install Apache web server on my computer (wind98) but I could not get it working for me. After installation, I tried to start the server and in dos console it showed the message:
Apache running...... When I tried to access http://localhost:8080 via internet explorer, i got the error message:
cannot access localhost:8080 offline.
What was wrong?
anybody out there using Apache server, please help!
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple, you need to install Tomcat.
 
Mirko Froehlich
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At least in order to run Servlets or JSPs, but need Tomcat or some other Servlet engine. But after installing and starting Apache, you should be able to point to localhost (NOT port 8080, but simply port 80, the default HTTP port), and see Apache's default website.
-Mirko

Originally posted by Adrian Yan:
Simple, you need to install Tomcat.

 
Weigang Gu
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not install TomCat, but I did install ServletExec AS3.0 from AtlantaSoftware. Do you need to start ServletExec (an servlet engine) before you run the browser? How do you start it? Do you need to configure it ?
Thanks in advance
 
Mirko Froehlich
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you need to start your servlet engine before hitting the URL, and you also need to configure it. The configuration details depend on your webserver and servlet engine, no idea how this works in ServletExec. There should be instructions, though.
-Mirko
Originally posted by Weigang Gu:
I did not install TomCat, but I did install ServletExec AS3.0 from AtlantaSoftware. Do you need to start ServletExec (an servlet engine) before you run the browser? How do you start it? Do you need to configure it ?
Thanks in advance

 
padmshree Patil
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following link will help u in installing apacher server

Refer to Roseanne's list on how to make your jsp/servlets work, which is available at http://www.webappcabaret.com/javachina/tomcathowto.htm

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic