I am using jboss-3.2.1_tomcat-4.1.24 Bundle ...
I have exactly the same problem ...
The ByteArrayOutputStream is still empty after the :
If i try :
System.out.println("CacheFilter : BAOS Size = " + baos.size());
I get : BAOS size = 0 ...
FileOutputStream fos = new FileOutputStream(file);
is only creating an empty cache ...
I don't know where I missed something, so if you have a clue, tell me please ^_^