You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Karl von Randow <ka...@cactuslab.com> on 2003/04/02 11:34:33 UTC

Jk2 2.0.2 + IIS 5 (Win2k server) setup/config failing

Hi all,

I have been trying without any success to connect IIS 5 on Windows 2k Server
to Tomcat 4.1.18 (and 4.1.24) using JK2 isapi_redirector2.dll (2.0.2 and
2.0.1). I was able to get it working first go on Windows XP Pro and have
duplicated the configuration on the two machines. Below I have pasted some
excerpts from the various log files...

In the jk2.log file notice that when I request http://localhost:81/jkstatus/
(I moved the IIS server to 81 but the same things happened on 80), it does
get to the filter - the virtual directory "jakarta" is configured and the
ISAPI filter has the big green arrow - so I believe that that part of the
process is ok. Note that after it matches /jkstatus/, it checks if it's
web-inf and then it starts destroying workers! This is not what it does on
my Win XP setup. Can anyone shed any light on this or perhaps there is a
version of the redirector out there with heavier debugging that we could use
to trace this problem? I regret that I am unable to compile windows
binaries.

Kind regards,
Karl





Jk2.log

[Wed Apr 02 20:56:31 2003] ( info ) [jk_logger_file.c (184)]  Initializing
log file C:\tomcat/logs/jk2.log
[Wed Apr 02 20:56:31 2003] ( info ) [jk_logger_file.c (184)]  Initializing
log file C:\tomcat/logs/jk2.log
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (377)]  uriMap.init()
Fixing Host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri
/jkstatus/* context (null) host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri
(null) context (null) host 127.0.0.1:8003
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri
/examples context /examples host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri
/examples/servlet/* context (null) host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri
/examples/*.jsp context (null) host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri
/examples/* context (null) host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri
/examples/servlet/HelloW context (null) host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri
(null) context (null) host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri /
context / host *
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriMap.c (464)]  uriMap: fix uri /
context / host 127.0.0.1:8003
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriEnv.c (284)]  uriEnv.init() map
/examples/servlet/HelloW lb:lb
[Wed Apr 02 20:56:31 2003] (debug ) [jk_uriEnv.c (356)]  uriEnv.init() exact
mapping /examples/servlet/HelloW=lb:lb 
[Wed Apr 02 20:56:31 2003] ( info ) [jk_workerEnv.c (403)]  workerEnv.init()
ok C:\tomcat\conf\workers2.properties
[Wed Apr 02 20:56:31 2003] ( info ) [jk_isapi_plugin.c (612)]  Set
serverRoot C:\tomcat
[Wed Apr 02 20:56:31 2003] (debug ) [jk_isapi_plugin.c (616)]  Using
registry.
[Wed Apr 02 20:56:31 2003] (debug ) [jk_isapi_plugin.c (618)]  Using
extension uri /jakarta/isapi_redirector2.dll.
[Wed Apr 02 20:56:31 2003] (debug ) [jk_isapi_plugin.c (619)]  Using server
root C:\tomcat.
[Wed Apr 02 20:56:31 2003] (debug ) [jk_isapi_plugin.c (620)]  Using worker
file C:\tomcat\conf\workers2.properties.
[Wed Apr 02 20:56:43 2003] (debug ) [jk_isapi_plugin.c (288)]
HttpFilterProc started
[Wed Apr 02 20:56:43 2003] (debug ) [jk_isapi_plugin.c (346)]  In
HttpFilterProc Virtual Host redirection of localhost : 81
[Wed Apr 02 20:56:43 2003] (debug ) [jk_isapi_plugin.c (355)]
HttpFilterProc [/jkstatus/] is a servlet url - should redirect to status:
[Wed Apr 02 20:56:43 2003] (debug ) [jk_isapi_plugin.c (421)]
HttpFilterProc check if [/jkstatus/] is pointing to the web-inf directory
[Wed Apr 02 20:56:43 2003] (debug ) [jk_workerEnv.c (140)]  destroy worker
lb:lb
[Wed Apr 02 20:56:43 2003] (debug ) [jk_workerEnv.c (140)]  destroy worker
ajp13:localhost:8009
[Wed Apr 02 20:56:43 2003] (debug ) [jk_worker_ajp13.c (841)]
ajp13.destroy() closed 0 cached endpoints
[Wed Apr 02 20:56:43 2003] (debug ) [jk_workerEnv.c (140)]  destroy worker
status:
[Wed Apr 02 20:56:43 2003] (debug ) [jk_workerEnv.c (147)]
workerEnv.close() done 3


IIS Log

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2003-04-02 08:56:46
#Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem
cs-uri-query sc-status cs(User-Agent) 
2003-04-02 08:56:46 127.0.0.1 - 127.0.0.1 81 GET
/jakarta/isapi_redirector2.dll - 500
Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)


Workers2.properties

[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=1000000
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:127.0.0.1:8003]
info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test
it
alias=myVirtualHost:8003

[uri:/examples]
info=Example webapp in the default context. 
context=/examples
debug=0

[uri:/examples/servlet/*]
info=Prefix mapping

[uri:/examples/*.jsp]
info=Extension mapping

[uri:/examples/*]
info=Map the whole webapp

[uri:/examples/servlet/HelloW]
info=Example with debug enabled.
debug=10



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org