Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Spring AOP with Tomcat

  1. #11
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    The fact that you implement an interface doesn't automatically mean that you don't use CGLib. If you have proxyTargetClass set to true (or similair properties) you use cglib. Apparently that is the case somewhere.

    That is what it is telling me I need.
    So you need it or disable class proxying...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  2. #12
    Join Date
    Jan 2008
    Posts
    9

    Default Spring AOP with Tomcat

    Ok. I used the empty constructor and everything is working fine. Thanks everyone for answering my questions. I guess I was just looking for a work around trying to avoid empty constructors everywhere.

  3. #13
    Join Date
    Aug 2006
    Location
    Now Germany, previously Ukraine
    Posts
    1,546

    Default

    Normally, it is preferable to use dynamic proxies over CGLIB proxies.

    Really, this is Spring default behavior as far as proxied class implements at least one interface and Spring is not instructed specifically to use CGLIB-proxies (by proxy-target-class="true").. Really, it is described in Spring reference quite well (Chapter 6.6 in Spring 2.5.1 Reference).

    As soon as dynamic proxying is used you have no need in the default constructor.

    Regards,
    Oleksandr

    Quote Originally Posted by Huskie009 View Post
    Ok. I used the empty constructor and everything is working fine. Thanks everyone for answering my questions. I guess I was just looking for a work around trying to avoid empty constructors everywhere.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •