-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: antlr/ANTLRException - a migration problem
PostPosted: Fri May 06, 2005 6:19 pm 
Regular
Regular

Joined: Wed Aug 25, 2004 7:40 pm
Posts: 65
After quite few fixes during my migration from 2.1.7 to 3.0.2, I run into this exception and don't see how I can fix it. Had a look at the migration documentation, I can't find any coding problem. It seems to me that the exception class is not in the Hibernate jar file.

Hibernate version: 3.0.2

Full stack trace of any exception that occurs:
2005-05-06 12:58:25,718 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xyz].[xyz] - Servlet.service() for servlet xyz threw exception
java.lang.NoClassDefFoundError: antlr/ANTLRException
at org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(ASTQueryTranslatorFactory.java:27)
at org.hibernate.impl.SessionFactoryImpl.createQueryTranslators(SessionFactoryImpl.java:352)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:418)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:822)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:782)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at org.springframework.orm.hibernate3.HibernateTemplate$30.doInHibernate(HibernateTemplate.java:772)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:310)
at org.springframework.orm.hibernate3.HibernateTemplate.findByNamedParam(HibernateTemplate.java:763)

Name and version of the database you are using:

PostgreSQL 8.0.2


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 8:29 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
add antlr-2.7.5H3.jarr (from hibernate distibution) in your classpath.3.0.2 have new antlr jar .
delete old antlr if you have one


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 08, 2005 12:40 pm 
Regular
Regular

Joined: Wed Aug 25, 2004 7:40 pm
Posts: 65
Thanks very much Snpesnpe.

I didn't recoganze it is an external library problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.