[mods: plz move this
thread to Servlets forum]
I was totally frustrated with this for a while. I got intermittent behavior and figured out that when I start
Tomcat from the directory containing .properties file, it worked. I think it has to do with the classloader finding it in that case.
Fortunately, there's a much better solution than that.
You must use Class.
getResourceAsStream() so that tomcat can find the file.
Here's an example: