Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-10

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • 1.0
    • 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.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--catalog.xml
          0.5 kB
          Sean Schofield

        Activity

          People

            Unassigned Unassigned
            schof Sean Schofield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: