13 Replies Latest reply on May 4, 2011 1:52 PM by Claus Ibsen

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

    Julio Ortiz Newbie

      I hope someone could shed some light on the following issue:

       

      I'm writing a SMX 4.2.0-fuse-02-00 database look-up application using Camel, Hibernate and JPA.

      The application has 2 bundles that do database operations implementing 2 different requests. One other bundle does content base routing to direct request to one bundle or the other.

      One bundle works fine, but the other doesn't.

      I can't see much of a difference of the named-queries of the working bundle with the ones in the failing bundle.

       

      I don't want to make this a very long message, so if additional information is needed, I'll be more than glad to provide it. I've appended part of the stack trace below.

       

      Thanks in advance for any help.

       

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

              at org.hibernate.hql.ast.HqlLexer.panic(HqlLexer.java:80)

              at antlr.CharScanner.setTokenObjectClass(CharScanner.java:338)

              at org.hibernate.hql.ast.HqlLexer.setTokenObjectClass(HqlLexer.java:54)

              at antlr.CharScanner.(HQLQueryPlan.java:80)

              at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)

              at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)

              at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1141)

              at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)

              at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)

              ... 56 more