Tuesday, May 5, 2009

ClassNotFoundException: org.hibernate.hql.ast.HqlToken Problem with Hibernate3 and WebLogic Server10

Hi,
Recently i tried to develop an application using Spring and Hibernate. I deployed the application on Tomcat, JBoss servers and it is working fine.

But when i tried to deploy it on WebLogic Server 10, i got into strange errors.
When i execute session.find("from Account where id=?"), it is saying ClassNotFoundException: org.hibernate.hql.ast.HqlToken.

When i googled for the solution i found the following :

this, this and some more.

But all are saying that WebLogic server is using some earlier version of ANTLR jar file causing this error.

But when the Open Source Application servers like JBoss have taken care of these issues, why don't the commercial application server takes care of these kind of issues. Also I surprised when i know that this is a known issue with weblogic server from 8.x version and it is not yet fixed.

No comments:

Post a Comment