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

ASF GitHub Bot logged work on WW-5205:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Aug/22 14:37
            Start Date: 08/Aug/22 14:37
    Worklog Time Spent: 10m 
      Work Description: lukaszlenart commented on PR #580:
URL: https://github.com/apache/struts/pull/580#issuecomment-1208216190

   LGTM 👍 




Issue Time Tracking
-------------------

            Worklog Id:     (was: 798964)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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: 10m
>  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