Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Nightly Builds
-
None
-
None
-
Operating System: other
Platform: Other
-
31807
Description
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.