Guys,

The original error was reported in the following bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12366 which shows the
stack trace from someone else's application. The error below was the same as
the one I was receiving.

log4j:ERROR Could not parse input source [org.xml.sax.InputSource@cd107f].
java.net.MalformedURLException: no protocol: log4j.dtd
  at java.net.URL.<init>(URL.java:579)
  :
<snip>
  :
  at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
  at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:672)

I have tried to reproduce the error again but can't get our application back
to the same set of libraries that produced the orginal problem, with lots of
trying today (I knew I should have designed a test case at that point).

Anyway the approach provided in the fix is the correct way to look up a dtd
using the JAXP apis and should be supported by all parsers.

Also as mentioned before using this approach you can start to support using
a public id for the log4j.dtd file.

Paul


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

Reply via email to