This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I m using Tomcat under windows 2000 Server and want to know abt installing n configuring Apache-Tomcat under windows.
I m using jdk 1.4, Tomcat 5.0 & Apache HTTP Server 2.
Individually Tomcat & Apache Server runs properly. But when Configuring Tomcat and Apache With the mod_JK Connector, Apache server doesn't start & throws Error-"The Apache2 service terminated with service-specific error 1".
For configuring Tomcat & Apache followed following steps-
1. Configuring Tomcat:
-Added the following entry to <CATALINA_HOME>/conf/server.xml, inside of the <Service> element.
The Tomcat worker file, in this example, named as workers.properties and copied into the <CATALINA_HOME>/conf directory of the Tomcat instance that you will be integrating with Apache. (<CATALINA_HOME> represents the base directory of your Tomcat installation.)
Now added the following properties to this newly-created file and save your changes.
- install apache 2 webserver (check if it's working via http://localhost/) - install apache tomcat application server on port 8080 (or another one) (check if it's working via http://localhost:8080/) - download mod_jk2 here - extract zip-file and in map modules you find mod_jk2.so and you copy this file to %APACHE2%/modules - in httpd.conf you find a whole bunch of line starting with LoadModule, you add there - make workers2.properties in same directory as httpd.conf and put in the following:
replace the ??? with some part of an url that has to be mapped to tomcat e.g. uri:/jsp-examples/*