Hi,

I'm looking for some help, again.... Thanx in advance.

Last test : When I'm installing on another server : Windows Server 200 
SP4, it works fine !!!!!!

So what  ?? 4 days for nothing ??? Does Tomcat 5.0.x works on Windows 2003 
? Could windows 2003 works with Tomcat 5.0.x ?

Could you help me please !!!!

******************************
**** SOFT RELEASE ****
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : 1.2.8
*****************************
After the last mail exchange, I delete my jk2 connector and config. But 
all over the web I find only some help for an installation of Tomcat 4.x 
and IIS.

With tomcat 5.0.28, the path for the samples directory and servlets are 
not the same. But even with some modifications in the 
"uriworkermap.properties", I've got an error 404 from Tomcat...
**************************************************************
==> Log ISAPI.log
**************************************************************
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1040): Using registry.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1043): Using log file c:\Tomcat5\logs\isapi.log.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1044): Using log level 1.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1045): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1046): Using worker file C:\Tomcat5\conf\worker.properties.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1047): Using worker mount file c:\Tomcat5\conf\uriworkermap.properties.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1049): Using uri select 0.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 7
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (406): exact rule 
/jsp-examples=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/jsp-examples/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (360): suffix rule 
/jsp-examples/.jsp=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/servlets-examples/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (406): exact rule 
/tomcat-docs=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/tomcat-docs/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (360): suffix rule /.jsp=ajp13 was 
added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (478): there are 7 rules
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
build_worker_map::jk_worker.c (196): creating worker ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
wc_create_worker::jk_worker.c (120): about to create instance ajp13 of 
ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
wc_create_worker::jk_worker.c (133): about to validate and init ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_validate::jk_ajp_common.c (1721): worker ajp13 contact is 
localhost:8009
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1767): setting socket keepalive to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1806): setting socket timeout to -1
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1810): setting connection recycle timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1814): setting cache timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1818): setting connect timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1822): setting reply timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1826): setting prepost timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1830): setting recovery opts to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1834): setting number of retries to 3
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1854): setting connection cache size to 1
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
build_worker_map::jk_worker.c (208): removing old ajp13 worker 
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS >= 5.0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of 
/s0058/jsp-examples/index.html
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI 
'/s0058/jsp-examples/index.html' from 7 maps
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/servlets-examples/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples/*.jsp'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/tomcat-docs/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/tomcat-docs'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/*.jsp'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (760): Default redirection of 
/jsp-examples/index.html
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI 
'/jsp-examples/index.html' from 7 maps
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/servlets-examples/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples/*.jsp'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match ajp13 
-> /jsp-examples/
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (770): check if 
[/jsp-examples/index.html] is points to the web-inf directory
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (788): [/jsp-examples/index.html] is a 
servlet url - should redirect to ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of 
/s0058/jakarta/isapi_redirect.dll
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI 
'/s0058/jakarta/isapi_redirect.dll' from 7 maps
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/servlets-examples/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples/*.jsp'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/tomcat-docs/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/tomcat-docs'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/*.jsp'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (760): Default redirection of 
/jakarta/isapi_redirect.dll
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI 
'/jakarta/isapi_redirect.dll' from 7 maps
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/servlets-examples/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples/*.jsp'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/jsp-examples'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/tomcat-docs/*'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/tomcat-docs'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/*.jsp'
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (770): check if 
[/jakarta/isapi_redirect.dll] is points to the web-inf directory
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (853): [/jakarta/isapi_redirect.dll] is 
not a servlet url
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
wc_get_worker_for_name::jk_worker.c (92): found a worker ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpExtensionProc::jk_isapi_plugin.c (920): got a worker for name ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_get_endpoint::jk_ajp_common.c (2050): created new endpoint for worker 
ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_marshal_into_msgb::jk_ajp_common.c (551): ajp marshaling done
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_service::jk_ajp_common.c (1594): processing with 3 retries
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
jk_open_socket::jk_connect.c (159): try to connect socket = 1096 to 
127.0.0.1:8009
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
jk_open_socket::jk_connect.c (177): after connect ret = 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
jk_open_socket::jk_connect.c (192): jk_open_socket, set TCP_NODELAY to on
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
jk_open_socket::jk_connect.c (229): connected sd = 1096
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_connect_to_endpoint::jk_ajp_common.c (838): connected sd = 1096 to 
127.0.0.1:8009
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (883): sending to ajp13 
pos=4 len=159 max=8192 
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_send_request::jk_ajp_common.c (1199): request body to send 0 - request 
body to resend 0
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] 
ajp_connection_tcp_get_message::jk_ajp_common.c (1007): received from 
ajp13 pos=0 len=100 max=8192 
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (606): status = 404
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (613): Number of headers is = 2
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (669): Header[0] [Content-Type] = 
[text/html;charset=utf-8]
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (669): Header[1] [Content-Length] 
= [1041]
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] 
ajp_connection_tcp_get_message::jk_ajp_common.c (1007): received from 
ajp13 pos=0 len=1045 max=8192 
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] 
ajp_connection_tcp_get_message::jk_ajp_common.c (1007): received from 
ajp13 pos=0 len=2 max=8192 
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] 
HttpExtensionProc::jk_isapi_plugin.c (933): service() returned OK
[Tue Apr 05 16:38:26 2005] [2440:3504] [debug] ajp_done::jk_ajp_common.c 
(1942): recycling connection cache slot=0

**************************************************************

URL test :
http://localhost/jsp-examples/index.html

I'll try too with the data from "http://www.reynir.net/java/greinar/nr/52
", without any results...

*** MY ACTIONS ***
**************************************************************
* ==> 1 - Tests IIs and Tomcat without the connector :
**************************************************************
open url : http://localhost  => IIs respond good
open url : http://localhost:8080/ and 
http://localhost:8080/jsp-examples/index.html, works good

**************************************************************
*  ==> 2 - Installing the Isapi filter :
**************************************************************
I copy the file in ht directory : 
c:\Tomcat5\bin\win32\i386\isapi_redirect.dll

where CATALINA_HOME = c:\Tomcat5 and JAVA_HOME = c:\JDK
**************************************************************
*  ==> 3 - Uddating the windows registry for ISAPI filter :
**************************************************************
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="c:\\Tomcat5\\logs\\isapi.log"
"worker_file"="c:\\Tomcat5\\conf\\workers.properties)"
"worker_mount_file"="c:\\Tomcat5\\conf\\uriworkermap.properties"
"log_level"="debug"

**************************************************************
* ==> 4 - Configuring Tomcat Workers (workers.properties file)
**************************************************************
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.tomcat_home=C:\Tomcat5\
worker.java_home=C:\JDK
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=127.0.0.1

**************************************************************
* ==> 5 - configuring the uriworkermap.properties
**************************************************************
/jsp-examples=ajp13
/jsp-examples/*=ajp13
/jsp-examples/*.jsp=ajp13
/servlets-examples/*=ajp13
/tomcat-docs=ajp13
/tomcat-docs/*=ajp13
/*.jsp=ajp13

**************************************************************
* ==> 6 - Creating virtual directory under IIS
**************************************************************
Every thing indicates it's ok : green arrow, and the virtual directory is 
called : "jakarta"

**************************************************************
* ==> 7 - Adding the ISAPI filter to IIS
**************************************************************
With the Allow green flag

**************************************************************
* ==>  8 - Configuring the connector in tomcat's server.xml :
**************************************************************
<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
            debug="0"/>
  <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
            debug="0"/>

  <!-- Global JNDI resources -->
  <GlobalNamingResources>

    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>

  </GlobalNamingResources>

    <Service name="Catalina">

    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
         during installation  -->
    <Connector port="8080"
               maxThreads="150"
               minSpareThreads="25"
               maxSpareThreads="75"
               enableLookups="false"
               redirectPort="8443"
               acceptCount="100"
               debug="9"
               connectionTimeout="20000" 
               disableUploadTimeout="true" />
 
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost" debug="9">

      <!-- The request dumper valve dumps useful debugging information 
abou
      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log."
              suffix=".txt"
              timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared globally 
-->

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             debug="0"
             resourceName="UserDatabase"/>

      <Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
 
        <Logger className="org.apache.catalina.logger.FileLogger"
                directory="logs"
                prefix="localhost_log."
                suffix=".txt"
                timestamp="true"/>

      </Host>    </Engine>  </Service></Server>







Thanx for any help, links etc...

Best regards

Reply via email to