This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
Author

Running a servlet using Apache Web Server 2.0.47

Chet Arora
Greenhorn

Joined: May 20, 2003
Posts: 29
Hi,
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.
Thanks,
Chetan
Malhar Barai
Author
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 :
http://localhost/servlets/<servlet-name>
hth
MB


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, Salesforce.com, San Francisco, CA, USA.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running a servlet using Apache Web Server 2.0.47