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

ASF subversion and git services commented on WW-5205:
-----------------------------------------------------

Commit 3c9465b857e43d3604970dd34e94b3d0080f3dda in struts's branch 
refs/heads/master from Lukasz Lenart
[ https://gitbox.apache.org/repos/asf?p=struts.git;h=3c9465b85 ]

Merge pull request #580 from rproserpio/patch-1

[WW-5205] - Reverting injection refactor of internal bean

> REST plugin cannot start due to injection error
> -----------------------------------------------
>
>                 Key: WW-5205
>                 URL: https://issues.apache.org/jira/browse/WW-5205
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - REST
>    Affects Versions: 6.0.0
>            Reporter: Riccardo Proserpio
>            Priority: Major
>             Fix For: 6.0.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> While attempting to instantiate REST plugin's ContentTypeHandlerManager, the 
> initialization fails with the following error:
> {code:java}
> org.springframework.beans.factory.UnsatisfiedDependencyExceptionError 
> creating bean with name 'org.apache.struts2.rest.ContentTypeInterceptor': 
> Unsatisfied dependency expressed through constructor parameter 0; nested 
> exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: 
> No qualifying bean of type 
> 'org.apache.struts2.rest.ContentTypeHandlerManager' available: expected at 
> least 1 bean which qualifies as autowire candidate. Dependency annotations: 
> {} {code}
> Tested using Spring as the Object Factory.
> The issue seems to be present only in struts >= 6.0.0, likely caused by this 
> commit 
> [https://github.com/apache/struts/commit/e9d0a5518cd0671d9ad0353a2c87246ef0d2061b]
> In Struts 2.5.x the bean is injected correctly, as an internal bean.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to