move web.xml to java config.