Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mod_JK: Problem configuring Apache and Tomcat

Status
Not open for further replies.

yahelmalkin

IS-IT--Management
Apr 26, 2006
2
US
Hello,
I'm really hoping someone can come to my rescue here, I had been browsing the web for hours trying to solve my problem.
I'm running Apache (Apache/1.3.27 ) and Tomcat (version 4) on two separate Linux machine.
I configured Apache to load the mod_jk module and configured the worker.properties with the Tomcat ip address as follow:
ps=/
worker.list=app-01
worker.app-01.port=8009
worker.app-01.host=10.1.201.21
worker.app-01.type=ajp13
worker.app-01.cachesize=10
worker.app-01.cache_timeout=600
worker.app-01.socket_keepalive=1
worker.app-01.socket_timeout=300
However when starting tomcat and Apache I can see from a netstat command on the tomcat machine that the port 8009 is not activated (I copied below my server.xml).

Could you please help me figuring out what it going on. I had been in this issue for a week and start to really be discouraged.
Any input will be very valuable to me.

THANK YOU.
Yahel


server.xml
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Lemo-Coaxial-Service">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080"
minProcessors="5"
maxProcessors="75"
enableLookups="true"
redirectPort="8443"
acceptCount="100"
debug="0"
connectionTimeout="20000"
useURIValidationHack="false"
disableUploadTimeout="true"/>

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009"
minProcessors="5"
maxProcessors="75"
enableLookups="true"
redirectPort="8443"
acceptCount="10"
debug="0"
connectionTimeout="0"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log."
suffix=".txt"
timestamp="true"/>
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true">
<DefaultContext debug="0" reloadable="true" crossContext="true" cookies="true" />
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="lemo_coaxial_log."
suffix=".log"
timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>
 
My connector looks like this for TC5
Code:
<Connector port="8009"
           enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
or this for TC4
Code:
<Connector port="8009" protocol="AJP/1.3" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" redirectPort="8443" />

Near the end of the TC start up sequence it lists what is listening to what.... Check the logs for any clues
 
NullTerminator,
Thank you for the answer but unfortunately even after updating the server.xml with the connector for TC4 or TC5 the port 8009 does not seem to be activated. After running a netstat I still don't see it and of course I tried to connect to the web site with my browser, it was not responding unless I append the port 8081 to the url such as: If someone has a slight idea of what is going on please don't hesitate to let me know. I'm desperate for answers.
Thank You
 
What does the end of your startup output look like? don't have tomcat on my local linux box, but in win 32 it says
Code:
StandardHost[localhost].StandardContext[/salesnet]
Apr 27, 2006 9:24:41 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 27, 2006 9:24:42 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Apr 27, 2006 9:24:42 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=16/110  config=d:\tomcat\conf\jk2.properties
Apr 27, 2006 9:24:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13391 ms
Can you stop and start it from a terminal window? maybe like

/usr/bin/java -jar -cp ./:/jdk1.4.1/lib/tools.jar -Duser.dir="/Tomcat" "/Tomcat/bin/bootstrap.jar" start

Any exceptions reported in the 'lemo_coaxial_log' log?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top