We've been running our webapp on Tomcat for over a year without issue. Now, management has decided that we will be a Websphere only shop and we're attempting to redeploy. So far, we've not had much luck, running into this when accessing any page that has references to objects with lazy collections or proxies:
Code:
java.lang.IllegalAccessException:java/lang/ClassLoader at net.sf.cglib.proxy.ClassFileUtils$1.run(ClassFileUtils.java:119) at java.security.AccessController.doPrivileged(Native Method) at net.sf.cglib.proxy.ClassFileUtils.defineClass(ClassFileUtils.java:93) at net.sf.cglib.proxy.Enhancer.enhance(Enhancer.java:294) at net.sf.cglib.proxy.Enhancer.enhance(Enhancer.java:171) at cirrus.hibernate.proxy.CGLIBLazyInitializer.getProxy(CGLIBLazyInitializer.java:25) at cirrus.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1447) at cirrus.hibernate.impl.SessionImpl.load(SessionImpl.java:1364) at com.cgc.indexing.hibernate.HibernateCategory.find(HibernateCategory.java:59) at -- <truncated> --.
What might we be doing wrong? Is there some security policy file we need to adjust? As of now, we simply took the .war file we used in Tomcat and dropped it into Websphere.