to configure the server.policy of the jes application server to avoid the hibernate cglib enhancement exception.

hibernate cglib enhancement exception during deployment on JES application server_职场 when using jes application server, e.g. 8.1pe, the cglib for hibernate persistence object enhancement maybe throw excepti just like the followings:

[#|2006-07-18t09:43:48.340+0800|info|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_threadid=12;|2006-07-18 09:43:48,325 error [cgliblazyinitializer]: cglib enhancement failed: test.po.testpo

java.lang.noclassdeffounderror at org.hibernate.proxy.cgliblazyinitializer.getproxyfactory(cgliblazyinitializer.java:116) at org.hibernate.proxy.cglibproxyfactory.postinstantiate(cglibproxyfactory.java:41) at org.hibernate.tuple.pojoentitytuplizer.buildproxyfactory(pojoentitytuplizer.java:161) at org.hibernate.tuple.abstractentitytuplizer.(abstractentitytuplizer.java:131) at org.hibernate.tuple.pojoentitytuplizer.(pojoentitytuplizer.java:55) at org.hibernate.tuple.tuplizerlookup.create(tuplizerlookup.java:64) at org.hibernate.tuple.entitymetamodel.(entitymetamodel.java:257) at org.hibernate.persister.entity.abstractentitypersister.(abstractentitypersister.java:412) at org.hibernate.persister.entity.singletableentitypersister.(singletableentitypersister.java:108) at org.hibernate.persister.persisterfactory.createclasspersister(persisterfactory.java:55) at org.hibernate.impl.sessionfactoryimpl.(sessionfactoryimpl.java:215) at org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1176) ......

it maybe the jes application server policy issue. try to append this in server.policy for application server (../appserver/domains/domanx/config/server.policy), and it should work:
grant {
permission java.lang.reflect.reflectpermission "suppressaccesschecks";
};
grant {
permission java.lang.runtimepermission "setc
};
grant {
permission java.lang.runtimepermission "getprotecti
};