Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can anyone help me in runing the servlet

 
felix thomas
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i had install and configured apache web server on my windows 98. It runs fine. but i try to run a servlet it shows

downloading from site or sometimes file not found.
i have placed the class file in the htdocs directory.
can anyone help me please.

 
Beksy Kurian
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets shouldn't be in htdocs directory. Aren't you using a servlet engine? All the classes should go to the servlets directory of the servlet engine (jrun, tomcat etc... ). The configuration might be a little different depending upon the servlet container.
Beksy
 
Rehan Malik
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply installing apache probably won't let you run JSP/Servlets.
You have to install the extra modules as well. Here are your options:
A. Download JServ from apache's website and use this as your link for your JSP/Sevlets
B. Download Jacarta-Tomcat and link it up with Apache
C. Install JRun and let it interact with your web server while running also your JSP/Servlets.
 
Jyotsna Clarkin
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need a servlet container to run servlets/jsp.
Here's a guide to help you setup Apache and Tomcat
How to make your first JSP page work on Tomcat?

[This message has been edited by Jyotsna Clarkin (edited July 19, 2001).]
 
ken chou
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Jyotsna
It doesn't work when I click on the link that you provided?
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
you can get tomcat on the apache homepage. it is part of the jakarta project.
if it is just for testing purpose, then you can use tomcat standalone (no other server for static html files) if it goes live with tons of hits, then you should consider running apache with tomcat for jsp/servlets.
there are also other jsp/servlet engines (not all of them are free like tomcat)
karl
 
Jyotsna Clarkin
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ken chou:
Hi, Jyotsna
It doesn't work when I click on the link that you provided?

Sorry
here it is again http://www.webappcabaret.com/javachina/tomcathowto.htm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic