fix errors
add ehcache to hibernate