最近项目需要,要在将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。
详细步骤
- l 运行Tomcat。
- l 在IIS新建一个网站为TomcatSites,将其工作目录设为Tomcat_Dir/webapps
-
l 解压AJP,安装其中的Connector_Setup.exe
- n 在【select All(Global) or Specific Option】这一步选择【let me choose specific sites-……】。如图:
- n 接下来再选择TomcatSites。
- n 在【Select handler Mapping】这一步。如果需要访问Servlet时,就要勾选【Servlet (add a wildcard referece……】;否则就用默认设置就可以了。
-
l 查看IIS中TomcatSites网站的变化。进入【Handler Mapping】,发现多了几项
- nBonCode-Tomcat-CFC-Handler:这个Handler是处理cfc文件的,将cfc的后缀链接转发给Tomcat。
- nBonCode-Tomcat-CFM-Handler:这个Handler是处理cfm文件的
- nBonCode-Tomcat-JSP-Handler:这个Handler是处理jsp文件的。
- nBonCode-Tomcat-WC-Handler:这一项只有在安装AJP勾选了Servlet才会有的,它负责将其他转发给Tomcat,只有就可以实现Tomcat处理Servlet了。
-
l 安装完AJP后,迫不及待的输入localhost,成功出现Tomcat的首页。
后记
这个方法我之前成功过一次,后来在另一台机器再试的时候老是失败,提示类似于以下错误 :
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,beforeyou 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
分享到:
相关推荐
云服务器中IIS7+tomcat7布暑多网站共用80端口,可大幅省钱,方便布暑。 外面有关介绍都有缺陷,我折腾了好多,一定是可以实现的,分数比较高,但值。有不实现的,可留言给我。
iis7通过jk整合tomcat7共用80端口
IIS6.0+tomcat6.0+JK整合(8080端口和80端口共用jsp网站)参考.pdf
tomcat 和iis 80端口共用 tomcat iis 80 8080
包含了所有整合所需的文档/工具,包括 jakarta-tomcat-connectors-jk2.0.4-win32-IIS.zip 修改版jk2.rar How To Configure IIS 7.0 and Tomcat with the JK 1.2 Connector How To Install Apache Tomcat with IIS ...
详细图解介绍IIS6与Tomcat6的整合配置过程,并对配置过程中可能出现的问题(如不能加载jakarta,出现函数不正确)进行解决,下面我们就一起看下详细的配置步骤吧
轻松配置,让iis和tomcat共用80端口
将Tomcat与IIS整合在一起,共用80端口。让iis可以解析*.asp、*.aspx、*.jsp、servlet和*.do文件; 包含所有需要的文件
由于项目需要,需要在windows服务器中架设多个java网站,那么自然需要解决80端口的共用问题;网上原创、转载文章很多,但可能是由于环境的原因,或多或少都有些问题。本文基于windows2008 server X64、IIS7.5、...
自动整合IIS和tomcat 共用80端口的问题。用isapi_redirect.dll 手工配置很容易出错,改工具直接安装 ,选择需要整合TOMCAT的站点 就直接好用了!!!
IIS、TOMCAT和APACHE三者之间的整合,共用同一个端口
解决IIS和tomcat 80端口问题!
IIS与Apache 80端口不能共用,Apache发布了个站点端口8080,现在想通过域名www.apache.com直接访问127.0.0.1:8080站点
64位Windows2008系统下IIS7和Tomcat7整合共用80端口 最新版本:isapi_redirect-1.2.40_x64_X86 还有旧版的:isapi_redirect-1.2.31_x64_X86 共计4个版本一网打尽
IIS 7.5 以下版本不支持多域名共用443端口 SSL 服务,采用nginx 单独处理来自443端口的请求,从而实现多域名 SSL 附件包含,图文设置nginx, nginx免安装包,可直接使用,已支持SNI(Server Name Indication)
用于反向代理tomcat 在iis占用80端口时使tomcat与iis共用端口
IIS和Tomcat共用80端口时要配置的注册表jakarta.reg。
一个页面减少10KB对于一个小网站来说,算不上什么,但对于大型站点来说,累计起来却是一个很大的流量……gzip压缩是一个有效可行的方法,但需要Apache的支持(Apache与IIS共用一个端口解决方法)。 传统的JS压缩(删除...