add jpa and shiro support