facebook

[Closed] Deploying Hibernate in Sun App Server 8.1R2

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #256974 Reply

    fmbraga
    Member

    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 ?

    #256975 Reply

    fmbraga
    Member
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [Closed] Deploying Hibernate in Sun App Server 8.1R2

You must be logged in to post in the forum log in