Today, I use hibernate3 in WebLogic8.1 to encounter trouble. After accessing the database, WebLogic will turn off and prompts the following error:
Charscanner; PANIC: ClassNotFoundException: Org.Hibernate.hql.ast.hqlt.hqltoken
Antlr.jar needs to be used in Hibernate3, however this package already contains an ANTRL class library in WebLogic.jar, generates some types of loaded errors, and cannot find hibernate3.jar in WAR or EAR.
After this error occurs, Antlr calls system.exit () so that WebLogic will abort service.
The solution is to add attributes in the hibernate.properties file: hibernate.query.factory_class, the value of the property is org.hibernate.hql.classic.classicQueryTranslatorFactory, which can solve the problem.
Reference documentation:
Http://www.onthoo.com/blog/programming/2005/04/Hibernate-moving-day.html
http://forum.hibernate.org/viewtopic.php?t=939468