The problem seem to be a bug see at the end.
But now how can I have a jbossweb-extras.jar (probabably another jar org/apache/catalina has modification for the patch) for jboss 4.2.x?
I m trying in jboss 4.2.3, jboss 5 GA and the problem exists always.
The jbossweb-extras.jar from jbossweb 1.0 and 2 don't work.
I've trying to do my redirect in a servlet but some files are not in war but in deploy/stats.war/ and this is not hanle by the servlet.
Thanks for your help.
I'm providing this patch which fixes the following issues with the rewrite valve and makes it's behavior more consistent with mod_rewrite. 1: Rewrite conditions were not being processed 2: Case insensitive pattern matches were not working 3: Send redirect with an arbitrary code now works and uses reflection to see if the method is available so the valve will still work with standalone tomcat 4: Patterns are no longer forced to match the whole input for conditions and rules 5: The server variable HTTP_HOST included the port if the server wasn't running on the standard ones (80/443) 6: QSA is how handled and query strings are appended where appropriate 7: Comments are now allowed in the rewrite.properties file
4.3.x and 4.2.x doesn't contain the patch of JBWEB-67.
5.x should work.
I've tested with lastest jboss 5.0.0.GA
And it returns always code 302. : HTTP/1.x 302 DÃƒÂ¯Ã‚Â¿Ã‚Â½placÃƒÂ¯Ã‚Â¿Ã‚Â½ Temporairement
Ok I fixed it in JBoss WEB trunk.