update web.xml into java based config