Struts 2
  1. Struts 2
  2. WW-1292

DefaultConfiguration swallows caused exception if webwork.properties is malformed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: WW 2.2.2
    • Fix Version/s: 2.0.0
    • Component/s: XML Configuration
    • Labels:
      None

      Description

      See the WW user forum
      http://forums.opensymphony.com/thread.jspa?messageID=52690&#52690

      public DefaultConfiguration() {
      // Create default implementations
      // Use default properties and webwork.properties
      ArrayList list = new ArrayList();

      try

      { list.add(new PropertiesConfiguration("webwork")); }

      catch (Exception e)

      { log.warn("Could not find webwork.properties"); }

      In the log.war we should at least have e as the cause as 2nd parameter

      Change it to:
      log.warn("Could not find webwork.properties", e);

      And maybe the text "Could not find webwork.properties" should be "Could not find or error in webwork.properties"

        Activity

          People

          • Assignee:
            Rainer Hermanns
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development