change web.xml to use code-based configuration