轉自: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的對象名要和實體對象名,相互對應 ...