DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42623>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42623

           Summary: log4j.dtd does not parse when xml namespaces are enabled
           Product: Log4j
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configurator
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: [EMAIL PROTECTED]


We cannot use log4j in applications where XML namespaces need to be enabled.

The exception as shown below is thrown.

While there may be ways of changing the application to code around this (eg by
having multiple DocumentBuilderFactory's) this is very inconvenient.

The problem is the use of the colon (:) in the name "log4j:configuration" in the
 log4j.dtd file. It would be preferable to use underscore or some other 
character.

Sample exception:

ERROR configuration.ConfigurationInXml: load() Exceptionjava.lang.Exception:
Problem parsing XML: org.xml.sax.SAXParseException: A colon is not allowed in
the name 'log4j:configuration' when namespaces are enabled.
java.lang.Exception: Problem parsing XML: org.xml.sax.SAXParseException: A colon
is not allowed in the name 'log4j:configuration' when namespaces are enabled.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to