Mantis - Resin
Viewing Issue Advanced Details
4304 minor always 11-22-10 17:31 01-10-11 11:33
reza  
ferg  
normal  
closed 4.0.14  
fixed  
none    
none 4.0.15  
0004304: <resin:LoadBalance> in <web-app> does not Forward Web Application Context
<resin:LoadBalance> at the <web-app> level does not forward the web application context to the cluster. As a result, all forwarded requests get resolved to the root web application.

The following configuration demonstrates the problem. Both /test1 and /test2 resolve to the web application in /.

================================================================================
<resin xmlns="http://caucho.com/ns/resin" [^]
       xmlns:resin="urn:java:com.caucho.resin">
  <log-handler name="" level="all" path="stdout:"
               timestamp="[%y-%m-%d %H:%M:%S.%s] {%{thread}} "/>

  <logger name="com.caucho" level="info"/>
  <logger name="com.caucho.java" level="config"/>
  <logger name="com.caucho.loader" level="config"/>

  <class-loader>
    <tree-loader path="${resin.root}/ext-lib"/>
  </class-loader>
  
  <dependency-check-interval>2s</dependency-check-interval>

  <system-property mail.smtp.host="127.0.0.1"/>
  <system-property mail.smtp.port="25"/>

  <cluster-default>
    <resin:import path="${__DIR__}/app-default.xml"/>

    <host-default>
      <access-log path="log/access.log"
                format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
                rollover-period="1W"/>
      <web-app-deploy path="webapps" versioning="true"/>
    </host-default>
  </cluster-default>

  <cluster id="app-tier">
    <root-directory>.</root-directory>

    <server id="app-server" address="localhost" port="6800"/>
        
    <host id="" root-directory="c:/temp/qa">
      <web-app id="/" document-directory="ROOT"/>
      <web-app id="/test1" document-directory="test1"/>
      <web-app id="/test2" document-directory="test2"/>
    </host>
  </cluster>
  
  <cluster id="web-tier">
    <server id="web-server" address="localhost" port="6802">
      <http port="80"/>
    </server>
    
    <host id="">
      <web-app id="/">
        <resin:LoadBalance cluster="app-tier"/>
      </web-app>
      <web-app id="/test1">
        <resin:LoadBalance cluster="app-tier"/>
      </web-app>
      <web-app id="/test2">
        <resin:LoadBalance cluster="app-tier"/>
      </web-app>
    </host>
  </cluster>
</resin>
================================================================================

This issue was reported by KennethYeung@infoimageinc.com.

Notes
(0004895)
ferg   
01-10-11 11:33   
server/1kw2