Hi,
I’ve been trying to deploy Faces+Hibernate in Sun App Server, and figured out some things:
1) server.policy needs
grant {
permission java.lang.RuntimePermission “exitVM”;
permission java.lang.RuntimePermission “getProtectionDomain”;
permission java.lang.reflect.ReflectPermission “suppressAccessChecks”;
};
2) we need to put antlr which comes with hibernate — mine is antlr-2.7.5H3.jar — in server’s classpath. Failure in doing this keeps hibernate generating
CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken
So, after doing these, I managed to get a small login app running in Sun AS.
However, when I start Sun AS from MyEclipse, it gives me back ClassNotFoundException, as described above.
Any ideas how I can correct this ?