Mantis - Resin
Viewing Issue Advanced Details
4348 minor always 01-18-11 11:12 01-18-11 16:50
reza  
ferg  
normal  
closed 4.0.14  
fixed  
none    
none 4.0.15  
0004348: Setting Context Root to / Does Not Work
Setting web-application context-root to "/" results in a 404. The following application.xml and resin.xml files demonstrate the problem:

================================================================================
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^] xmlns="http://java.sun.com/xml/ns/javaee" [^] xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" [^] xsi:schemaLocation="http://java.sun.com/xml/ns/javaee [^] http://java.sun.com/xml/ns/javaee/application_5.xsd" [^] version="5">
  <module>
    <web>
      <web-uri>test-web.war</web-uri>
      <context-root>/</context-root>
    </web>
  </module>
</application>
================================================================================

================================================================================
<resin xmlns="http://caucho.com/ns/resin" [^] xmlns:resin="urn:java:com.caucho.resin">
  <cluster-default>
    <resin:import path="${__DIR__}/app-default.xml" />
  </cluster-default>
  <cluster id="">
    <server id="">
      <http address="*" port="8080" />
    </server>
    <host id="" root-directory=".">
      <ear-deploy path="deploy">
        <ear-default />
      </ear-deploy>
    </host>
  </cluster>
</resin>
================================================================================

This bug was reported by koge_pan: http://forum.caucho.com/showthread.php?t=27214. [^]

Notes
(0004960)
ferg   
01-18-11 16:50   
server/2a40