转自:http://www.programgo.com/article/68682994452/ 在做查询的时候,报出 org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken ...
环境: weblogic hibernate 错误原因: 在hibernate 中需要用到antlr,然而这个包在weblogic.jar中已经包含了antrl类库,就会产生一些类加载的错误,无法找到在war或者ear中的hibernate .jar 解决方法: 在用户工程代码web inf下建立xml文件:weblogic.xml lt xml version . encoding UTF gt ...
2013-03-07 10:58 1 5813 推荐指数:
转自:http://www.programgo.com/article/68682994452/ 在做查询的时候,报出 org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken ...
异常记录:org.springframework.orm.hibernate3.HibernateQueryException:employees is not mapped [from employees where name ='xiao' and employee_id=100001 ...
原因: 原因是weblogic要查找自己的antlr,和lib下面的antlr包冲突.... 解决方法: 在weblogic.xml添加 <container-descriptor> <prefer-web-inf-classes>true< ...
[org.springframework.orm.hibernate4.LocalSessionFactoryBean] ...
org.springframework.orm.hibernate3.SessionFactoryUtils Hibernate Session处理协助类,允许事务范围内的Session重用。同样提供了异常信息的转义。 支持受Spring管理及不受Spring管理的JTA事务同步 ...
select d.content,count(s.status) from MesmachineStatus s , Mesmachinestatusdetail d where s.statu ...
检查下hql的对象名是不是实体的名,有没有写成数据库的表名。 ***hql的对象名要和实体对象名,相互对应 ...