Previous Next

Thread: vista iis7 configured with tomcat 6.0

Last post 09-09-2008 3:33 AM by bistvan. 29 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (30 items) < Previous 1 2

Sort Posts:

  • 07-30-2008, 10:15 AM In reply to

    Re: vista iis7 configured with tomcat 6.0

    Would you please post the vb code for the IIS7 integration?  I've also run into some issues here.

    Thanks,
    -Matt

  • 08-01-2008, 9:37 AM In reply to

    Re: vista iis7 configured with tomcat 6.0

    Hi dudes! About troubles in tomcat 6 configuration, I have installed Tomcat 6 and IIS 5 and works fine. But now, with IIS 7, I have no idea on what is going wrong. I made the same steps than before... How can I change the files 'workers.properties', 'uriworkermap.properties', 'isapi_redirect.dll', 'isapi.properties' to make this stuff work??? Where in the IIS 7 can I make changes??? Thanks a lot!   

  • 08-06-2008, 11:04 AM In reply to

    Re: vista iis7 configured with tomcat 6.0

    Without further information it is hard to help troubleshoot your problem. Are there any issues being logged in the event viewer? Anything being logged in your isapi_redirect log? Does IIS actually start with the filters configured? Are Tomcat and IIS talking?

    There really isn't anything different between IIS6 and IIS7 configuration. It is simply a matter of finding where to add the features that are necessary in IIS6 to the IIS7 configuration. For example, where do I allow the jakarta filter to run the .dll (ISAPI and CGI Restrictions). The only item of exception to this (from what I've foudn) is the need to enable the handler mapping at the jakarta application level. In any case, if you look at the isapi_install.vbs script provided by Tomcat (mod_jk source I think; /connectors/iis/scripts/isapi_install.vbs) and step through it you can see exactly what the configuration does for IIS6. Simply manually doing these steps for IIS7 (and then enabling the handler mappings) will result in a working IIS7/Tomcat configuration.

    Your mapping and Tomcat configuration files shouldn't necessarily need to be changed for IIs7/Tomcat 6. If the install location of Tomcat didn't change, the communication ports didn't change the URIs to be mapped are the same then you shouldn't need to edit the workers.properties, uriworkermap.properties files.

    From my experiences the issue is generally that handler mappings aren't enabled for most people. You need to enable the ISAPI-dll handler mapping for the jakarta application for file mapping and execute access.

    Other trouble spots for people tend to be that they don't have the jakarta ISAPI and CGI Restriction (at the top machine tree node) enabled and pointing to their isapi_redirect.dll file.

    You still need to do the registry entries as well. If these are preexisting from your IIS5/6 configuration than they should also work for IIS7 without needing any changes (provided the paths in the entries are still correct).

  • 08-30-2008, 11:43 AM In reply to

    Re: vista iis7 configured with tomcat 6.0

     I've been having quite a time trying to get Tomcat 6 installed on my Vista IIS 7.0.  Could you post the install_isapi_iis7.vbs script?  I tried to run the isapi_install.vbs script from the however, I'm getting an error on line 67, char 1, error: Invalid Syntax, code: 800401E4, source: (null).  Here's the line from the script:

     set service = GetObject("IIS://LocalHost/W3SVC" )

     I was hoping to get the updated isapi_iis7.vbs script or help getting the current isapi_install.vbs script working.

     Any ideas that I could try?

  • 09-02-2008, 11:30 AM In reply to

    Re: vista iis7 configured with tomcat 6.0

    Without going into much detail IIS7 was changed internally quite a bit and therefore that line you referenced will error. It is using IIS6 APIs, therefore an error. You would either need to change the .vbs script to use IIS7 APIs or use the appcmd.exe tool (which I believe is just a wrapper tool around IIS7 API calls).

    The likely easiest solution to your problem is to enable the IIS6 compatability role in your server manager for IIS7. After this is installed (might require a reboot, I can't remember off-hand), run the isapi_install.vbs script again. It should work this time and the compatability role will map everything to IIS7's .xml files appropriately (as well as the registry). Test the IIS7/Tomcat interaction, it should work. If it does, you can safely remove/uninstall the compatability role you previously enabled and IIS7/Tomcat should continue to work.

    Dan

  • 09-02-2008, 10:20 PM In reply to

    Re: vista iis7 configured with tomcat 6.0

     I put IIS 7.0 into compatibility mode and ran the script.  The script ran successfully, but I'm still the same error message:

     

     

    HTTP Error 500.0 - Internal Server Error

    Calling LoadLibraryEx on ISAPI filter "C:\tomcat\bin\isapi_redirect.dll" failed

     

    Module IIS Web Core
    Notification Unknown
    Handler StaticFile
    Error Code 0x80070005
    Requested URL http://localhost:80/
    Physical Path C:\inetpub\wwwroot
    Logon Method Not yet determined
    Logon User Not yet determined
     
    Any help would be greatly appreciated as I'm about to pull out the duct tape to keep my head from exploding :)
  • 09-03-2008, 2:15 AM In reply to

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

    Re: vista iis7 configured with tomcat 6.0

    That error code is access-denied - have you given the IIS_IUSRS group read/execute access to c:\tomcat\bin\isapi_redirect.dll ?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 09-03-2008, 5:30 AM In reply to

    • bistvan
    • Not Ranked
    • Joined on 09-03-2008, 5:24 AM
    • Posts 2

    Re: vista iis7 configured with tomcat 6.0

     Hi,

    I'm triing to install Win2008/IIS7 with tomcat 6.
    Yesterday I started with Intel 64Bit + Win2008 server 64Bit + isapi_redirect.dll 64bit version. Failed with error: 

    Description: Calling LoadLibraryEx on ISAPI filter "C:\tomcat\isapi_redirect.dll" failed

    Error Code: 0x800700c1

    Then today we reinstalled the server with win 2008 Server 32bit.

    Now I get the following error:

    Calling GetFilterVersion on ISAPI filter "D:\Web\Redirect\isapi_redirect.dll" failed

    Module IIS Web Core
    Notification Unknown
    Handler StaticFile
    Error Code 0x80070002

     In the eventlog I see: The HTTP Filter DLL D:\Web\Redirect\isapi_redirect.dll failed to load.  The data is the error.

    Please help me, it is very important

    best regards
    Bardocz


  • 09-03-2008, 9:41 AM In reply to

    Re: vista iis7 configured with tomcat 6.0

    scparker62,

    That's a common error from my experiences at least. The following might help you debug it.

    In your IIS Manager's top most level node (machine level), review your ISAPI & CGI Restrictions settings. I assume that those settings are available, if they are not, then you need to install that role service in your web servers roles in your Server Manager (this is straightforward enough). When you double click the restrictions settings do you see an entry such as:

    jakarta     Allowed    <path_to_the_isapi_redirect.dll>

    I'm guessing you are missing this piece as the old redirector doesn't add this configuration to IIS7 (as it wasn't part of IIS6 configuration and therefore doesn't get mapped accordingly) if I remember correctly. Also, jakarta is a default value set inside the install_isapi.vbs script, if you changed that value you will want to ensure jakarta is changed to match whatever you used. 

    If that setting is there check your website level tree node where you installed the jakarta application (either "Default Web site" or whatever you chose when running the script). Review the Isapi Filters and ensure you see an entry similar to:

    jakarta      <path_to_the_isapi_redirect.dll>    Local (or Inherited, but preferrably local)

    I'm going to assume this exists (install_isapi.vbs should add this) but thought I'd check.

    Underneath your "Web Site" ensure that the "jakarta" (or whatever if you changed it) application exists. Review the Handler Mappings settings and look for a setting similar to the following:

    ISAPI-dll     *.dll     Enabled     File     IsapiModule     Local (or Inherited)

    It is quite possible that this is disabled. The install_isapi.vbs script seems to disable this sometimes if run multiple times for whatever reason. If it is, enable it. You might also want to ensure that this setting has script and execute permissions.

    Lastly, ensure that you did not make a typo to any path when running the install_isapi.vbs script (yes, it does happen). You can review the registry settings that the script writes to check this. Run your regedit, and go to HKEY_LOCAL_MACHINE -> Software -> Apache Software Foundation -> Jakarta Isapi Redirector -> 1.0. Ensure the paths to the worker_file and worker_mount_file is correct.

    If you change anything given the above information, restart IIS/Tomcat and retest.

    Dan Stusynski

  • 09-03-2008, 12:54 PM In reply to

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

    Re: vista iis7 configured with tomcat 6.0

    The first error is because you have mismatched 32/64 bit binaries not matching the bitness of the IIS worker process - the second error seems to be because the dll in question is not an ISAPI filter, but may possibly be an ISAPI extension - you may need to add it to the ISAPI/CGI restriction list but may have added it incorrectly to the ISAPI filters list.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 09-03-2008, 10:09 PM In reply to

    Re: vista iis7 configured with tomcat 6.0

    First I want to thank everyone for their assistance.  It's is nice to know there is someplace I can go where there is a lot of people willing to help out. 

    It all looked ok until I got to this step:

    Underneath your "Web Site" ensure that the "jakarta" (or whatever if you changed it) application exists. Review the Handler Mappings settings and look for a setting similar to the following:

    ISAPI-dll     *.dll     Enabled     File     IsapiModule     Local (or Inherited)

    This entry does not appear in my Handler Mappings setting under "jakarta".  Do I add this myself, did I install something incorrectly, not selected the appropriate settings...?

    Two questions. 1) Under "Default Web Site", do I create "jakarta" as an application or a virtual directory?  I've seen another post that instructs to create "jakarta" as a virtual director, but your instructions indicate that it's an application?  Should it be a virtual directory or an application and what is the difference between the two?

    2) You wouldn't by chance how the install script for IIS 7.0 would you?  If so, would that help me out?

    Thanks again for all of your help.

     

  • 09-03-2008, 10:11 PM In reply to

    Re: vista iis7 configured with tomcat 6.0

    Thanks for the reply. Sorry, I'm a IIS newbie.  Where do I check for this?

  • 09-04-2008, 9:12 AM In reply to

    Re: vista iis7 configured with tomcat 6.0

    Go ahead and add the Handler Mapping entry yourself.

    Create a virtual directory, my mistake.

    I do, unfortunately, as noted above, I've made numerous changes to integrate it more thoroughly into our software, therefore at this point, the script would simply appear to be broke to anyone not configuring IIS for use with our software.

     Dan

  • 09-04-2008, 11:07 PM In reply to

    Re: vista iis7 configured with tomcat 6.0

    Here's what I ended up doing. 

    I removed everything and started from scratch.  Verified that http://localhost was working. 

    Added "jakarta" to ISAPI and CGI Restrictions.  Restarted IIS. Made sure http://localhost worked. Created "jakarta" virtual directory under Default Web Site.  Restarted IIS. Made sure that http://localhost worked.

    Under jakarta, added ISAPI-dll to "Handler Mappings".  Restarted IIS. Made sure that http://localhost worked. 

    Under Default Web Site, added "jkfilter" with c:\tomcat\bin\isapi_redirect.dll to ISAPI Filters. Restarted IIS. Failure with http://localhost. 

    HTTP Error 500.0 - Internal Server Error

    Calling LoadLibraryEx on ISAPI filter "C:\tomcat\bin\isapi_redirect.dll" failed

    ModuleIIS Web Core
    NotificationUnknown
    HandlerStaticFile
    Error Code0x80070005
    Requested URLhttp://localhost:80/
    Physical PathC:\inetpub\wwwroot
    Logon MethodNot yet determined
    Logon UserNot yet determined

    Removed jkfilter from ISAPI Filters.  Restarted IIS.  http://localhost worked.

    Just for grins, I tried to see if Tomcat by was working with http://localhost/examples (virtual directory pointing to c:\tomcat\webapps\examples).  No good.  Here's the error message:

     HTTP Error 404.3 - Not Found

    The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

     

    ModuleStaticFileModule
    NotificationExecuteRequestHandler
    HandlerStaticFile
    Error Code0x80070032
    Requested URLhttp://localhost:80/examples/jsp/jsp2/el/basic-arithmetic.jsp
    Physical PathC:\tomcat\webapps\examples\jsp\jsp2\el\basic-arithmetic.jsp
    Logon MethodAnonymous
    Logon UserAnonymous

    Looks like I need that ISAPI Filter...right? Am I using a bad isapi_redirect.dll? I downloaded it from Apache.org.  If that's possible, could you send me one that you have working?

    I do appreciate your assistance and patience while I try to get this working.

     

  • 09-09-2008, 3:33 AM In reply to

    • bistvan
    • Not Ranked
    • Joined on 09-03-2008, 5:24 AM
    • Posts 2

    Re: vista iis7 configured with tomcat 6.0

    Hi,

    thanks for reply. (now I have returned to work :)

    I triing to make functionable this configuration on 32 bit version. (the processor is Intel64 Xeon, but the OS is WIN2008 32 bit - because the first error code: 0x800700c1)

    I have checked:

    • ISAPI and CGI restrictions: there is registered the Win/32 bit version of isapi_redirect.dll downloaded from here: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.26/
    • on Default Web Site / ISAPI Filters is registered the dll
    • jakarta virtual directory is created under Default Web Site and the Handler Mappings the ISAPI-dll is enabled
    • the isapi_redirect.properties is at the same folder with isapi_redirect.dll

    isapi_redirect.properties
    extension_uri=/jakarta/isapi_redirect.dll
    log_file=d:\Web\Redirect\isapi_redirect.log
    log_level=debug
    worker_file=d:\Web\Redirect\workers.properties
    worker_mount_file=d:\Web\Redirect\uriworkermap.properties

    The error:

    HTTP Error 500.0 - Internal Server Error
    Calling GetFilterVersion on ISAPI filter "D:\Web\Redirect\isapi_redirect.dll" failed

    Module IIS Web Core
    Notification Unknown
    Handler StaticFile
    Error Code 0x80070002
    Requested URL http://localhost:80/
    Physical Path C:\inetpub\wwwroot
    Logon Method Not yet determined
    Logon User Not yet determined
     

    I don't know what should I do
    please help me

    thanks
    Bardocz

Page 2 of 2 (30 items) < Previous 1 2
Page view counter