Mantis - Resin
Viewing Issue Advanced Details
189 minor always 05-18-05 00:00 11-30-05 14:44
user160  
 
normal  
closed 3.0.13  
3.0.13 fixed  
none    
none 3.0.14  
0000189: problem with <rewrite-dispatch>
RSN-189
I want to use <rewrite-dispatch> for forwarding requests.
( http://www.caucho.com/resin-3.0/features/resin-3.0.13.xtp#forward-target-in-rewrite [^] )

But when I added the folowing to web.xml, got error.
================================================
 <rewrite-dispatch>
    <forward regexp='^/foo' target='/bar'/>
 </rewrite-dispatch>
================================================
The error is :

+++++++++++++++++++++++++++++++++++++++++++++++++
com.caucho.config.LineConfigException: WEB-INF/web.xml:12: <rewrite-dispatch> is an unexpected tag (parent <web-app> starts at 2)
+++++++++++++++++++++++++++++++++++++++++++++++++



OS : Linux Redhat 9
jdk1.5

Notes
(0000221)
sam   
05-18-05 00:00   
server/13s0

As a workaround, replace:

  <rewrite-dispatch>
    <forward regexp='^/foo' target='/bar'/>
  </rewrite-dispatch>

with:

  <resin:import path="rewrite.xml"/>

and in rewrite.xml:

<web-app>
  <rewrite-dispatch>
    <forward regexp='^/foo' target='/bar'/>
  </rewrite-dispatch>
</web-app>
(0000222)
ferg   
05-18-05 00:00   
server/13sa