项目中使用了shiro,我添加了几个实体类,启动tomcat报错

Error creating bean with name 'entityManagerFactory' defined in URL [file:/F:/eclipseWorkSpace1219/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OmpApp/WEB-INF/classes/spring/spring-dao.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build EntityManagerFactory,我的项目是用pom管理的,分了一个war项目和是个jar项目,我在jar项目A中添加了五个实体类,然后在war项目B中的pom文件中增加了对A项目的依赖,但是启动服务器的时候报错。我这个项目使用的shiro,在spring-shiro.xml文件中定义了安全认证过滤器shiroFilter,启动的时候,shiro对实体类进行过滤吗?

http://yegshine.blog.163.com/blog/static/11894530920122231026748/