tomcat: should be `if a or b`, not `if a and b`