You have to invoke the DOMConfigurator.configure method instead
of the PropertyConfigurator one.
URL log4jURL = null;
try {
log4jURL = getServletContext().getResource("/" +
configPath);
} catch (MalformedURLException murle) {
//ignore...we check for null later
}
if (log4jURL != null) {
OK, I added a file named log4j.xml to a directory in the classpath
and this works wonderfully.
The next question is I want to use the PropertyConfigurator to load a
named config file. When I pass the PropertyConfigurator a non-xml
file it works, but if I pass it an xml file it does not. Is ther
At 12:11 PM 10/3/2003 -0500, you wrote:
At 03:43 PM 10/3/2003 +, you wrote:
I am having problems getting log4j to configure from an XML file.
When I use the xml file shown below, i get the following warning in
java (1.4.1_02). Note: When I use a non-XML properties file it works
just fine.
log4j
At 03:43 PM 10/3/2003 +, you wrote:
I am having problems getting log4j to configure from an XML file.
When I use the xml file shown below, i get the following warning in
java (1.4.1_02). Note: When I use a non-XML properties file it works
just fine.
log4j:WARN No appenders could be found for lo
I am having problems getting log4j to configure from an XML file.
When I use the xml file shown below, i get the following warning in
java (1.4.1_02). Note: When I use a non-XML properties file it works
just fine.
log4j:WARN No appenders could be found for logger
(edu.jhuapl.latency.GNCSTlaten
Does log4j support .xml (via DOMConfigurator) in version 1.2.6? The xml
file is 1.1.2 version (no namespaces).
thanks
Our servlet/jsp application runs in Websphere 3.5.3. We developed it in
Visual Age for Java 3.5 with its Websphere Test Environment (WTE). WTE is
simplified version of the real Websphere 3.5 environment.
I'm configuring log4j during the servlet init() method using the
DOMConfigurator.configure()