The solutions to the problem:ClassNotFoundException: org.hibernate.hql.ast.HqlToken

When I run the example provided by the Hibernate 3.1.3 package, “ant eg”, I got the error: “ClassNotFoundException: org.hibernate.hql.ast.HqlToken.
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: org.hibernate.hql.classic.ClassicQueryTranslatorFactory

2 Responses to “The solutions to the problem:ClassNotFoundException: org.hibernate.hql.ast.HqlToken”

  1. Get any Desired College Degree, In less then 2 weeks.

    Call this number now 24 hours a day 7 days a week (413) 208-3069

    Get these Degrees NOW!!!

    “BA”, “BSc”, “MA”, “MSc”, “MBA”, “PHD”,

    Get everything within 2 weeks.
    100% verifiable, this is a real deal

    Act now you owe it to your future.

    (413) 208-3069 call now 24 hours a day, 7 days a week.

  2. Thanks a lot for giving solution to the problem:ClassNotFoundException: org.hibernate.hql.ast.HqlToken.

Leave a Reply

*