|
From: Rod J. <rod...@in...> - 2003-12-11 17:41:56
|
I guess in my refactoring I lost the indirection by which a CGLIB proxy w= as created only by an inner class, to prevent dependence on CGLIB at runtime. I'll try to sort that out tomorrow or Monday. Btw, the TransactionProxyFactoryBean now extends the new ProxyConfig, whi= ch has a proxyTargetClass property that defaults to false. Set it to true to force CGLIB. Otherwise it won't use CGLIB by default. Regards, Rod ----- Original Message -----=20 From: "Colin Sampaleanu" <col...@ex...> To: <spr...@li...> Sent: Thursday, December 11, 2003 5:29 PM Subject: Re: [Springframework-developer] RE: About CGLIB2 > j=FCrgen h=F6ller [werk3AT] wrote: > > >Everybody, > > > >Hibernate 2.1 final with CGLIB2 underneath has just been released. Thi= s poses the question whether we should still release our 1.0 M4 with CGLIB1 support. Of course, our current codebase works nicely with Hibernate 2.1 = as long as you don't use CGLIB-based AOP proxies (i.e. proxy full target objects instead of just interfaces), so we don't *have* to update immediately. > > > > > > > Hmm, maybe this was once the case, but I am not sure it is so easy any > longer. I tried dropping in Hibernate 2.1 final (with cglib2). However, > when using TransactionProxyFactoryBean, which no longer has the old > ProxyInterfacesOnly boolean option (which used to default to true, and > used a JDK proxy in the true case instead of cglib proxy), I now get an > exception > > java.lang.NoClassDefFoundError: > org/springframework/aop/framework/OptimizedCglib1AopProxy > at > org.springframework.transaction.interceptor.TransactionProxyFactoryBean.a= fte rPropertiesSet(TransactionProxyFactoryBean.java:167) > at > org.springframework.beans.factory.support.AbstractBeanFactory.callLifecyc= leM ethodsIfNecessary(AbstractBeanFactory.java:1011) > at > org.springframework.beans.factory.support.AbstractBeanFactory.createBean(= Abs tractBeanFactory.java:539) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abs= tra ctBeanFactory.java:186) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preI= nst antiateSingletons(DefaultListableBeanFactory.java:184) > at > org.springframework.context.support.AbstractApplicationContext.refresh(Ab= str actApplicationContext.java:284) > at > org.springframework.web.context.support.XmlWebApplicationContext.refresh(= Xml WebApplicationContext.java:107) > > The offending line is: > > ProxyFactory proxyFactory =3D new ProxyFactory(); > > Of course, ProxyFactory extends AdvisedSupport, which directly > references OptimizedCglib1AopProxy. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM= 's > Free Linux Tutorials. Learn everything from the bash shell to sys admi= n. > Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |