Sunday, 15 May 2011

org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken

This is in sequence to my earlier post.

There are 2 ways as given below. But in my environment , I had to apply both the following steps as solution for above issue.

1. Changes in weblogic-application.xml

Add the antlr.* in the tag

2. Changes in weblogic.xml

WebLogic has it's own version of ANTLR. Set the prefer-web-inf-classes element in weblogic.xml to true.



**** take care of the closing tags in the above XMLs by opening the XML file in any browser.