Toplink antlr.jar Causes Hibernate Project To Deploy With Error org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken

(Doc ID 437883.1)

Last updated on AUGUST 18, 2016

Applies to:

Oracle JDeveloper - Version to
Oracle Containers for J2EE - Version to [Release AS10gR3 to Oracle11g]
Information in this document applies to any platform.
Application developed in JDeveloper, using hibernate as a persistence layer.
Deployed to a Oracle Application Server Mid-Tier.
***Checked for relevance on 24-Feb-2012***


When trying to deploy the developed project into the Oracle Application Server 10g (either using the JDeveloper internal deployer, or the Application Server EM Console), the deployment log is showing:

Jun 5, 2007 11:47:15 AM] Operation failed with error: [MarmafApp:testProj] - Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit default.

and the following error is shown in the OC4J Log - default_group~<INSTANCENAME>~default_group~1.log :

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



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms