Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-44

[configuration] Composite configuration with JNDI logs failed access as ERROR

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: All

    • Bugzilla Id:
      36664

      Description

      This is a report from the Turbine developer list.

      Commons configuration 1.1 logs failed JNDI lookups at ERROR level. I use the
      composite configuration as follows

      <configuration>
      <jndi prefix="java:comp/env"/>
      <properties fileName="WEB-INF/conf/TurbineResources.properties"/>
      </configuration>

      This configuration is described in the configuration-howto of Turbine.
      The expected behaviour is that the entries in the JNDI context overwrite those
      in the properties file. That, in turn, means, that usually only a few
      configuration keys will exist in the JNDI context.

      In the current version of commons-configuration (1.1) this means an error entry
      in the log with every access to a not overridden configuration key (which are
      the majority).

      Could you please reduce the log level for this or return to the behaviour of
      version 1.0 not to log this at all?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tv Thomas Vandahl
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: