Re: log4j xml configuration

2003-10-06 Thread Fabio Uechi
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) {

Re: log4j xml configuration

2003-10-03 Thread jeffrey_chavis
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

Re: log4j xml configuration

2003-10-03 Thread Ceki Gülcü
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

Re: log4j xml configuration

2003-10-03 Thread Jacob Kjome
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

log4j xml configuration

2003-10-03 Thread jeffrey_chavis
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

log4j XML configuration

2003-02-11 Thread Sandilya
Does log4j support .xml (via DOMConfigurator) in version 1.2.6? The xml file is 1.1.2 version (no namespaces). thanks

my log4j xml configuration file cannot find dtd unless I use a full http url

2001-04-04 Thread Steven Richard Keech
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()