[JAVA] WebService - 使用IIS撘配Tomcat

昨天跟Eric談了一下,覺得FileNet好像也很值得玩玩.FileNet是一個content management.也提供流程來符合企業的需要.

所以今天想到昨天與他談的架構(IIS + WAS + BPM),想說用IIS + Tomcat先來試試看.

Environment:

==================================================================

OS: Windows XP Pro

Http Server : IIS 5.1

Web Application Server : Tomcat 5.5.25


Preparation: (安裝我就不提了,請參照網站上的參考資料)

==========================================

1.download JDK 5

2.download tomcat

3.download isapi_redirect-1.2.27.dll

4.install IIS


configuration:

===============================================

1. Tomcat_Home/conf/workers.properties

worker.list=ajp13
worker.loadbalancer.type=lb
ps=\
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

2.Tomcat_Home/conf/uriworkermap.properties

/jsp-examples/*=ajp13

3. config windows registry (regedit)

3.1產生HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector \1.0

3.2加入以下五組字串值

字串字串值描述
extension_uri/tomcat/isapi_redirect-1.2.27.dll指定訪問isapi_redirect.dll文件的uri,在IIS中將建立名為tomcat的虛擬目錄,目錄路徑內包括isapi_redirect.dll檔
log_filec:\tomcat5\logs\jk_iis.loglog file name
log_leveldebuglog level
worker_filec:\tomcat5\conf\workers.propertiesworker.properties
worker_mount_filec:\tomcat5\conf\uriworkermap.propertiesuriworkermap.properties

4.config IIS

a.於預設網站下新增一虛擬目錄名為tomcat,路徑指到與isapi_redirect.dll同一個位置,使用權限應為"指令碼與執行檔".

b.預設網站下點右鍵選內容,於ISAPI篩選器加入一新篩選器.將執行檔指向isapi_redirect.dll.

5.注意事項:

以上全設定完成後記得重開機,接著先停掉IIS,再啟動tomcat,最後再啟動IIS.就大功告成囉^^

沒有留言:

張貼留言