I'm getting the following error during the parsing of my XML configuration
file using the supplied DTD.

Error: URI=jndi:/localhost/pulse/WEB-INF/log4j.xml Line=10: Undeclared
prefix: "log4j:configuration".
171 [main] ERROR pulse.servlet.ContextServlet  - error parsing logging
configuration file
java.lang.NullPointerException
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:523)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
        at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1
79)
[snip]

Patching the DTD to add a xmlns:log4j attribute fixes the problem:

*** log4j.dtd Wed May 30 14:48:20 2001
--- log4j-patched.dtd Wed May 30 14:50:39 2001
***************
*** 32,37 ****
--- 32,38 ----
    disableOverride          (true|false|null)  "null"
    debug                    (true|false|null)  "null"
    configDebug              (true|false|null)  "null"
+   xmlns:log4j CDATA #FIXED "http://jakarta.apache.org/log4j";
  >


Jeff Hutchison
Manager, Web Development 
Stryker Instruments

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

Reply via email to