Hi Manjo,

It mostly looks OK to me. I run Tomcat 4.1.18 with JBoss 3.0.6.

Observations:

Of the following 3 lines, the last makes the previous 2 redundant

JKMount /mig/servlet/* ajp13
JKMount /mig/*.jsp ajp13
JKMount /mig/* ajp13

When you attempt to hit Tomcat through Apache, append a trailing slash like
you have in your mount command.

Use:
http://MY.IP.ADDR.ESS/mig/

Not:
http://MY.IP.ADDR.ESS/mig

If you want to be able to forward request with out the trailing slash, make
your mount:
JKMount /mig* ajp13

This can result in unexpected behaviour if you have other paths that are
similar
Eg. http://MY.IP.ADDR.ESS/mig == http://MY.IP.ADDR.ESS/migrate


Dennis


-----Original Message-----
From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Simple WAR on Apache + Tomcat + JBoss


Hi:

I have a simple WAR file 'mig.war' and want to see if that wokrs on
Architecture - Apache + JBoss(Tomcat).

I have my mig.war file in /jboss/server/default/deploy

I have my mod_jk.so connector in /usr/local/apache/libexec directory

My httpd.conf has following information at end:
---------------------------------------------------------
LoadModule jk_module  libexec/mod_jk.so
JkWorkersFile /jboss/catalina/conf/jk/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info

JKMount /examples/servlet/* ajp13
JKMount /examples/*.jsp ajp13

JKMount /mig/servlet/* ajp13
JKMount /mig/*.jsp ajp13
JKMount /mig/* ajp13
---------------------------------------------------------

My workers.properties file contains
---------------------------------------------------------
workers.tomcat_home=/jboss/catalina
workers.java_home=/usr/java130
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=MY.IP.ADDR.ESS
worker.ajp13.type=ajp13
-------------------------------------------------------

My tomcat4-service.xml file has following:
-------------------------------------------------------
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75" acceptCount="10"
debug="1"/>
------------------------------------------------------

By the way why should Port be 8009...? should it be 8080?

Can anyone see if the above process is proper?

When I try http://MY.IP.ADDR.ESS on my browser, it shows my Welcome Apache
Page...which shows Apache is working fine.

Later when I try http://MY.IP.ADDR.ESS/mig is says Page Not Found Error

When I add Port 8080 as http://MY.IP.ADDR.ESS:8080/mig
it works fine...

How can I know if my Apache + Tomcat Integration is working fine and that
Apache REDIRECTS my JSP/Servlets to Tomcat?



Should I start my Jboss first or Apache first?

THANK YOU ALL!







_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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


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

Reply via email to