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 10.1.3.2.0 to 11.1.1.0.0
Oracle Containers for J2EE - Version 10.1.3.0.0 to 11.1.0.1.0 [Release AS10gR3 to Oracle11g]
Information in this document applies to any platform.
Application developed in JDeveloper 10.1.3.2, using hibernate as a persistence layer.
Deployed to a 10.1.3.1 Oracle Application Server Mid-Tier.
***Checked for relevance on 24-Feb-2012***


Symptoms

When trying to deploy the developed project into the Oracle Application Server 10g 10.1.3.1 (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

 

Cause

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