You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sa...@cigma.asso.fr on 2005/04/05 15:25:04 UTC

==> Isapi redirector Installation problem betweeen IIs 6.0 and Tomcat 5.0.28 with redirector 1.2.8

Hi,

I'm looking for some help, again.... Thanx in advance.
******************************
**** 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 "the page cannot be found"...

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