Replaced apache by hibernate, since apache is not working