added resource directory and modified web.xml