commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trenton D. Adams" <>
Subject Commons Configuration XML problem
Date Tue, 17 Oct 2006 23:12:54 GMT
Hi guys,

I'm playing with commons-configuration.  It doesn't appear to be working
correctly.  it is loading my config file, as the getRootElementName()
does return the appropriate string.

The log entries return null.  I've attached a sample
config.  Any help to shed light on this issue would be much appreciated.


          XMLConfiguration config = new XMLConfiguration(
"File: " + config.getFileName());
"root element: " + config.getRootElementName());
"display:" +
"display:" + config.getString(""));
          Collection collection =
          if (collection != null)
              Iterator menus = collection.iterator();
              while (menus.hasNext())
        "menus." +;
      catch(ConfigurationException cex)
	// this reports NOTHING.  There appears to be no errors.
          logger.error("Configuration error: " + cex);

    This communication is intended for the use of the recipient to whom it
    is addressed, and may contain confidential, personal, and or privileged
    information. Please contact us immediately if you are not the intended
    recipient of this communication, and do not copy, distribute, or take
    action relying on it. Any communications received in error, or
    subsequent reply, should be deleted or destroyed.

View raw message