Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 15014 invoked from network); 17 Mar 2005 21:16:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Mar 2005 21:16:41 -0000 Received: (qmail 14448 invoked by uid 500); 17 Mar 2005 21:16:36 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 14407 invoked by uid 500); 17 Mar 2005 21:16:36 -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 14388 invoked by uid 99); 17 Mar 2005 21:16:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_60_70,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from txgw.jda.com (HELO txgw.jda.com) (208.18.125.82) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 17 Mar 2005 13:16:34 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C52B36.A56E8562" Subject: [Chain] Trying to use ChainListener Date: Thu, 17 Mar 2005 15:16:55 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Chain] Trying to use ChainListener Thread-Index: AcUrNqVirOohwtEQRGGHVgrWqcf8uA== From: "Mike Miller" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C52B36.A56E8562 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am just starting with the Commons Chain package and am trying to use the ChainListener to load my small test catalog. The listener fires but does not put anything in the catalog. I know if finds my resource file, but the catalog is empty coming out of ChainListener. Below is a copy of my catalog.xml and web.xml. Can someone please tell me what I am missing? =20 Here's the snippet of code trying to execute the chain (alot this was copied from the Chains cookbook doc) =20 ServletContext servletContext =3D request.getSession().getServletContext(); =20 Catalog catalog =3D (Catalog) servletContext.getAttribute("catalog"); Command command =3D catalog.getCommand(name); boolean stop =3D command.execute(context); =20 =20 =20 =20 =20 =20 =20 =20 TestServlet Testing =20 =20 org.apache.commons.chain.CONFIG_CLASS_RESOURCE resources/catalog.xml org.apache.commons.chain.CONFIG_ATTR catalog =20 org.apache.commons.chain.web.ChainListener =20 TestServlet util.servlet.TestServlet =20 TestServlet /test/* =20 =20 =20 Mike Miller JDA Software Group, Inc. 7501 Ester's Blvd, Suite 100 Irving, Texas 75063 =20 ------_=_NextPart_001_01C52B36.A56E8562--