Fixing beans and web.xml files