June 21st, 2001, 08:32 AM
Apache + JServ + Win
Has anyone else set this up?
If I type in the URL:
then I get the JServ stats page.
But how do I fire up the example (IsItWorking.class)?
Do I have to modify the .properties and .conf files?
Any pointers to step by step info on how to create a simple "Hello World" servlet and then fire it up with JServ+Apache+Win would be appreciated.
I guess you've figure it out by now but anyway here it is:
Basicaly what you'll need to do is:
install "mod_jk.dll "
connect Tomcat to Apache using the "mod_jk.dll" (Tomcat will provide a "mod_jk.conf" for you to copy/paste into Apache's "httpd.conf")
Define a Virtual Host in Apache's "httpd.conf" (ApacheHome/conf)
Define a Host in Tomcat's "Server.xml" (TomcatHome/conf)
Restart Apache and Tomcat
create in the VirtualHostDocRoot directory the following directories : "/servlet", "/Web-Inf/classes" and "/Web-Inf/jsp"
copy the "web.xml" file from one of the tomcat examples dir's to the "/Web-Inf/" dir
copy your servlets into the "/Web-Inf/classes" dir
now, to execute the servlet open a browser and type:
For more information on the steps above surf the Apache and Tomcat documentation