Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1D5FB200C28 for ; Mon, 13 Mar 2017 18:29:21 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1BF54160B6C; Mon, 13 Mar 2017 17:29:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 64841160B5D for ; Mon, 13 Mar 2017 18:29:20 +0100 (CET) Received: (qmail 50890 invoked by uid 500); 13 Mar 2017 17:29:19 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 50874 invoked by uid 99); 13 Mar 2017 17:29:19 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2017 17:29:19 +0000 Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com [66.111.4.228]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 01C1B1A0193 for ; Mon, 13 Mar 2017 17:29:18 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 9F44620A12 for ; Mon, 13 Mar 2017 13:29:17 -0400 (EDT) Received: from web2 ([10.202.2.212]) by compute2.internal (MEProxy); Mon, 13 Mar 2017 13:29:17 -0400 X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 87B696272D; Mon, 13 Mar 2017 13:29:17 -0400 (EDT) Message-Id: <1489426157.467124.909830960.44B30268@webmail.messagingengine.com> From: Christian Grobmeier To: user@struts.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-9f47d516 Date: Mon, 13 Mar 2017 18:29:17 +0100 In-Reply-To: <510601.1e588fbd3cd9785aa3e0113d85066fa0abdc017d@popretr.messagingengine.com> Subject: Re: LocaleProvder not unique References: <1489417348.3756978.909632712.59A93606@webmail.messagingengine.com> <510601.56ce60497511602186181f26b75066e947000862@popretr.messagingengine.com> <1489418753.3762071.909664544.1E72E70B@webmail.messagingengine.com> <510601.6d64be8d135026318e6cecb7149f792e95d581ae@popretr.messagingengine.com> <1489419854.3766210.909693904.79509CE1@webmail.messagingengine.com> <510601.ac25d16e2cdd61ef356214a36f8dcebc099a2795@popretr.messagingengine.com> <1489424140.459207.909784112.01CD0419@webmail.messagingengine.com> <510601.1e588fbd3cd9785aa3e0113d85066fa0abdc017d@popretr.messagingengine.com> archived-at: Mon, 13 Mar 2017 17:29:21 -0000 On Mon, Mar 13, 2017, at 18:26, Lukasz Lenart wrote: > 2017-03-13 17:55 GMT+01:00 Christian Grobmeier : > > Removing @Service helped. In addition I had to remove the remaining > > Actions from applicationContext.xml (I am in the middle of a > > transition). > > > > It's kind a weird, because it worked with the previous version of > > Struts. Was there a change in the injection behavior? I am glad I know > > about @Service yet, but still, I would love to know. >=20 > No, it isn't related to an injection mechanism, I mean there was no > change as far I know. Basically defining actions as services is a bad > idea - actions should be clients for services not to provide them. As > ActionSupport implements LocaleProvider by default it means it can be > injected in any bean that requires it (e.g. I18NInterceptor). >=20 > I am not sure why it worked before, LocaleProvider is there for a bit > and it's used in few places but since 2.5.5 is also used in the > interceptor https://issues.apache.org/jira/browse/WW-4677 - maybe > that's the case. Got it, thank you a lot.=20 Christian >=20 >=20 > Regards > --=20 > =C5=81ukasz > + 48 606 323 122 http://www.lenart.org.pl/ >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org