Modified POM and did some spring and hibernate confiuration