刚接触 WebLogic,在登录时就遇到了麻烦。
使用Hibernate3开发的应用,在Tomcat环境下运行一切正常,但被部署到weblogic10.3上后,抛出异常 org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from hbm.pojo.Area where co
解决方法:在hibernate.properties上,或是在 spring 的 applicationContext.xml 中,加上一个属性hibernate.query.factory_class,值为org.hibernate.hql.classic.ClassicQueryTranslatorFactory。
原因:从网上获知,weblogic.jar中已经有了一个antlr.jar的版本,导致应用中hibernate3.jar中用到的antlr.jar不能找到,导致异常。
部署Hibernate3应用到WebLogic 10.3遇到查询异常,解决方法是在配置文件中设置hibernate.query.factory_class属性为ClassicQueryTranslatorFactory。
1163

被折叠的 条评论
为什么被折叠?



