Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 31541 invoked from network); 8 Apr 2005 16:11:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Apr 2005 16:11:54 -0000 Received: (qmail 89461 invoked by uid 500); 8 Apr 2005 16:11:45 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 89418 invoked by uid 500); 8 Apr 2005 16:11:45 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 89394 invoked by uid 99); 8 Apr 2005 16:11:44 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of mfncooper@gmail.com designates 64.233.184.201 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.201) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 08 Apr 2005 09:11:43 -0700 Received: by wproxy.gmail.com with SMTP id 37so1146226wra for ; Fri, 08 Apr 2005 09:11:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=T4MuHn1OF+S6DjKpd81t6JU2AD7McmHOdaOF7acXiW+bx1/yo8mfcFGKU2Rj7cEevrP2+c8Aes9ShNlFG326Tay/7D1B9eVXXFeway6mza5s/s2mnmlWw50rHpkFjbdeD68ozTRddmh9EEcqFkWm/9ZTzFGAs2SAIo5fCXJgjZ0= Received: by 10.54.55.61 with SMTP id d61mr116092wra; Fri, 08 Apr 2005 09:11:41 -0700 (PDT) Received: by 10.54.57.61 with HTTP; Fri, 8 Apr 2005 09:11:41 -0700 (PDT) Message-ID: <16d6c620050408091167e96240@mail.gmail.com> Date: Fri, 8 Apr 2005 09:11:41 -0700 From: Martin Cooper Reply-To: Martin Cooper To: Jakarta Commons Users List Subject: Re: chains problems persists In-Reply-To: <425690E3.5080507@squadra.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <425690E3.5080507@squadra.com.br> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Apr 8, 2005 7:10 AM, Vinicius Caldeira Carvalho wrote: > Well I guess I tried everthing. From debuging the source code to read > the entire javadoc. I've just downloaded the latest nightly build from > chains, tried to understand both apps bundle within it. And as far as I > know I'm not very stupid. > > So I tried everthing, and I can say that The only way to put it to work > is through the old config style: > > > org.apache.commons.chain.CONFIG_WEB_RESOURCE > /WEB-INF/catalog.xml > > > > org.apache.commons.chain.CONFIG_ATTR > catalog > > > Otherwise the listener will *not* register my catalog with the context. > Well unless a magic happens, cuz on the ChainListener code there's no > code indicating that. Also I'd like to know how to use that > CatalogFactory, I did not find any way to initialize it. And trying to > use a ConfigCatalogRule as my rule-set throws an invocationtargetexception. > > Craig, dude I'm sorry I really didn't know who you are. Thanks for > struts ;) > > But guys, are you all using commons chains? How could this simple tasks > be done? I really don't see how to register my catalog with my > webcontext in other way besides the old depracated one... I am using Commons Chain, yes, and all I have in my web.xml is this: org.apache.commons.chain.CONFIG_WEB_RESOURCE /WEB-INF/chain-config.xml Then I access the catalog (I'm using the default catalog) like this: Catalog catalog = CatalogFactory.getInstance().getCatalog(); As simple as can be, and it all works just fine. :-) -- Martin Cooper > Thanks all > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org