Added context.xml in meta-inf and configured db resoure in web-inf