tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spam <s...@rockhopper.org>
Subject Tomcat don't receive the right URL from mod_jk2 (or mod_jk) with IIS 6.0 on Win 2003 Server?
Date Tue, 06 Jan 2004 09:16:29 GMT
Hi all,

I've followed the instructions found at:  
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html

But, I get ' The page cannot be displayed ' when trying to reach:    
http://localhost/examples/

Looking at the asapi.log file, it seems that  "/examples/" is found to 
be redirected to
ajp13:192.168.0.74:8009 but finally some analysis are done on 
"/jakarta/isapi_redirect.dll".

If I add to workers2.properties:
    [uri:/jakarta/*]
    info= Map the ...
    worker= ajp13:192.168.0.74: 8009
I get the error 404:
    HTTP Status 404 - /jakarta/isapi_redirect.dll
    *type* Status report
    *message* _/jakarta/isapi_redirect.dll
_    *description* _The requested resource (/jakarta/isapi_redirect.dll) 
is not available._   
    Apache Tomcat/4.1.18

Looking at the asapi.log file, it seems that 
"/jakarta/isapi_redirect.dll" is passed to tomcat
instead of  the URL "/examples/". Even if, "/examples/" is found to be 
redirected to
ajp13:192.168.0.74:8009

Here is the log without [uri:/jakarta/*]:
    ( info ) [jk_logger_file.c (224)]  Level DEBUG 0
    ( info ) [jk_logger_file.c (184)]  Initializing log file 
C:/usr/TMS/AppServer/ApplicationServer/IIS/logs/isapi.log
    (debug ) [jk_uriMap.c (377)]  uriMap.init() Fixing Host *          
    (debug ) [jk_uriMap.c (464)]  uriMap: fix uri /appserver/* context 
(null) host * 
    (debug ) [jk_uriMap.c (464)]  uriMap: fix uri /examples/* context 
(null) host *  
    (debug ) [jk_uriMap.c (464)]  uriMap: fix uri (null) context (null) 
host *       
    (debug ) [jk_uriMap.c (464)]  uriMap: fix uri / context / host 
*                 
    ( info ) [jk_workerEnv.c (403)]  workerEnv.init() ok 
C:\usr\TMS\AppServer\ApplicationServer\IIS\conf\workers2.properties
    ( info ) [jk_isapi_plugin.c (612)]  Set serverRoot 
Z:\usr\jakarta-tomcat-4.1.18\jakarta-tomcat-4.1.18
    (debug ) [jk_isapi_plugin.c (616)]  Using 
registry.                              
    (debug ) [jk_isapi_plugin.c (618)]  Using extension uri 
/jakarta/isapi_redirect.dll.
    (debug ) [jk_isapi_plugin.c (619)]  Using server root 
Z:\usr\jakarta-tomcat-4.1.18\jakarta-tomcat-4.1.18.
    (debug ) [jk_isapi_plugin.c (620)]  Using worker file 
C:\usr\TMS\AppServer\ApplicationServer\IIS\conf\workers2.properties.
    (debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc 
started                       
    (debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of localhost : 80
    (debug ) [jk_isapi_plugin.c (355)]  HttpFilterProc 
[/examples/jsp/index.html] is a servlet url - should redirect to 
ajp13:192.168.0.74:8009
    (debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/examples/jsp/index.html] is pointing to the web-inf directory
    (debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc 
started                       
    (debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of localhost : 80
    (debug ) [jk_isapi_plugin.c (412)]  HttpFilterProc 
[/jakarta/isapi_redirect.dll] is not a servlet url
    (debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/jakarta/isapi_redirect.dll] is pointing to the web-inf directory
    (debug ) [jk_isapi_plugin.c (473)]  HttpExtensionProc 
started                    
    (debug ) [jk_isapi_plugin.c (482)]  HttpExtensionProc could not get 
a worker for name
    (error ) [jk_isapi_plugin.c (488)]  HttpExtensionProc worker is 
NULL             

Here is the log with [uri:/jakarta/*]:
    (debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc started
    (debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of localhost : 80
    (debug ) [jk_isapi_plugin.c (355)]  HttpFilterProc [/examples/] is a 
servlet url - should redirect to ajp13:192.168.0.74:8009
    (debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/examples/] is pointing to the web-inf directory
    (debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc started
    (debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of localhost : 80
    (debug ) [jk_isapi_plugin.c (355)]  HttpFilterProc 
[/jakarta/isapi_redirect.dll] is a servlet url - should redirect to 
ajp13:192.168.0.74:8009
    (debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/jakarta/isapi_redirect.dll] is pointing to the web-inf directory
    (debug ) [jk_isapi_plugin.c (473)]  HttpExtensionProc started
    (debug ) [jk_isapi_plugin.c (482)]  HttpExtensionProc got a worker 
for name ajp13:192.168.0.74:8009
    (debug ) [jk_handler_response.c (155)]  handler.response() Header[0] 
[Content-Type] = [text/html;charset=ISO-8859-1]
    (debug ) [jk_handler_response.c (155)]  handler.response() Header[1] 
[Content-Language] = [en-US]
    (debug ) [jk_handler_response.c (172)]  handler.response(): 
status=404 headers=2
    (debug ) [jk_service_iis.c (93)]  Into jk_ws_service_t::head
    (debug ) [jk_service_iis.c (227)]  Into jk_ws_service_t::write
    (debug ) [jk_isapi_plugin.c (515)]  HttpExtensionProc service() 
returned OK
    (debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc started
    (debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of w0037 : 80
    (debug ) [jk_isapi_plugin.c (412)]  HttpFilterProc [/examples:] is 
not a servlet url
    (debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/examples:] is pointing to the web-inf directory
    (debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc started
    (debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of w0037 : 80   
    (debug ) [jk_isapi_plugin.c (412)]  HttpFilterProc [/examples:] is 
not a servlet url
    (debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/examples:] is pointing to the web-inf directory
    (debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc started
    (debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of w0037 : 80
    (debug ) [jk_isapi_plugin.c (355)]  HttpFilterProc [/examples/] is a 
servlet url - should redirect to ajp13:192.168.0.74:8009
    (debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/examples/] is pointing to the web-inf directory
    (debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc started
    (debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of w0037 : 80
    (debug ) [jk_isapi_plugin.c (355)]  HttpFilterProc 
[/jakarta/isapi_redirect.dll] is a servlet url - should redirect to 
ajp13:192.168.0.74:8009
    (debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/jakarta/isapi_redirect.dll] is pointing to the web-inf directory
    (debug ) [jk_isapi_plugin.c (473)]  HttpExtensionProc started
    (debug ) [jk_isapi_plugin.c (482)]  HttpExtensionProc got a worker 
for name ajp13:192.168.0.74:8009
    (debug ) [jk_handler_response.c (155)]  handler.response() Header[0] 
[Content-Type] = [text/html;charset=ISO-8859-1]
    (debug ) [jk_handler_response.c (155)]  handler.response() Header[1] 
[Content-Language] = [en-US]
    (debug ) [jk_handler_response.c (172)]  handler.response(): 
status=404 headers=2
    (debug ) [jk_service_iis.c (93)]  Into jk_ws_service_t::head
    (debug ) [jk_service_iis.c (227)]  Into jk_ws_service_t::write
    (debug ) [jk_isapi_plugin.c (515)]  HttpExtensionProc service() 
returned OK
  
Here is the registry:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta 
Isapi Redirector\2.0]
    
"workersFile"="C:\\usr\\TMS\\AppServer\\ApplicationServer\\IIS\\conf\\workers2.properties"
    "extensionUri"="/jakarta/isapi_redirect.dll"
    "logLevel"="INFO"
    "serverRoot"="C:\\usr\\TMS\\AppServer\\ApplicationServer\\"

Here is the workers2.properties:
    [shm]
    file=C:/usr/TMS/AppServer/ApplicationServer/IIS/logs/shm.file
    size=1048576
    [logger.file:0]
    file=C:/usr/TMS/AppServer/ApplicationServer/IIS/logs/isapi.log
    level=DEBUG
    [workerEnv:]
    info= Global server options
    timing=1
    debug=0
    logger=logger.file:0
    # Define the communication channel
    [channel.socket:192.168.0.74:8009]
    info=Ajp13 forwarding over socket
    tomcatId=192.168.0.74:8009
    # define the worker
    [ajp13:192.168.0.74:8009]
    channel=channel.socket:192.168.0.74:8009
    # Map the Tomcat examples webapp to the Web server uri space
    [uri:/appserver/*]
    info=Map the whole webapp
    worker=ajp13:192.168.0.74:8009
    # Map the Tomcat examples webapp to the Web server uri space
    [uri:/examples/*]
    info=Map the whole webapp
    worker=ajp13:192.168.0.74:8009
    # Map the Tomcat examples webapp to the Web server uri space
    [uri:/jakarta/*]
    info=Map the whole webapp
    worker=ajp13:192.168.0.74:8009

Here is my configuration:
    618e5b1e978de1444a820380fe461f6b *isapi_redirect.dll      ->  
jakarta-tomcat-connectors-jk2.0.2-win32-IIS.zip
    Windows 2003 Server with the latest patchs (and IIS 6)
    Tomcat  4.1.18

I've the same behaviour with:
    isapi_redirect_1.2.5.dll  -> mod_jk instead of mod_jk2

I've the same behavior with:
    latest jboss (in which is embedded tomcat), one more time in the 
logs the URI that is received by jboss is /jakarta/isapi_redirect.dll

All is running well with similar configuration (workers2.properties) 
using Apache2 instead of IIS 6.0.
All is running well with similar configuration using Windows 2000 Server 
(and IIS 5) instead of IIS 6.0.

I've enabled *'Set extension status to Allowed for the dll' .
I've enabled '**Run WWW service in IIS 5.0 isolation mode' .*

What is wrong with my configuration?

Any help would be greatly appreciate.

Thanks.

Johann DUPUIS


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


Mime
View raw message