struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Tiernay (JIRA)" <>
Subject [jira] Commented: (WW-2547) Using actions proxied with Spring AOP throws exception
Date Fri, 20 Jun 2008 23:39:05 GMT


Bob Tiernay commented on WW-2547:

After looking at the supplied applicationContext.xml, it would seem as though the beanNames
 property is casting too wide of a net within the following bean definition:

- <bean id="proxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
- <property name="beanNames">
- <property name="interceptorNames">
- <list>

Not only does this apply a proxy to user level spring managed beans, but also to those of
struts system level beans (see struts-default.xml) since the spring plugin overrides the StrutsObjectFactory.
In this particular case, it looks as though some MethodFilterInterceptor derived interceptor
 is being proxied inappropriately (infered from the excludeMethods property in the stack trace).

I would recommend trying to reduce the scope of the beanNames property to actions in a particular
package, etc.

> Using actions proxied with Spring AOP throws exception
> ------------------------------------------------------
>                 Key: WW-2547
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Spring
>    Affects Versions: 2.0.9
>         Environment: Windows 2000, Struts 2.0.9. Spring 2.0.6, Java 5 Update 14, Apache
>            Reporter: Ricardo Gladwell
>             Fix For: 2.1.3
>         Attachments: stacktrace.log,
> When using Spring AOP proxied action classes with Struts2 throws exception (see attached
project and stack trace).

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message