[
https://issues.apache.org/jira/browse/WW-3692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124740#comment-13124740
]
Hudson commented on WW-3692:
----------------------------
Integrated in Struts2 #362 (See [https://builds.apache.org/job/Struts2/362/])
WW-3692 - uses containsBean() method instead of containsBeanDefinition() to
resolve aliases of a bean to find
lukaszlenart :
Files :
*
/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/spring/SpringObjectFactory.java
> Struts cannot find Spring beans with no id set
> ----------------------------------------------
>
> Key: WW-3692
> URL: https://issues.apache.org/jira/browse/WW-3692
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Spring
> Affects Versions: 2.2.3
> Reporter: Patrick Savage
> Assignee: Lukasz Lenart
> Attachments: WW-3692.patch
>
>
> The fix for WW-3460 prevents Struts from finding Spring beans that do not
> have an "id" set (typical for actions, interceptors, etc.). The
> containsBeanDefinition method returns false when the bean's class name is
> passed into it because the bean definition id is actually the class name plus
> "#0". There is an alias from the class name to the bean definition id, but
> containsBeanDefinition ignores that alias.
> The solution is to use the containsBean method instead of
> containsBeanDefinition. This resolves the alias to the real bean definition
> id and so it is able to find the bean. Please apply the attached patch to fix
> this problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira