• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

The Apache2 service terminated error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>

-Create a Tomcat Worker

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.

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

These entries define a Tomcat worker named testWorker.

2. Copied the previously downloaded mod_jk module to the <APACHE_HOME>/libexec directory.

3. Added following directives to the bottom of the <APACHE_HOME>/conf/httpd.conf file, as follows:

LoadModule jk_module libexec/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile C:/jakarta-tomcat-5.0.27/conf/workers.properties
JkLogFile C:/jakarta-tomcat-5.0.27/logs/mod_jk.log
JkLogLevel debug
Alias /examples C:/jakarta-tomcat-5.0.27/webapps/examples
JkMount /examples/servlet/* testWorker
JkMount /examples/*.jsp testWorker
<Location "/examples/WEB-INF/">
AllowOverride None
deny from all
</Location>

4. Already Stopped Tomcat first start, it Start. And then trying to start Apache Server, at this time it throws Error
"The Apache2 service terminated with service-specific error 1"


Please tell me What's wrong in the configuration.



With Thanks & Regards,

Aparna.
[ December 07, 2004: Message edited by: Aparna Bhute ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You question is off topic for this forum.

This forum is for Servlets questions.

I am going to move this thread to the more appropriate, Apache/Tomcat forum

Thanks and good luck

Mark
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i did it as follows and it's working:

- 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/*

hope it helps you
 
If you're gonna buy things, buy this thing and I get a fat kickback:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic