wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Linux Character Encoding
Loadbalacing Tomcat server using Apache
External entity not found:
internal server error message page contents need to be changed
How to access Apache services(stop, start and restart) without admin rights...?