Reverting to a simple ip filter, refactoring web.xml and POM file.