java.lang.NoSuchFieldError: tokenTypeToASTClassMap
at org.hibernate.hql.antlr.HqlBaseParser.buildTokenTypeASTClassMap(HqlBaseParser.java:4224)
at org.hibernate.hql.antlr.HqlBaseParser.<init>(HqlBaseParser.java:107)
at org.hibernate.hql.antlr.HqlBaseParser.<init>(HqlBaseParser.java:112)
at org.hibernate.hql.ast.HqlParser.<init>(HqlParser.java:47)
at org.hibernate.hql.ast.HqlParser.getInstance(HqlParser.java:42)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:203)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:127)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:422)
at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:383)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:286)
很简单:查看antlr.jar这个包,把它替换成与当前版本hibernate统一的antlr包,其实也就包的版本不同一所造成的。
posted on 2006-05-18 20:07
崛起的程序员 阅读(821)
评论(0) 编辑 收藏