Re: Proxying (by Spring) an action => object is not an instance of declarin

wesslan <[email protected]> Mon, 25 Dec 2006 22:58:04 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <12559420.1167109125392.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
> Did you find a solution wesslan? (apart from the
> cglib one?)

Hohoho, meeeerry xmas! :)

No, I didn't find a solution and the two threads below describes/discusses why.
If you use CGLIB, e.g. by specifying [code]<aop:config proxy-target-class="true" />[/code] somewhere in your actionContext.xml, you will be using CGLIB for all your Spring-managed classes. That means it will fail for classes that in some way is final(final class, final members etc.).
I use JPA and it has some final classes which makes the usage of CGLIB impossible.

http://forums.opensymphony.com/thread.jspa?messageID=96456&#96456
http://forums.opensymphony.com/thread.jspa?messageID=86971&#86971

Hth,
Peter
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=24912&messageID=110269#110269