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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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: 2373

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 Software Engineer, TubeMogul, Emeryville, CA, USA.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Running a servlet using Apache Web Server 2.0.47
It's not a secret anymore!