[
https://issues.apache.org/jira/browse/WW-5205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-5205:
------------------------------
Fix Version/s: 6.0.1
> 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
>
>
> 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)