最近项目需要,要在将JSP项目集成到80端口,但是80端口已运行了一个项目,所有只有将tomcat集成进IIS。在google,baidu搜索看了需要博客,说法都大同小异,都是用这种方法:http://wenku.baidu.com/view/133615d5240c844769eaee5f我意外发现个视频,安装一个exe文件,就可以将 IIS 和 tomcat 整合起来,超级简单,相比于以上链接里的修改注册表,下载dll等等配置来说简单很多。我已将youtube视频下载然后上传到youku了,视频链接http://v.youku.com/v_show/id_XNTg1MTgyODgw.html 详情请看视频。
在此做个简单笔记。
l 确定IIS和Tomcat能够独立运行。
l 到http://tomcatiis.riaforge.org/上下载连接器,目前的版本是AJP13_V1016。
这个方法我之前成功过一次,后来在另一台机器再试的时候老是失败,提示类似于以下错误 :
Error Message: HTTP Error 500.21 - Internal Server Error Handler "BonCode-Tomcat-CFM-Handler" has a bad module "ManagedPipelineHandler" in its module list. |
后来在官方文档上找到原因和解决方案:
http://boncode.net/connector/webdocs/Tomcat_Connector.htm
SEVERAL ORIGINS ON THIS ERROR:
i)
You are not able to retrieve mapped extensions from IIS7.
You may not have installed the “.net extensibility” for IIS7. See above for instructions or use the Server Manager GUI to install this IIS7 feature.
ii)
You have installed a later version of the .net framework, for example .net version 4.0, before you installed the connector and .net version 3.51. If you also have ISAPI role features enabled, you may have created a conflict to resolve.
To keep using ISAPI and .net version 4:
a) Re-register asp.net under the correct .net version, run command:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i
b) Switch the Application pool connected to your site to “integrated mode” and the .net version 4
iii)
Conflict with existing .net framework setup and ISAPI Filters and ISAPI Extensions Role Sub service.
If you do not need ISAPI support (the connector does not need this with .net 3.5.1), you can remove ISAPI extensions and filters.
Remove: ISAPI Extension, ISAPI Filter support
iv) Conflict between .net frameworks installed. If you do not use .net 4:
a) uninstall .net 4,
b) uninstall .net 3.51,
c) then, rerun the connector installer