put connection in web.xml and put my code in src/main/java