0 0

应用在TOMCAT正常,在JBOSS AS 7下,就会报HIBERNATE的相关错误0

应用在TOMCAT是正常的,放到JBOSS AS 7 下登录后就报错:

有报这种错:
org.hibernate.MappingException: Unknown entity: com.richutil.page.model.EmployeeNotice

也有报这种错:
org.hibernate.hql.ast.QuerySyntaxException: Employee is not mapped [from Employee this_ where status='1' 

怎么回事呢?
2013年5月23日 15:03

1个答案 按时间排序 按投票排序

0 0

把jboss的lib下的1.【ejb3-persistence.jar】  
2.【hibernate3.jar】  
3.【hibernate-annotations.jar】  
4.【hibernate-commons-annotations.jar】  
5.【hibernate-entitymanager.jar】  
6.【hibernate-validator.jar】 
jar包删掉试试

2013年5月23日 17:32

相关推荐

Global site tag (gtag.js) - Google Analytics