The solutions have two which I tried and succeeded.
1: place the antlr-2.7.6rc1.jar into the jdk.xxx/jre/lib/ext directory of jdk package.
2: set the "hibernate.query.factory_class" to "org.hibernate.hql.classic.ClassicQueryTranslatorFactory" in the "hibernate.properties" file.
3: Or add the following sentence into the hibernate.cfg.xml file: