|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Apache + JServ + Win
Has anyone else set this up?
If I type in the URL: 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. Steve. |
|
#2
|
|||
|
|||
|
Basicaly what you'll need to do is:
Stage 1: install Apache configure Apache install Tomcat configure Tomcat 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") Stage 2: Define a Virtual Host in Apache's "httpd.conf" (ApacheHome/conf) Define a Host in Tomcat's "Server.xml" (TomcatHome/conf) Stage 3: Restart Apache and Tomcat ![]() Stage 4: 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: theAddressYouDefinedInApachehttpd.conf/servlet/ServletName like: URL For more information on the steps above surf the Apache and Tomcat documentation ![]() Good Luck! Peter. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Apache + JServ + Win |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|