struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <>
Subject LocaleProvder not unique
Date Mon, 13 Mar 2017 15:02:28 GMT
Hello all,

I trying to upgrade my Struts app from 2.5.1 to

I saw there are some changes in I18nInterceptor like that:

My actions extend from ActionSupport, which is implementing
I am also using Spring for DI.

Unfortunately I now get this exception when starting the container:

 SpringObjectFactory            - Error building bean
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.apache.struts2.interceptor.I18nInterceptor': Unsatisfied dependency
expressed through bean property 'localeProvider': : No qualifying bean
of type [com.opensymphony.xwork2.LocaleProvider] is defined: expected
single matching bean but found 95: emptyAction, ...

It lists all my actions and it seems as Spring would try to instantiate
I18nInterceptor after my actions.

Does anybody else experience that or got an idea how to improve my code?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message