<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Help!!! ON Jboss and IIS 6 ISAPI
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/vtech005">Victor Usamah</a> in <i>JBoss Remoting Development</i> - <a href="http://community.jboss.org/message/585427#585427">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Please i need a huge favour from any Jboss IIS User and idea that could help will be appreciated cos...i have been trying to redirect request from IIS to an EAR (homepage.ear) file delpoyed in Jboss-5.1.0.GA in the deploy folder. And i have been on this for months and all efforts have be notting ur contribution is required Thanks.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span> I can not access my application via this url </span><a class="jive-link-external-small" href="http://192.168.1.5/homepage" target="_blank">http://192.168.1.5/homepage</a><span> but i can access it via </span><a class="jive-link-external-small" href="http://192.168.1.5:8080/homepage" target="_blank">http://192.168.1.5:8080/homepage</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>i what to resolve the port 8080</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>i have congifured the followings WITH THIS TOOL:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1 Web Server – IIS version: 6</p><p>2 Application Server – JBoss-5.1.0.GA</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>3 Java Development Kit – J2SE Development Kit 5.0 Update 7</p><p>4 ISAPI Redirector 1.2.30.DLL</p><p>5 Operating System – Windows Server 2003 with SP2:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Ear file in this path C:\jboss-5.1.0.GA\server\ default\deploy</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Installed isapi_redirect-1.2.14.exe in this path C:\Jakarta Isapi Redirector\jboss_tomcat    and it created a Registry on my PC as shown below</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Key Name:          HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0</p><p>Class Name:        <NO CLASS></p><p>Last Write Time:   2/3/2011 - 2:32 PM</p><p>Value 0</p><p>  Name:            <NO NAME></p><p>  Type:            REG_SZ</p><p>  Data:           </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Value 1</p><p>  Name:            extension_uri</p><p>  Type:            REG_SZ</p><p>  Data:            /jakarta/isapi_redirect.dll</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Value 2</p><p>  Name:            log_file</p><p>  Type:            REG_SZ</p><p>  Data:            C:\Jakarta Isapi Redirector\jboss_tomcat\log\isapi_redirect.log</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Value 3</p><p>  Name:            log_level</p><p>  Type:            REG_SZ</p><p>  Data:            info</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Value 4</p><p>  Name:            worker_file</p><p>  Type:            REG_SZ</p><p>  Data:            C:\Jakarta Isapi Redirector\jboss_tomcat\conf\workers.properties.minimal</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Value 5</p><p>  Name:            worker_mount_file</p><p>  Type:            REG_SZ</p><p>  Data:            C:\Jakarta Isapi Redirector\jboss_tomcat\conf\uriworkermap.properties</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I downloaded isapi_redirect-1.2.30.dll    renamed it to isapi_redirect.dll and replaced the on in my bin folder</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>C:\Jakarta Isapi Redirector\jboss_tomcat\bin</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I modify workers.properties.minimal to workers.properties and droped my workers.properties file in the config</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>C:\Jakarta Isapi Redirector\jboss_tomcat\conf</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>WORKER.PROPERTIES configuration as follows:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p># workers.properties.minimal -</p><p>#</p><p># This file provides minimal jk configuration properties needed to</p><p># connect to Tomcat.</p><p>#</p><p># The workers that jk should create and work with</p><p>#</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>worker.list=wlb,jkstatus</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>#</p><p># Defining a worker named ajp13w and of type ajp13</p><p># Note that the name and the type do not have to match.</p><p># Define node1</p><p>worker.list=node1</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>worker.node1.port=8009</p><p>worker.node1.host=192.168.1.5</p><p>worker.node1.type=ajp13</p><p>worker.node1.ping_mode=A</p><p>worker.node1.lbfactor=50</p><p>worker.node1.cachesize=10</p><p>worker.node1.cache_timeout=600</p><p>worker.node1.socket_keepalive=1</p><p>worker.node1.reclycle_timeout=300</p><p>#worker.ajp13w.type=ajp13</p><p>#worker.ajp13w.host=localhost</p><p>#worker.ajp13w.port=8009</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>#</p><p># Defining a load balancer</p><p>worker.list=loadbalancer,status</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p># Defining a template worker to be used</p><p>worker.template.port=8009</p><p>worker.template.type=ajp13</p><p>worker.template.ping_mode=A</p><p>worker.template.socket_timeout=10</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p># Define Node1</p><p># modify the host as your host IP or DNS name.</p><p>worker.node1.reference=worker.template</p><p>worker.node1.host=192.168.1.5</p><p>worker.node1.type=ajp13</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p># </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p># Load-balancing worker</p><p>worker.loadbalancer.type=lb</p><p>worker.loadbalancer.balance_workers=node1</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>#</p><p># Define status worker</p><p>#</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>worker.jkstatus.type=status</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>URIWORKER CONFIGURED AS FOLLOWS:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p># uriworkermap.properties - IIS</p><p>#</p><p># This file provides sample mappings for example wlb</p><p># worker defined in workermap.properties.minimal</p><p># The general syntax for this file is:</p><p># [URL]=[Worker name]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>/admin/*=wlb</p><p>/manager/*=wlb</p><p>/jsp-examples/*=wlb</p><p>/servlets-examples/*=wlb</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>#send all /homepage requests to node1</p><p>/homepage/*=node1</p><p>/homepage/*jsp=node1</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p># Optionally filter out all .jpeg files inside that context</p><p># For no mapping the url has to start with exclamation <span> (!) </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>!/servlets-examples/*.jpeg=wlb</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>#</p><p># Mount jkstatus to /jkmanager</p><p># For production servers you will need to</p><p># secure the access to the /jkmanager url</p><p>#</p><p>/jkmanager=jkstatus</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>CONFIGURED IIS 6 AND isapi_redirect.dll AS FOLLOWS</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Open IIS Manager  navigate to (local computer)  >>> Web Sites>>>> right click on “Default Web Site” click on properties,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>from the properties windows click on “ISAPI filters” tab click “Add” give filter name as “jakarta” (exact spelling & case required), </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>add Executable path as</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>C:\Jakarta Isapi Redirector\jboss_tomcat\bin\isapi_redirect.dll” apply the changes and clicked ok.  </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I right click on the “Default Web Site” and create a “virtual directory” named “jakarta” (exact spelling & case) and set the path to</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>C:\Jakarta Isapi Redirector\jboss_tomcat\bin\isapi_redirect.dll </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Gave Read, Run Scripts and Execute permissions during the creation of virtual directory “jakarta” </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Then navigate to Web Service Extensions from IIS Manager and right click on the right pane of the IIS Manager and  </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>click “Add a new Web service extension…” and create the extension named “jakarta” (exact spelling & case) with “Required Files” path to </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>C:\Jakarta Isapi Redirector\jboss_tomcat\bin\isapi_redirect.dll” and set the extension statusto “Allowed”. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I Copied my ear into this path “C:\Inetpub\wwwroot”  </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>or sometime i set the default directry from IIS to the path where my EAR file is deployed </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>C:\jboss-5.1.0.GA\server\ default\deploy</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>And restart all services including my pc</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Issues:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>ISAPI does not generated logfile in the log directory so i can trace my error</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>some times the ISAPI do not show green arrow upward and if it shows it does not display it's priority whether high or low </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>some times if the ISAPI priority is high and i try to access this url </span><a class="jive-link-external-small" href="http://192.168.1.5/homepage" target="_blank">http://192.168.1.5/homepage</a><span>  is dose not display it show error 404</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>but i can always access </span><a class="jive-link-external-small" href="http://192.168.1.5:8080/homepage" target="_blank">http://192.168.1.5:8080/homepage</a><span>  i need to resolve the port...</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Question:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Please is the any configuration and missing out or doing wrong.... </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Do i need to do any settings in JBOSS Config files or service xml do need to add or remove pls advice </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>i appreciate your great help hope to get a feedback soon</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p> thank</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/585427#585427">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Remoting Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2051">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>