You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sng Wee Jim <We...@capco.com> on 2005/04/04 16:14:25 UTC

RE: ==> Isapi redirector Installation problem betweeen IIs and Tomcat

JK2 is officially unsupported. Use JK 1.2 instead
http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041
115.1


[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0] "serverRoot"="C:\\Tomcat5\\"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="C:\\Tomcat5\\conf\\workers2.properties"
"logLevel"="DEBUG"


Is your virtual directory "jakarta" mapped to
"c:\Tomcat5\bin\win32\i386" (the place where you copied
"isapi_redirector2.dll")?

- Jim


-----Original Message-----
From: samuel.goblet@cigma.asso.fr [mailto:samuel.goblet@cigma.asso.fr]
Sent: Monday, April 04, 2005 8:48 PM
To: tomcat-user@jakarta.apache.org
Subject: ==> Isapi redirector Installation problem betweeen IIs and
Tomcat

Hi,

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

When I make a request to IIS for JSP file, I've got an error message and

in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc
[/admin/index.jsp] is not a servlet url

**************************************************************
The complete description follow from the windows log
And my installation process :
**************************************************************
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing to
the web-inf directory
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:
HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:
HttpFilterProc started
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] is

pointing to the web-inf directory
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]:
HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a
servlet
url - should redirect to lb
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf
directory
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:
HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:
HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf
directory
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:
HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta
Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:
HttpFilterProc started




*** 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 : JK2

*** 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-examplessample, works good
**************************************************************
* ==> 2 - 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>
**************************************************************
*  ==> 3 - Installing the Isapi filter :
**************************************************************
I copy the file in ht directory :
c:\Tomcat5\bin\win32\i386\isapi_redirector2.dll

where CATALINA_HOME = c:\Tomcat5
**************************************************************
*  ==> 4 - Uddating the windows registry for ISAPI filter :
**************************************************************
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
"serverRoot"="C:\\Tomcat5\\"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="C:\\Tomcat5\\conf\\workers2.properties"
"logLevel"="DEBUG"

**************************************************************
* ==> 5 - Configuring Tomcat Workers (Workers2.properties file)
**************************************************************
# Setup the windows application logging for the ISAPI filter
[logger.win32]
level=DEBUG

# Defines a load balancer named lb. Use even if you only have one
machine.
[lb:lb]

# communication channel settings
[channel.socket:localhost:8009]
host=localhost
port=8009

# SHared Memory file settings
[shm]
file=C:/Tomcat5/conf/jk2.shm
size=1000000

# Declare a Tomcat worker and assign it the above declared communication

channel.
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# URI mappings for jsp-examples web application context
# Requests for any web component(indicated by the wild card *) are
dispatched to
# Tomcat.
[uri:/jsp-examples/*]
info= Mapping for jsp-examples context of tomcat
group=lb

**************************************************************
* ==> 6 - configuring the jk2.properties
**************************************************************

channelSocket.address=localhost
channelSocket.port=8009
shm.file=C:/Tomcat5/conf/jk2.shm

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

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









Thanx for any help, links etc...

Best regards


************************************************************************
The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/

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

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


RE: ==> Isapi redirector Installation problem betweeen IIs and Tomcat

Posted by sa...@cigma.asso.fr.
Ok, sorry for the disturbation.

I'll going to test it with the JK 1.2.

Best regards.




"Sng Wee Jim" <We...@capco.com> 
04/04/2005 16:14
Veuillez répondre à
"Tomcat Users List" <to...@jakarta.apache.org>


A
<sa...@cigma.asso.fr>, <to...@jakarta.apache.org>
cc

Objet
RE: ==> Isapi redirector Installation problem betweeen IIs and  Tomcat







JK2 is officially unsupported. Use JK 1.2 instead
http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041
115.1


[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0] "serverRoot"="C:\\Tomcat5\\"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="C:\\Tomcat5\\conf\\workers2.properties"
"logLevel"="DEBUG"


Is your virtual directory "jakarta" mapped to
"c:\Tomcat5\bin\win32\i386" (the place where you copied
"isapi_redirector2.dll")?

- Jim


-----Original Message-----
From: samuel.goblet@cigma.asso.fr [mailto:samuel.goblet@cigma.asso.fr]

Sent: Monday, April 04, 2005 8:48 PM
To: tomcat-user@jakarta.apache.org
Subject: ==> Isapi redirector Installation problem betweeen IIs and
Tomcat

Hi,

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

When I make a request to IIS for JSP file, I've got an error message and

in the event log : [jk_isapi_plugin.c (420)]: HttpFilterProc

[/admin/index.jsp] is not a servlet url

**************************************************************
The complete description follow from the windows log
And my installation process :
**************************************************************
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:

HttpFilterProc check if [/Jakarta/isapi_redirector2.dll] is pointing to

the web-inf directory
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:

HttpFilterProc [/Jakarta/isapi_redirector2.dll] is not a servlet url
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:

HttpFilterProc started
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:

HttpFilterProc check if [/jsp-examples/jsp2/el/basic-comparisons.jsp] is

pointing to the web-inf directory
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (340)]:

HttpFilterProc [/jsp-examples/jsp2/el/basic-comparisons.jsp] is a
servlet

url - should redirect to lb
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:18:03,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:

HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:

HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf

directory
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:

HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:

HttpFilterProc started
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (429)]:

HttpFilterProc check if [/admin/index.jsp] is pointing to the web-inf

directory
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (420)]:

HttpFilterProc [/admin/index.jsp] is not a servlet url
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (308)]: In

HttpFilterProc Virtual Host redirection of s0058 : 80
04/04/2005,14:17:47,Apache Jakarta

Connector2,Aucun,Aucun,4,N/A,S0058,Debug:  [jk_isapi_plugin.c (252)]:

HttpFilterProc started




*** 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 : JK2

*** 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-examplessample, works good
**************************************************************
* ==> 2 - 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>
**************************************************************
*  ==> 3 - Installing the Isapi filter :
**************************************************************
I copy the file in ht directory :

c:\Tomcat5\bin\win32\i386\isapi_redirector2.dll

where CATALINA_HOME = c:\Tomcat5
**************************************************************
*  ==> 4 - Uddating the windows registry for ISAPI filter :
**************************************************************
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi

Redirector\2.0]
"serverRoot"="C:\\Tomcat5\\"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="C:\\Tomcat5\\conf\\workers2.properties"
"logLevel"="DEBUG"

**************************************************************
* ==> 5 - Configuring Tomcat Workers (Workers2.properties file)
**************************************************************
# Setup the windows application logging for the ISAPI filter
[logger.win32]
level=DEBUG

# Defines a load balancer named lb. Use even if you only have one
machine.
[lb:lb]

# communication channel settings
[channel.socket:localhost:8009]
host=localhost
port=8009

# SHared Memory file settings
[shm]
file=C:/Tomcat5/conf/jk2.shm
size=1000000

# Declare a Tomcat worker and assign it the above declared communication

channel.
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# URI mappings for jsp-examples web application context
# Requests for any web component(indicated by the wild card *) are

dispatched to
# Tomcat.
[uri:/jsp-examples/*]
info= Mapping for jsp-examples context of tomcat
group=lb

**************************************************************
* ==> 6 - configuring the jk2.properties
**************************************************************

channelSocket.address=localhost
channelSocket.port=8009
shm.file=C:/Tomcat5/conf/jk2.shm

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

called : "jakarta"

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









Thanx for any help, links etc...

Best regards


************************************************************************
The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email

immediately. You should not copy, use or disseminate the

information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/

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

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