Current HEAD (today)

Reported error: "Parsing fatal error" at line 2 column -1 with exception 
org.xml.sax.SAXParseException: Relative URI "log4j.dtd"; can not be resolved 
without a base URI.
Reported error: "Problem parsing XML document. See previously reported errors. 
Abandoning all furhter processing." at line -1 column -1

To get this output, I locally modified JoranConfigurator to print the error 
items:

  public void doConfigure(URL url, LoggerRepository repository) {
    // This line is needed here because there is logging from inside this 
method.
    this.repository = repository;

    ExecutionContext ec = joranInterpreter.getExecutionContext();
    List errorList = ec.getErrorList();

    int result = XMLUtil.checkIfWellFormed(url, errorList);
    switch (result) {
    case XMLUtil.ILL_FORMED:
    case XMLUtil.UNRECOVERABLE_ERROR:
      errorList.add(
        new ErrorItem(
          "Problem parsing XML document. See previously reported errors. 
Abandoning all furhter processing."));
    for (Iterator iter = errorList.iterator();iter.hasNext();) {
        ErrorItem item = (ErrorItem)iter.next();
        System.out.println(item);

    }

    return;
    }



-----Original Message-----
From:   Ceki Gülcü [mailto:[EMAIL PROTECTED]
Sent:   Mon 11/29/2004 11:18 AM
To:     Log4J Developers List; Log4J Developers List
Cc:     
Subject:        RE: Joran not reporting config errors
At 07:57 PM 11/29/2004, Scott Deboy wrote:

>-----Original Message-----
>From:   Scott Deboy
>Sent:   Mon 11/29/2004 10:12 AM
>To:     Log4J Developers List
>Cc:
>Subject:        RE: Joran not reporting config errors
>I'm using -Dlog4j.configuration=somefile.xml, I'm not configuring Joran 
>programmatically, so I can't call 
>joranConfiguratorInstance.getErrorList.  I'd expect these errors to end up 
>on the console like other config diagnostic info if you're doing an 
>auto-config.

There is will work being done on the default configuration code. We'll 
tackle this problem later.

>Log4J HEAD

When was your last update?

>jdk1.4.2_05
>WinXP
>built-in XML libraries

That's awfully strange. On my side, using JDK 1.4.1 the log4j unit tests 
runs fine and there are a bunch of older XML files with references to 
log4j.dtd. On my linux box witj JDK 1.5, all the tests except 
SizeBasedRollinTest (a test unrelated with Joran) run fine.

Can you make sure you are running the latest code (or alpha3) and send me 
the error list generated?



-- 
Ceki Gülcü

  The complete log4j manual:  http://qos.ch/eclm
  Professional log4j support: http://qos.ch/log4jSupport  



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to