commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sia far" <sia_...@hotmail.com>
Subject Re: chains 1.1
Date Wed, 28 Jun 2006 13:24:35 GMT
Thank you for your reply. As you metioned the problem was using the 
deprecated feature org.apache.commons.chain.CONFIG_ATTR and then trying to 
retrieve the catalog from the servlet context. Once I made the changes, 
everything is fine now.

thanx for your tip, it is appreciated greatly.


>From: "Niall Pemberton" <niall.pemberton@gmail.com>
>Reply-To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
>To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
>Subject: Re: chains 1.1
>Date: Sun, 25 Jun 2006 05:43:23 +0100
>
>I haven't used ChainListener, but can you say more about what you mean
>by "fail to load".
>
>* Are you seeing errors - if so give more details
>* Or is it that you just can't find the parsed "catalog" - if so
>please say how you're trying to get hold of the catalog.
>
>Can you also provide the init parameters you're using to configure the
>ChainListener.
>
>My understanding is that if you use the <catalog> element then you
>should be accessing it via the
>CatalogFactory.getInstance().getCatalog() mechanism - rather than
>configuring an "org.apache.commons.chain.CONFIG_ATTR" init parameter:
>
>  http://tinyurl.com/m6qyq
>
>Another thing to check is whether your catalog.xml is in the right place.
>
>Niall
>
>On 6/21/06, sia far <sia_far@hotmail.com> wrote:
>>Hello:
>>
>>I am loading the catalog.xml using ChainLinstener in my application. If I
>>use the following catalog.xml file all the chains are loaded successfully.
>>
>><?xml version="1.0" encoding="UTF-8"?>
>><chains>
>>        <chain name="productDetails">
>>                <command 
>>className="iadm.readme.cmd.StartReadOnlyTransaction" />
>>                <command className="iadm.readme.cmd.ProductDetails" />
>>                <command className="iadm.readme.cmd.CommitTransaction" />
>>        </chain>
>>
>>        <chain name="productUpdate">
>>                <command className="iadm.readme.cmd.StartTransaction" />
>>                <command className="iadm.readme.cmd.ProductDetails" />
>>                <command 
>>className="iadm.readme.cmd.ProductUpdateValidation" />
>>                <command className="iadm.readme.cmd.ProductUpdate" />
>>                <command className="iadm.readme.cmd.CommitTransaction" />
>>        </chain>
>>
>>        <chain name="productLockDetails">
>>                <command className="iadm.readme.cmd.AllAdminProducts" />
>>                <command 
>>className="iadm.readme.cmd.StartReadOnlyTransaction" />
>>                <command className="iadm.readme.cmd.ProductDetails" />
>>                <command className="iadm.readme.cmd.LockDetails" />
>>                <command className="iadm.readme.cmd.CommitTransaction" />
>>        </chain>
>>
>>        <chain name="productLockUpdate">
>>                <command className="iadm.readme.cmd.AllAdminProducts" />
>>                <command className="iadm.readme.cmd.StartTransaction" />
>>                <command className="iadm.readme.cmd.ProductDetails" />
>>                <command className="iadm.readme.cmd.UpdateLockDetails" />
>>                <command className="iadm.readme.cmd.CommitTransaction" />
>>        </chain>
>>
>>        <chain name="allRolesLookup">
>>                <command 
>>className="iadm.readme.cmd.StartReadOnlyTransaction" />
>>                <command className="iadm.readme.cmd.AllRolesRetrieval" />
>>                <command className="iadm.readme.cmd.CommitTransaction" />
>>        </chain>
>>
>></chains>
>>
>>however, if I use the catalog.xml in the format suggested in the cookbook,
>>none of the commands or chains are loaded. Here the xml I use and it fails
>>to load:
>>
>><?xml version="1.0" encoding="UTF-8"?>
>><catalog>
>>
>>                <chain name="productDetails">
>>                        <command
>>                                
>>className="iadm.readme.cmd.StartReadOnlyTransaction" />
>>                        <command 
>>className="iadm.readme.cmd.ProductDetails" />
>>                        <command 
>>className="iadm.readme.cmd.CommitTransaction" />
>>                </chain>
>>
>>                <chain name="productUpdate">
>>                        <command 
>>className="iadm.readme.cmd.StartTransaction" />
>>                        <command 
>>className="iadm.readme.cmd.ProductDetails" />
>>                        <command
>>                                
>>className="iadm.readme.cmd.ProductUpdateValidation" />
>>                        <command className="iadm.readme.cmd.ProductUpdate" 
>>/>
>>                        <command 
>>className="iadm.readme.cmd.CommitTransaction" />
>>                </chain>
>>
>>                <chain name="productLockDetails">
>>                        <command 
>>className="iadm.readme.cmd.AllAdminProducts" />
>>                        <command
>>                                
>>className="iadm.readme.cmd.StartReadOnlyTransaction" />
>>                        <command 
>>className="iadm.readme.cmd.ProductDetails" />
>>                        <command className="iadm.readme.cmd.LockDetails" 
>>/>
>>                        <command 
>>className="iadm.readme.cmd.CommitTransaction" />
>>                </chain>
>>
>>                <chain name="productLockUpdate">
>>                        <command 
>>className="iadm.readme.cmd.AllAdminProducts" />
>>                        <command 
>>className="iadm.readme.cmd.StartTransaction" />
>>                        <command 
>>className="iadm.readme.cmd.ProductDetails" />
>>                        <command 
>>className="iadm.readme.cmd.UpdateLockDetails" />
>>                        <command 
>>className="iadm.readme.cmd.CommitTransaction" />
>>                </chain>
>>
>>                <chain name="allRolesLookup">
>>                        <command
>>                                
>>className="iadm.readme.cmd.StartReadOnlyTransaction" />
>>                        <command 
>>className="iadm.readme.cmd.AllRolesRetrieval" />
>>                        <command 
>>className="iadm.readme.cmd.CommitTransaction" />
>>                </chain>
>>
>></catalog>
>>
>>
>>Any idea why this fails?, I would appreciate you replies in advance.
>>
>>
>>
>>---------------------------------------------------------------------
>>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
>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message