7 Replies Latest reply on Nov 24, 2010 11:51 AM by abhishek20c

    IIS redirects to JBoss

    huaywen

      Hi,

      I am using JBoss 4.0.1 SP1 with IIS 6 (Windows 2003).

      These are the steps which work on a single box (for redirecting from http://localhost/myapp01 to http://localhost:8080/myapp01) after the research on the web, I am trying to have JBoss and IIS installed on 2 different boxes, what changes should I make?

      Thanks in advanced!

      ++++++++++++++++++++++++++++++++++++++++++++++++++

      How to Configure IIS (6.0) with Jboss (4.0.1 SP1)

      1.Copy isapi_redirector2.dll into c:\jboss-4.0.1sp1\bin

      2.Create worker2.properties file and place into c:\jboss-4.0.1sp1\server\default\conf

      worker2.properties:

      ===========================================================

      [shm:]
      file=C:/jboss-4.0.1sp1/server/default/log/jk2.log
      size=1048576

      [channel.socket:localhost:8009]
      info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
      tomcatId=localhost:8009

      [uri:/myapp01/*]
      info=JSP examples, map requests for all JSP pages to Tomcat.
      context=/myapp01

      [uri:/Workplace/*]
      info=JSP examples, map requests for all JSP pages to Tomcat.
      context=/Workplace

      ===========================================================

      3.Create isapi_redirector2.reg and merge it into system registry (right-click isapi_redirector2.reg > Merge)

      isapi_redirector2.reg:

      ===========================================================

      Windows Registry Editor Version 5.00

      [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0]
      "workersFile"="C:\\jboss-4.0.1sp1\\server\\default\\conf\\workers2.properties"
      "extensionUri"="/jakarta/isapi_redirector2.dll"
      "logLevel"="debug"
      "serverRoot"="c:\\jboss-4.0.1sp1\\"

      ============================================================

      ** this file can be deleted once merging is completed


      4.Add an environment variable to the server (CATALINA_HOME = c:\jboss-4.0.1sp1)

      5.Switch IIS 6 into IIS 5 isolation mode:
      i.Open IIS Managerm choose the Web Site container
      ii.Right-click and choose Properties, then select Service tab
      iii.Check the following items:
      Run WWW service in IIS 5.0 isolated mode
      Compress static files
      Maximum temporary directory size > Unlimited

      6.Install the ISAPI filter DLL
      i.Select ISAPI Filter tab (in Web Sites Properties window)
      ii.Press Add... button and type a name for the new filter (eg. Jboss Connector)
      iii.Click Browse... and locate isapi_redirector2.dll in c:\jboss-4.0.1sp1\bin
      iv.Press OK and restart the IIS (Right-click the server > All tasks > Restart IIS...)

      7.Create a virtual directory for the ISAPI filter DLL
      i.Select the web site that Jboss services are needed, right-click and choose New,then choose Virtual Directory...
      ii.Create a new Virtual Directory named jakarta. It is important to use this exact case and spelling
      iii.Enter the path to the directory where isapi_redirector2.dll is stored (c:\jboss-4.0.1sp1\bin)
      iv.Enable Execute permission in Directory Access Permission Page

      8.Authorise the DLL as a web application
      i.Select Web Service Extensions in the IIS Console Server Tree
      ii.Add a new extension called Jakarta-JBoss, add isapi_redirector2.dll to the list of required files, and select Set extension status to Allowed
      iii.Press the OK button


      9.Restart IIS services

        • 1. Re: IIS redirects to JBoss
          • 2. Re: IIS redirects to JBoss
            huaywen

            Hi,

            Thanks for the link. I've followed the steps and done the neccessary settings, but it doesn't work.

            Maybe I did it wrongly.

            I have JBoss on Server1, IIS on Server2. I installed and configured the Redirector into Server2. What I get is Page cannot be found error.

            Thanks for helping.

            • 3. Re: IIS redirects to JBoss

              Can anyone confirm a working example and steps he took to get IIS 6 to serve pages from JBOSS 4.2.1

              • 4. Re: IIS redirects to JBoss
                joanesilviya

                Hello huaywen:

                I followed the same link and even i could not accomplish it successfully.
                If you have solved the problem , please help me out in carrying the steps for redirecting the IIS with Jboss. My IIS Sever ans Jboss 4.2.0 are in the same machine. But the
                url i want to be directed is other server.

                It would very helpful , if you can respond me.

                Thanks in advance
                silviya


                "huaywen" wrote:
                Hi,

                Thanks for the link. I've followed the steps and done the neccessary settings, but it doesn't work.

                Maybe I did it wrongly.

                I have JBoss on Server1, IIS on Server2. I installed and configured the Redirector into Server2. What I get is Page cannot be found error.

                Thanks for helping.


                • 5. Steps that are need to integrate / configure IIS6.0 and jbos

                  Can any one list down the steps that are need to integrate / configure IIS6.0 and jboss-4.0.3SP1

                  • 6. Re: IIS redirects to JBoss

                    Hi ,

                    I am a not test my application Still Now

                    I am using JBoss 4.0.1 SP1 with IIS 6 (Windows 2003)
                    can any one provide me the exact steps


                    below is the isapi_redirect.log

                    [Thu Apr 09 18:31:27 2009] [6132:3648] [debug] init_jk::jk_isapi_plugin.c (1109): Using worker file E:\jboss-4.0.3SP1\server\default\conf\workers.properties.
                    [Thu Apr 09 18:31:27 2009] [6132:3648] [debug] init_jk::jk_isapi_plugin.c (1110): Using worker mount file E:\jboss-4.0.3SP1\server\default\conf\uriworkermap.properties.
                    [Thu Apr 09 18:31:27 2009] [6132:3648] [debug] init_jk::jk_isapi_plugin.c (1112): Using uri select 0.
                    [Thu Apr 09 18:35:10 2009] [4656:4912] [debug] jk_shm_open::jk_shm.c (91): Initialized shared memory size=66560 free=65536 addr=0x27f0048
                    [Thu Apr 09 18:35:10 2009] [4656:4912] [debug] init_jk::jk_isapi_plugin.c (1103): Using registry.
                    [Thu Apr 09 18:35:10 2009] [4656:4912] [debug] init_jk::jk_isapi_plugin.c (1106): Using log file E:\jboss-4.0.3SP1\server\default\conf\isapi_redirect.log.
                    [Thu Apr 09 18:35:10 2009] [4656:4912] [debug] init_jk::jk_isapi_plugin.c (1107): Using log level 1.
                    [Thu Apr 09 18:35:10 2009] [4656:4912] [debug] init_jk::jk_isapi_plugin.c (1108): Using extension uri /jakarta/isapi_redirect.dll.
                    [Thu Apr 09 18:35:10 2009] [4656:4912] [debug] init_jk::jk_isapi_plugin.c (1109): Using worker file E:\jboss-4.0.3SP1\server\default\conf\workers.properties.
                    [Thu Apr 09 18:35:10 2009] [4656:4912] [debug] init_jk::jk_isapi_plugin.c (1110): Using worker mount file E:\jboss-4.0.3SP1\server\default\conf\uriworkermap.properties.
                    [Thu Apr 09 18:35:10 2009] [4656:4912] [debug] init_jk::jk_isapi_plugin.c (1112): Using uri select 0.

                    • 7. Re: Steps that are need to integrate / configure IIS6.0 and jbos
                      abhishek20c

                      I have configure my jboss app to work with iis , but when I am accessing the iis app through jboss I am not able to see the static content i.e images on the browser. What configuration is required to make the static content available.