Have you ever gotten just Tomcat's examples to work on port 80?

My advice would be to get JK working for the examples, and worry about
getting JK working for your app later.

You have a working app now on Tomcat standalone.  Get JK working for the
examples, that has the least amount of configuration.  Once you get that,
then you can simply duplicate the setup for /examples and change "examples"
everywhere you see it to "myApp".

John

-----Original Message-----
From: Denise Mangano [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:53 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets

My apologies -  I sent the updated server.xml right after.  

I had actually originally followed John's how-to but couldn't even get to
the static pages in my webapps directory.  So based on someon else's
suggestion, I opted not to use the mod_jk.conf file and instead place
directives directly into my httpd.conf file.  They also suggested the
workers.properties file as I have it. I tried to change host=localhost but
that did not change anything.  It still gets hung up when I try to execute
the servlets and jsp's.

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-----Original Message-----
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:28 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


In the attached server.xml, active ajp13 is

- <!--  Define an AJP 1.3 Connector on port 8009 
  --> 
  <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009"
minProcessors="5" maxProcessors="75" acceptCount="10" debug="0" /> 

the one you show below is actually commented out in the file

That said, I would suggest you modify your workers.properties file to
worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost
worker.worker1.port=8009

localhost is the standard domain name for the loopback interface 127.0.0.1,
which is usually the default IP address on which TOMCAT listens if I recall.
For the two mod_jk implementation I have set up on Linux, I have left this
as localhost.  this is also how they show it in the sample file found at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

and on his how to list, John Turner States the following,
http://www.johnturner.com/howto/apache1-tomcat404-howto.html,

5) Create a file in CATALINA_HOME/conf/jk called workers.properties. That
file should look like this: 


# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME 
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.0_01
#
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost

worker.ajp13.type=ajp13
#
# END workers.properties


He uses ajp13 where you use worker1

Jeff

 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002
 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to