原因: 原因是weblogic要查找自己的antlr,和lib下面的antlr包沖突.... 解決方法: 在weblogic.xml添加 lt container descriptor gt lt prefer web inf classes gt true lt prefer web inf classes gt lt container descriptor gt prefer web inf ...
2013-07-04 09:11 0 3540 推薦指數:
轉自:http://www.programgo.com/article/68682994452/ 在做查詢的時候,報出 org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken ...
環境: weblogic 10 hibernate 3 錯誤原因: 在hibernate3中需要用到antlr,然而這個包在weblogic.jar中已經包含了antrl類庫,就會產生一些類加載的錯誤,無法找到在war或者ear中的hibernate3.jar 解決方法 ...
正確寫法: 1、出現“org.hibernate.QueryException: could not resolve property”錯誤的解決: 起初,hql語句是這樣寫的,報錯:could not resolve property:osId 考慮 ...
org.hibernate.QueryException: JPA-style positional param was not an integral ordinal; nested exception is java.lang.IllegalArgumentException ...
今天在寫hql語句的時候出現了這個錯誤,然后一直運行到執行hql這兒就出錯了。頁面報500. 原hql如下: String hql = "from SecWilldosetdate where name = 'secEduplan'"; 問題如下: 折騰了好一會 ...
select d.content,count(s.status) from MesmachineStatus s , Mesmachinestatusdetail d where s.statu ...
檢查下hql的對象名是不是實體的名,有沒有寫成數據庫的表名。 ***hql的對象名要和實體對象名,相互對應 ...