设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> 网站制作技术 >> Apache2.0.47和Tomcat4.1.27整合!
精品推荐
网站制作技术点击TOP10
·网页打印问题,打印设置,打印预览,打印分页,纵打,横打及页面的边距
·Asp.net可输入下拉框服务器控件
·包过滤规则配置示例
·ISAPI_Rewrite Lite
·一个带搜索功能的网页原代码
·漂亮的日期选择器
·全角/半角的转换函数
·AWStats: Apache/IIS的日志分析工具——在GNU/Linux和Windows平台上的使用简介
·手把手教你如何免费注册国际顶级域名
·Do All in Cmd Shell
编程开发点击TOP10
·数字小键盘指法练习
·ASP.NET 程序中常用的三十三种代码
·用C语言编通讯录程序(初学者级别的)
·我写的Java学生成绩管理系统源代码
·CHK文件恢复工具
·Modem 常用AT指令集
·java笔试题
·异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
精选专题

Apache2.0.47和Tomcat4.1.27整合!

作者: 来源:网络文章 时间:2005-12-17 22:36:13

Apache2.0.47和Tomcat4.1.27整合!(2) OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=[Apache_install_dir]\logs\stdout.log
stderr=[Apache_install_dir]\logs\stderr.log

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

#注:
#网上有资料OPT=-Djava.class.path是指向\lib\,实际上安装目录下并无\lib目录,如不修改会出现java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter异常
#把[Tomcat_install_dir]和[Apache_install_dir]换成实际安装路径,其余不用做任何改动

3. 配置Tomcat端
修改[Tomcat_install_dir]/conf/jk2.properties,用以下内容替换原来内容:

# Set the desired handler list
handler.list=apr,request,container,channelJni

# Enable jni use channelJni directive
apr.jniModeSo=[Apache_install_dir]\modules\mod_jk2-2.0.43.dll

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# If you wish to start the Tomcat from inside web server then
# you don′t need any above directive. Here is shown the default
# value for the apr that you can ommit
apr.jniModeSo=inprocess

#注:
#把[Tomcat_install_dir]和[Apache_install_dir]换成实际安装路径,其余不用做任何改动
#这种方式使用JNI通道,因此运行Apache时会通过JNI直接在后台启动Tomcat。

四、测试:
启动Apache
看http://localhost/examples/jsp/
如显示正确内容则整合成功!
如不成功请检查[Apache_install_dir]\logs\stdout.log和[Apache_install_dir]\logs\stderr.log日志,看是什么错误,根据错误提示进行修改。

共2页 9 7 [1] [28 :>

Apache2.0.47和Tomcat4.1.27整合! 相关文章:
Apache2.0.47和Tomcat4.1.27整合! 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com