求助關於tomcat+IIS搭建JSP伺服器

sunnaiti發表於2004-01-05
我用IIS5和tomcat4整合(ISAPI篩選器jakarta的狀態標誌是綠色),不知這算不算是整合成功。目前存在的問題是還是不能訪問jsp頁面,如果訪問jsp頁面,顯示的仍然是該頁面的願程式碼。
我做的網站的是放在d:\sun\music目錄下,請問下面我應該怎麼做?

我用的tomcat是4.0.4的exe版本。系統是2000 professtional。
tomcat的home變數等已經設好,jk2放在C:\tomcat\conf\connector裡面。
workers2.properties和jk2.properties兩個配置檔案都放在c:\tomcat\conf下面,登錄檔檔案也已經執行過了。另外附上我的2個properties和reg檔案,請大家幫我看看。

workers2.properties檔案內容:
-----------------------------------------------------------------------------------

[shm]
file=C:/tomcat/logs/jk2.log
size=1048576

# Example socket channel, override port and host.

[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker

[ajp13:reynir_net:8009]
channel=channel.socket:localhost:8009

# Uri mapping

[uri:/*.jsp]

[uri:/web/*]

[uri:/view/*]
worker=ajp13:localhost:8009

# define the worker

[status:status]

# Uri mapping

[uri:/jkstatus/*]
worker=status:status
---------------------------------------------------------------------------------

jk2.properties檔案內容:
--------------------------------------------------------------------------------
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
request.tomcatAuthentication=true
request.tomcatAuthentication=false
--------------------------------------------------------------------------------
登錄檔檔案內容:
----------------------------------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0]
"serverRoot"="C:\\tomcat"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="C:\\tomcat\\conf\\workers2.properties"
"logLevel"="DEBUG"

相關文章