求助关于tomcat+IIS搭建JSP服务器

04-01-05 sunnaiti
我用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"

rypan
2004-01-09 17:04
这两样东西整合在一起,有必要吗?难道你要同时运行jsp和asp?

sunnaiti
2004-01-11 15:55
不是啊,我选的IIS做服务器,只是想让tomcat成为一个插件。