ClassNotFoundException due to org.hibernate.hql.ast.HqlToken in Weblogic (Doc ID 946122.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version 10.0 to 10.3.5
Information in this document applies to any platform.

Symptoms

When using Hibernate and Spring framework in Weblogic, the following ClassNotFoundException was thrown due to org.hibernate.hql.ast.HqlToken --

org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException:
org.hibernate.hql.ast.HqlToken [...]; nested
exception is org.hibernate.QueryException: ClassNotFoundException:
org.hibernate.hql.ast.HqlToken [...]
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactor
yUtils.java:640)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccess
or.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:378)
... ... ...

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