LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 923|回复: 0

整合tomat与apache与mysql出错。

[复制链接]
发表于 2005-6-16 14:42:50 | 显示全部楼层 |阅读模式
整合tomat与apache与mysql出错。


windows2003系统安装apache_2.0.54-win32-x86-no_ssl.msi
Tomat是5.0.28。单个访问都没有问题。
http://localhost:8080 正常访问tomat
http://localhost 正常访问apache
tomcat已使用很久,也很正常,但整合apache里出错。

我的整合操作步骤是:
1 将mod_jk_2.0.47.dll改名mod_jk2.dll拷到E:\apache2\Apache2\modules下
2 修改E:\apache2\Apache2\conf下的httpd.conf文件,增加
##################
#装载 mod_jk
# LoadModule jk2_module modules/mod_jk2.so
LoadModule jk_module modules/mod_jk2.dll
#装载自建的workers.properties文件
JkWorkersFile "E:/Tomcat5/conf/workers.properties"
#可以编译servlet以及jsp
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
################
3 在E:\Tomcat5\conf下新建workers.properties
内容为workers.tomcat_home=E:\Tomcat5
workers.java_home=E:\j2sdk1.4
ps=\
worker.list=ajp12,ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)jasper.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)servlet.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)common$(ps)lib$(ps)webserver.jar
worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar
worker.inprocess.cmd_line=-config
worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml
worker.inprocess.cmd_line=-home
worker.inprocess.cmd_line=$(workers.tomcat_home)
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr
worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)


重启tomat与apache后,访问localhost还是apache界面,访问tomat还是tomcat界面。访问

http://127.0.0.1/manual/test/tes ... 是什么原因。

HTTP Status 404 - /manual/test/test.jsp

type Status report

message /manual/test/test.jsp

description The requested resource (/manual/test/test.jsp) is not available.
Apache Tomcat/5.0.28

在redhat 9下整合安装tomat与apache与mysql都没有问题。但windows下出错。

希望有大侠可以解答,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表