Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 29309 invoked from network); 27 Jul 2009 20:42:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jul 2009 20:42:05 -0000 Received: (qmail 64891 invoked by uid 500); 27 Jul 2009 20:43:09 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 64853 invoked by uid 500); 27 Jul 2009 20:43:09 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 64843 invoked by uid 99); 27 Jul 2009 20:43:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 20:43:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lukasz.lenart@googlemail.com designates 209.85.219.216 as permitted sender) Received: from [209.85.219.216] (HELO mail-ew0-f216.google.com) (209.85.219.216) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 20:42:59 +0000 Received: by ewy12 with SMTP id 12so4111100ewy.11 for ; Mon, 27 Jul 2009 13:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=+kKn1Im40w6yhirSDJdqxVoajrI32qPRh9c/5J0AXeM=; b=L6YfQtmcsiNKQev1xPKLQsJkFt11wm2OpSmBO6i8mXuXtdA1q8TG6gSH0wWegFEej/ ISqQA1Fg/068GWoDnyNUUdwKTF6M1CJTSr3PXuLQGxdrYh8Bzfid1DaUPGvUHLJwztVR AQ93E0PS5gosGlvFlpWNYJW4bIX+Z6XwGrb/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=x3nnwHNSChcqmVpgqwVoiKqktBnmthCCV/UobVCcxuCnYVZXQQKHpGGyyyzVBt4ZP5 Qi2nHfZsQhW+HBRG2xdV91RgcQKnBo9H3kW6S/3R64uV3gjvTw2VSYrv+d48gPV44646 gUgCIXZJdhMAVIivub6u1Za8WaoWaMLBdQDh0= MIME-Version: 1.0 Received: by 10.210.57.3 with SMTP id f3mr5558649eba.94.1248727357002; Mon, 27 Jul 2009 13:42:37 -0700 (PDT) Date: Mon, 27 Jul 2009 22:42:36 +0200 Message-ID: <9f960bad0907271342u3f6995a4g78dbc7f91262c4aa@mail.gmail.com> Subject: Xwork injecting From: Lukasz Lenart To: Struts Developers List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm working on two bugs regarding injecting custom TextProvider into XWork classes. The default TextProvider is defined in XWorkConfigurationProvider class, but when I tried to define my own bean in a xml config file, I've got exception: Caused by: Bean type interface com.opensymphony.xwork2.TextProvider with the name system has already been loaded by [unknown location] - bean - file:/C:/java-projects/xwork-2-1-x-trunk/core/target/test-classes/com/opensymphony/xwork2/config/providers/xwork-test-text-provider.xml:8:137 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:205) So, I removed the default TextProvider definition from XWorkConfigurationProvider class, update default xwork-default.xml file (which is mismatched in many places ;-) and so on. After few more changes only one test is falling: SpringObjectFactoryTest, but is it possible to override such definition and omit all that changes I made? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org