struts-issues mailing list archives

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

    [ https://issues.apache.org/struts/browse/WW-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44216#action_44216
] 

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">
  <value>*</value> 
  </property>
- <property name="interceptorNames">
- <list>
  <value>traceInterceptor</value> 
  </list>
  </property>
  </bean>

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: https://issues.apache.org/struts/browse/WW-2547
>             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
Tomcat/5.5.25
>            Reporter: Ricardo Gladwell
>             Fix For: 2.1.3
>
>         Attachments: stacktrace.log, test.zip
>
>
> 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.


Mime
View raw message