File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Running a servlet using Apache Web Server 2.0.47 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Running a servlet using Apache Web Server 2.0.47" Watch "Running a servlet using Apache Web Server 2.0.47" New topic

Running a servlet using Apache Web Server 2.0.47

Chet Arora

Joined: May 20, 2003
Posts: 29
I have downloaded the Apache HTTP Server 2.0.47. Have installed it succesffuly. Iv compiled a java servlet and now i want to run it using the Web Server. How can i achieve this ?
Im not very clear on the JServ Module and whether the Apache server im using has it or not. Could somebody please help me out.
Malhar Barai
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
hi Chetan
Your directory structure might be something like this..
"C:\Program Files\Apache Group\Apache JServ\servlets"
copy the compiled servlet file(.class) to this location & run it like this :

Malhar Barai
SOA & Java Book
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

What you need is a connector. I have used only mod_jk2 that is from Apache Open Source to connect Apache with other web containers (Tomcat in my case). So why don't you have a look at Apache that has proper documentation on how to do that.

Ashik Uzzaman
Senior Member of Technical Staff,, San Francisco, CA, USA.
It is sorta covered in the JavaRanch Style Guide.
subject: Running a servlet using Apache Web Server 2.0.47
Similar Threads
Linux Character Encoding
How to access Apache services(stop, start and restart) without admin rights...?
internal server error message page contents need to be changed
Loadbalacing Tomcat server using Apache
External entity not found: