Go through the following instructions and get back to me if u still face problems....
 

1. Install Apache
 
2. Unzip Tomcat ( assuming u do it to U:\Tomcat)
 
3. Open U:\Tomcat\conf\tomcat-apache.conf and
   SAVE AS U:\Tomcat\conf\my-tomcat-apache.conf in the same directory
   ( Include config settings, if any in this file )
 
   NOTE: Leave the original tomcat-apache.conf as u found it
 
4. Copy ApacheModuleJServ.dll to Apache\modules\
 
5. Paste the following line in Apache\conf\httpd.conf at the end
 
 Include U:\tomcat\conf\my-tomcat-apache.conf
 
6. Restart Apache
 
7. Start Tomcat
 
At the end of this Apache will communicate with Tomcat for appropriate requests.
 
 
 

To use Apache/Tomcat to serve Servlets:
 
You can place ur servlet classes in either of 2 locations
 
- U:\Tomcat\webapps\ROOT\Web-inf\classes
 
  OR
 
  U:\Tomcat\webapps\MYAPPLICATION\Web-inf\classes (preferable approach)
 
In the first case, u will have to access ur servlets as
 
 
and in the second case as
 
 
http://server/MYAPPLICATION/servlet/MYSERVLET
 
NOTE: U will not need to give a port(:8080) in the url cause i am assuming that u will have
integrated Apache with Tomcat. And since Apache runs on the default 80 port.

Reply via email to