Windows2003下Tomcat5.5 整合IIS6(2)

来源:未知 责任编辑:责任编辑 发表时间:2013-11-26 22:14 点击:

1. Install the JDK and Tomcat and set the environment variable.

2. Configure JK

Download JK from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.14/isapi_redirect-1.2.14.exe

Setup the file. (It’s better that there isn’t blank space in the directory which you choose to install.)

After installing it, you could find the file “workers.properties.minimal” in Apache Software FoundationJakarta Isapi Redirector, and change its name to “workers.properties”.

Open the Registry Editor; Open the “HKEY_LOCAL_MACHINESOFTWAREApache Software FoundationJakarta Isapi Redirector1.0]”

Change the value “workers.properties.minimal”of worker_file to “workers.properties”

The content of worker.properties and uriworkermap.properties is follow:

worker.properties:

worker.list=ajp13

worker.ajp13.type=ajp13

worker.ajp13.host=localhost

worker.ajp13.port=8009

uriworkermap.properties:

# Mapping the URI /admin, /manager, /jsp-examples and /servlets-examples and

# everything under them to Tomcat

# /admin/*=ajp3

# /manager/*=ajp13

# /jsp-examples/*=ajp13

# /servlets-examples/*=ajp13

# Mapping all URI which end with a common suffix .jsp and .do to Tomcat

# /*.jsp=ajp13

# /*.do=ajp13

# Mapping all URI to Tomcat

/*=ajp13


3. Create a new website in IIS which point to your website (such as $CATALINA_HOME webappsROOT)


4. Configure the Tomcat ISAPI Filter

Rigth click your websiteàPropertiesàISAPI FiltersàAddàset Filter name “jakarta” and Executable choose the path of “isapi_redirector.dll”àOK

Note – If you check on its status, you may notice that the ISAPI filter hasn’t been successfully loaded at this stage, even if you have re-started IIS. This is expected behaviour and is documented in the IIS6 Operations Guide,

“In an effort to optimize resources in IIS 6.0, an ISAPI filter is not loaded until a request is made to a Web site that requires the ISAPI filter. Until this request is made, IIS Manager does not display the status of the ISAPI filter.”

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/93f23233-2a47-4104-b0b4-a7ec0d3116f3.mspx

However, once IIS has served a successful request to it you will see the status of the ISAPI filter change to ‘Loaded’.


5. Create a virtual directory for the Tomcat connector to use, create a new Web Service Extension in IIS and then enable that web service extension so that it can be used.

Rigth click your websiteàNewàVirtual Directoryàset Alias: jakartaàNextàset Path: choose the path of “isapi_redirector.dll”.

6. Create and exable the tomcat Web Service Extension

Rigth click “Web Service Extension” à Add a new Web service extension àSet name: Tomcat, set Required files:choose your “isapi_redirector.dll”à click the “Set extension status to Allowed”àOK

7. Add the “.jsp”

发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码:点击我更换图片
最新评论 更多>>

推荐热点

  • dos命令原来也能这样用?允许查找未知子目录指定文件
  •  windows的磁盘操作之八——格式化分区的思考
  • windows篇-第三章 安装和配置DNS服务器
  • windows篇-第二章 安装和配置Web服务器
  • windows篇-第一章 windows server 2008安装和简单配置
  •  windows server 2003断开远程之后自动注销用户
  • Windows服务器下用IIS Rewrite组件为IIS设置伪静态方法
  • Windows 2008 R2 SP1部署WSUS 3.0 SP2
  • windows 2008 rodc扩展

快速直达

操作系统导航

LinuxWindows虚拟机
网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
Copyright © 2008-2015 计算机技术学习交流网. 版权所有

豫ICP备11007008号-1