You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2003/09/22 15:33:46 UTC

DO NOT REPLY [Bug 23329] New: - resourceBundle property within XML configuration file does not work

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23329>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23329

resourceBundle property within XML configuration file does not work

           Summary: resourceBundle property within XML configuration file
                    does not work
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Configurator
        AssignedTo: log4j-dev@jakarta.apache.org
        ReportedBy: jmock@dsrnet.com


Attempting to initialize resource bundle property of root logger via XML 
configuration file.  Configurator recognizes "resourceBundle" to be a valid 
property name but throws a WARN message saying "Failed to set property 
[resourceBundle]".  Traced problem to setProperty() method of PropertySetter 
class.  Call to convertArg() does not return a valid 'arg' (i.e. null) since 
there is no processing within convertArg() to convert the 'val' parameter 
(which is the name of the resource bundle) to an object of the specified type 
(which is a java.util.ResourceBundle) which results in a 
PropertySetterException being thrown.  Only way to get resource bundles to 
work is to set them explicitly within source code via the setResourceBundle() 
method.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org