To my knowledge the file has to be right in the folder where the
'this' class resides, i.e. not in
WEB-INF/classes but nested even deeper (unless you write in a default package):
Putting the file in to your java sources should work, compiler copies that file together with class files.