« Previous Next »

Thread: IIS + Tomcat not working

Last post 10-29-2009 5:04 PM by GregorFischer. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 10-28-2009, 5:48 PM

    IIS + Tomcat not working

    Hi, I'm trying to set up IIS and Tomcat to work together.

    I read nearly every thread about it, and it's still not working !! NTFS rights are set to r/w for IUSR and IIS_USRSR in Tomcat directory as well as in the connector-DLLs place. I tried the registry-way to tell Tomcat about the Isapi-DLL as well as the isapi_redirector.properties-way (but where to place that file?).

    I'm getting an 500.0 error, code 0x80070001 from IsapiFilterModul notification AuthenticateRequest, details see below. Looks like an authenification problem, but rights are all lowered in the concerning directories. A conflict with other handlers? Just a bug in isapi_redirector.dll ?

    What's wrong? Need help!

    Here's my setup:

    uriworkermap.properties:

    /myapp=myworker
    /myapp/*=myworker

    workers.properties:

    ps=\
    worker.list=myworker
    worker.myworker.type=ajp13
    worker.myworker.host=127.0.0.1
    worker.myworker.port=800

    Registry:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0]
    "extension_uri"="/jakarta/isapi_redirect.dll"
    "log_file"="C:\\connector\\isapi_redirect.log"
    "log_level"="debug"
    "worker_file"="C:\\connector\\workers.properties"
    "worker_mount_file"="C:\\connector\\uriworkermap.properties"

     applicationHost.config

        <location path="apps">
            <system.webServer>
                <isapiFilters>
                    <filter name="jkfilter" path="C:\connector\isapi_redirect.dll" />
                </isapiFilters>
                <security>
                    <authentication>
                        <anonymousAuthentication enabled="true" />
                        <windowsAuthentication enabled="false" />
                        <basicAuthentication enabled="false" />
                    </authentication>
                </security>
                <handlers accessPolicy="Read, Execute, Script">
                    <clear />
                    <add name="ISAPI-dll" path="*.dll" verb="*" type="" modules="IsapiModule" scriptProcessor="C:\connector\isapi_redirect.dll" resourceType="File" requireAccess="Execute" allowPathInfo="true" preCondition="" responseBufferLimit="4194304" />
                    <add name="PHP_via_FastCGI" path="*.php" verb="*" type="" modules="FastCgiModule" scriptProcessor="C:\Program Files\PHP\php-cgi.exe" resourceType="Either" requireAccess="Script" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
                    <add name="CGI-exe" path="*.exe" verb="*" type="" modules="CgiModule" scriptProcessor="" resourceType="File" requireAccess="Execute" allowPathInfo="true" preCondition="" responseBufferLimit="4194304" />
                    <add name="TRACEVerbHandler" path="*" verb="TRACE" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
                    <add name="OPTIONSVerbHandler" path="*" verb="OPTIONS" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
                    <add name="StaticFile" path="*" verb="*" type="" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" scriptProcessor="" resourceType="Either" requireAccess="Read" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
                </handlers>
            </system.webServer>
        </location>

    Modul IsapiFilterModule
    Benachrichtigung AuthenticateRequest
    Handler StaticFile
    Fehlercode 0x80070001
    Angeforderte URL http://apps.myserver.local:80/
    Physikalischer Pfad C:\inetpub\apps
    Anmeldemethode Anonym
    Angemeldeter Benutzer Anonym
  • 10-28-2009, 7:24 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,402

    Re: IIS + Tomcat not working

    Tomcat guys are more familiar with such topics, and they are the best resources for such Tomcat questions.

    so please post to their forums or mailing list,

    http://tomcat.apache.org/

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-28-2009, 8:10 PM In reply to

    Re: IIS + Tomcat not working

    Thank you very much for your advice! Your college named "anilr" directly from redmond was very helpfull in other threads concerning interoperability between IIS and Tomcat. I just wanted to here something like: You did a fault configuring IIS, this couldn't work. Or, no, with IIS it's allright, must be an error configuring Tomcat or a Bug inside isapi_redirector.dll.

    Has anybody ever had IIS7 correctly working with Tomcat connector?

  • 10-28-2009, 11:21 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,402

    Re: IIS + Tomcat not working

    See if Anil can shed some light again on this thread.

    Regarding the first person who has Tomcat connector running on IIS 7 without a problem, it is most likely to be a Tomcat developer who maintains that module, isn't it? It is sad that Tomcat team only announce support for IIS 4 (astonishing words under Supported Configuration)

    http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html

    Regards,

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-29-2009, 1:59 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: IIS + Tomcat not working

    The error code above is ERROR_INVALID_FUNCTION probably being generated by the jkfilter ISAPI filter.  I would suggest using ARR instead of the tomcat redirector - I know of some people who are using it - I do not have the exact steps to set it up, but it should be as simple as setting a url-rewrite rules to forward all requests that you want tomcat to handle.  I will probably find time to set it up one of these days and blog about it.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-29-2009, 5:04 PM In reply to

    Re: IIS + Tomcat not working

     Thank you very much Anil that you try to help! I'm looking forward for your blog. Please be so kind and post the link to your blog in this thread if you have a setup for ARR.

    The problem of ERROR_INVALID_FUNCTION seems to be already reported to apache team by another guy. But for sure I reported it also. As long we don't know exactly what the problem is, and wether it a bug, and we need a fix for the DLL, or it's just a configuration problem, I would prefer also your suggested way over ARR.

    Bye for know!

Page 1 of 1 (6 items)
Microsoft Communities