In the above comment, you define a variable called "res" but refer to it as "res.dir". Is that by mistake. Anyway, even if no ClassCastException were thrown, the file property is still likely to reference an invalid string value. For example, "file://tmp/my.log" is *not* a valid input string for the constructor of FileOutputStream.
As for supporting java.util.Properties I don't think you can define a java.util.Properties instance in a web.xml file. Can you?
As for supporting java.util.Properties I don't think you can define a java.util.Properties instance in a web.xml file. Can you?