My software installation description:
OS: win2000
JDK1.3       e:\jdk1.3
Tomcat3.2    e:\tomcat3.2
apache1.3.14    e:\apache group\apache

1. I setup tomcat with 8081 port. test it with 
http://localhost:8081/examples/jsp
everything is ok.

2. I setup apache with port 8080. test it with http://localhost:8080 it is 
ok.

3. Then I try to link both of them by mod_jk. (I dont need mod_jserv, just 
for test my mod_jk)
so I append lines as below to the bottom of apache's httpd.conf to support 
tomcat & mod_jk
#with tomcat & mod_jk  
include e:/tomcat3.2/conf/mod_jk.conf-auto
include e:/tomcat3.2/conf/mytomcat-apache.conf

4. then I change tomcat's conf files as below:
 1) in server.xml, I add some lines for apj13, no other lines changed
<!-- Apache AJP13 support. This is also used to shut down tomcat. -->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
  <Parameter name="handler" 
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
  <Parameter name="port" value="8009"/>
</Connector>

 2)nothing changed to mod_jk.conf-auto

 3)I delete the first 8 lines in tomcat-apache.conf, which involved 
mod_JServ, and change all the ApJServMount with JkMount
 then I save the file as mytomcat-apache.conf
 
 4)I change workers.properties as below:
    workers.tomcat_home=e:\tomcat3.2
    workers.java_home=e:\jdk1.3
    ps=\
    nothing else changed in this file

5. Now I start tomcat, it looks allright.
the tomcat.log display:
2000-12-19 08:59:07 - ContextManager: Adding context Ctx( /examples )
2000-12-19 08:59:07 - ContextManager: Adding context Ctx( /admin )
2000-12-19 08:59:07 - ContextManager: Adding context Ctx(  )
2000-12-19 08:59:07 - ContextManager: Adding context Ctx( /test )
2000-12-19 08:59:08 - PoolTcpConnector: Starting HttpConnectionHandler on 
8081
2000-12-19 08:59:08 - PoolTcpConnector: Starting Ajp13ConnectionHandler on 
8009
2000-12-19 08:59:08 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 
8007

6. Then I start up apache. It display:
apache/1.3.14(win32) mod_jk running...

it seems all ok. But when I open 
http://localhost:8080/examples/jsp/index.html, ckick ant the .jsp url, a 
download window open!
but when I test the tomcat3.2 with 
http://localhost:8081/examples/jsp/index.html it is ok.

Question:
what's wrong in my setups?
Please give me some tips about mod_jk and apache & tomcat?

contact with me at [EMAIL PROTECTED]

Alan Hu
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Reply via email to