Home > Default > Integrating Tomcat with Apache

Integrating Tomcat with Apache

December 10Hits:5
Advertisement
Hi there,
I'm really stuck here. I'm trying to integrate Apache with Tomcate. Not having much luck. I have a number of things that aren't quite right. For whatever reason the connector (mod_jk2) between Apache and Tomcat isn't doing its thing. First things first however. I'm not so sure about the log from Tomcat:
17-Jan-2005 3:56:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6517 ms
17-Jan-2005 3:56:08 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17-Jan-2005 3:56:08 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
17-Jan-2005 3:56:08 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
17-Jan-2005 3:56:14 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
17-Jan-2005 3:56:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
17-Jan-2005 3:56:16 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
17-Jan-2005 3:56:17 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
17-Jan-2005 3:56:17 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
17-Jan-2005 3:56:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
17-Jan-2005 3:56:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/632 config=null
17-Jan-2005 3:56:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 14657 ms
Shouldn't this line: INFO: JK2: ajp13 listening on /0.0.0.0:8009
read like this: INFO: JK2: ajp13 listening on /127.0.0.1:8009
or: INFO: JK2: ajp13 listening on /localhost:8009
If I'm right, then how do I make it listen on the localhost address 127.0.0.1?
Please help,
Alan
My configuration files under tomcat are like so:
# file://usr/local/tomcat/conf/jk2.properties
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE LOST
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
# handler.list=apr,request,channelJni
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
# Socket Configuration
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10
# file://usr/local/tomcat/conf/workers.properties
#------ DEFAULT worket list ------------------------------------------
# The workers that your plugins should create and work with
# Add 'inprocess' if you want JNI connector
worker.list=ajp13
# , inprocess
#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
worker.ajp13.port=8009
worker.ajp13.host=127.0.0.1
worker.ajp13.type=ajp13
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=50
# Specify the size of the open connection cache.
worker.ajp13.cachesize=10
# file://usr/local/tomcat/conf/workers2.properties
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
...

Answers

Hi Alan.
I've discovered the exact same problem.... 0.0.0.0 instead of 127.0.0.1
You've obviously not had any replys here, but di you end up working it out on your own?

Read other 2 answers

Tags:

Related Articles

  • Integrating Tomcat and Apache - typo in the instructions??November 30

    I'm a total newbie at this, but one line in the "Flashguide" instructions I found on Galatea http://galatea.com/flashguides/home looked wierd to me: In the instructions for integrating Tomcat 4.0.x to Apache 2.0.x using mod_jk, it states that th

  • Hello Friends...About integrating tomcat with apacheDecember 10

    Hello Friends... I want to integrate apache with tomcat. using JK connector. It is working for red hat 7.3 n 9. But it is not working for Red Hat Enterprise ES (Red Hat 3.2.3-47) I search for jk connector for Red Hat Enterprise ES. Cannot get help..

  • Integrating Tomcat with ApacheDecember 10

    Hi there, I'm really stuck here. I'm trying to integrate Apache with Tomcate. Not having much luck. I have a number of things that aren't quite right. For whatever reason the connector (mod_jk2) between Apache and Tomcat isn't doing its thing. First

  • Help! difficulties in using mod_jk.so to combine tomcat with apacheOctober 11

    apache 1.3.19 in rh7.1; tomcat 3.2.1; i do not know whether i need to complier a mod_jk.so before i configurate both tomcat and apache, right now i only put the mod_jk.so,which download from jakarta.com, into libexec directory. then configurate the s

  • Tomcat 4 - apache - mod_webapp problemDecember 10

    hi, I know this is no tomcat forum, but i don't know where to post this message. I'm unable to connect apache with my tomcat server. I've installed apache(1.3.x) and tomcat(4.0 final) as stand-alone. they work fine. I've added the mod_webapp.so and t

  • Configuring tomcat and apache on the same systemNovember 30

    i need to configure tomcat and apache on the same system. first i have configured apache and it is working well. Next is have configured tomcat and it is working well. i need to interlink tomcat and apache. so i downloaded jk connector and i have con

  • Tomcat vs APacheNovember 30

    I have a few questions I've looked for in the apache and tomcat documentations. The moer I read the more I get confused 1) Can tomcat be used as a stand alone server? 2) Why should anyone integrate tomcat with apache?1) Yes you can. 2) If my knoledge

  • Why integrate Tomcat with Apache?November 30

    What's the reason to integrate Tomcat with Apache? What are the benefits?Apache is way faster and more scaleable than Tomcat. So if your website provides also static content (pages, pictures) etc this would be the reason. Additionally if you have oth

  • Tomcat or Apache?November 30

    I'm developing a Web Application using java and Tomcat. But, when I finish my application should be in Tomcat or Apache. Or is it the same between both thecnologies?You wont have any luck running anything in java with apache alone. Tomcat is a servle

  • Problem in configuring tomcat and apacheNovember 30

    I am using mod_jk to configure tomcat and apache. In the server.xml file in /TOMCAT_HOME/conf, I have added this line: <Listener className="org.apache.jk.config.ApacheConfig" modJk="/TOMCAT_HOME/mod_jk/mod_jk.so" /> And when I re

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.392 s.