HQL/SQL query translator error on SJSAS 8.1 EE

I encountered an error while executing hibernate query in my app and the log message is shown below.

[#|2006-09-20T13:27:02.956-0400|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.stream.err|_ThreadID=12;|

CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken|#]

I am using HIberante 3 and I do have antlr-2.7.2.jar in my classpath. And I am using org.hibernate.hql.classic.ClassicQueryTranslatorFactory class instead of

org.hibernate.hql.ast.ASTQueryTranslatorFactory. I have also added the antlr-2.7.2.jar in classpath-prefix in domain.xml. Did anybody encounter the same problem? Please advice.

Thanks.

[674 byte] By [ndnguy] at [2007-11-26 10:16:49]
# 1

I fixed this problem by adding/changing two files: sun-web.xml and srever.policy.

In sun-web.xml

<sun-web-app>

<class-loader delegate="false"/>

</sun-web-app>

In server.policy

grant {

permission java.security.AllPermission;

};

I am not if this is a good solution but it works.

Thanks.

ndnguy at 2007-7-7 2:10:43 > top of Java-index,Application & Integration Servers,Application Servers...