-->
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: Hibernate3 error(antlr.jar) on SJSAS 8.1 EE
PostPosted: Thu Sep 21, 2006 11:52 am 
Newbie

Joined: Thu Sep 21, 2006 11:42 am
Posts: 2
I have Hibernate3 app deployed Sun One App Server on 8.1EE. After a simple select query I am getting this error in the logs.

Code:
charScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken


I am using antlr-2.7.2.jar file. I copied it to server_home/lib and also in server_home/lib/endorsed and also added the classpath-prefix in the domain.xml. After all this I still get a ClassNOtFoundException Can anyone please suggest a solution.

Thanks.


Top
 Profile  
 
 Post subject: antlr
PostPosted: Thu Nov 09, 2006 3:05 pm 
Newbie

Joined: Thu Nov 09, 2006 2:44 pm
Posts: 2
I am dealing with this same issue in Oracle 10g R3. In my case there is already an antlr.jar loaded elsewhere that ends up being found first on the classpath.

So what are the workarounds?

Well you can use the old query parser from Hibernate 2.1:

Code:
hibernate.query.factory_class=org.hibernate.hql.classic.ClassicQueryTranslatorFactory


But I personally had trouble with this method... some of my queries weren't being produced correctly (as in the where clause would remain in hql for some reason). The other suggestion is to move hibernate and all dependant libraries to your servers boot classpath O.o I found all of this at http://www.hibernate.org/250.html in the BEA Weblogic section.

I'm still in the middle of solving this issue but just wanted to share what I found so far since I came across this post looking for answers myself.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 13, 2006 9:17 am 
Newbie

Joined: Thu Sep 21, 2006 11:42 am
Posts: 2
The way I fixed it was to set the app server class-loader delegation to false.

Code:
<sun-web-app>
   <class-loader delegate="false"/>
</sun-web-app>


You might try doing similar thing with Weblogic. Hope this will fix it.


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.