DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31807>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31807

[chain] sample catalog.xml missing <catalog> tag

           Summary: [chain] sample catalog.xml missing <catalog> tag
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: chain
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Newest code is working great, except I ran into a small problem.  Digester 
wasn't parsing the catalog.xml I was providing through chain-listener.  I 
discovered that by adding a <catalog> tag as the root of my xml (which used to 
be <chains>) then everything worked fine.

I believe the problem was that because I did not specify 
a 'org.apache.commons.chain.CONFIG_ATTR' it called the overloaded 
parseWebResources method of ChainResources that omits the catalog argument.  
It appears that this method was intended for when you already have a catalog 
on the stack and want to add to it, but I'm not sure on that.  In any event, 
without the <catalog> tag, Digester complained that the stack was empty.

I don't think there is a really a bug here, but the catalog.xml included in 
the examples should probably show a <catalog> tag since this is what many 
people will be using as a reference when creating there own.  I will supply a 
patch when I get home tonight.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to