<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
    #email-body { min-width: 30em !important; }
    #email-page { padding: 8px !important; }
    #email-banner { padding: 8px 8px 0 8px !important; }
    #email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
    #email-fields { padding: 0 8px 8px 8px !important; }
    #email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
    <tr valign="top">
        <td id="email-page" style="padding:16px !important;">
            <table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
                <tr valign="top">
                    <td bgcolor="#003366" style="background-color:#003366;color:#ffffff;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="http://jira.qos.ch/s/en_USb9v8hf-418945332/850/27/_/jira-logo-scaled.png" alt="" style="vertical-align:top;" /></td>
                </tr><tr valign="top">
    <td id="email-banner" style="padding:32px 32px 0 32px;">
        
                
        
        
            <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
                                        <img id="email-avatar" src="http://jira.qos.ch/secure/useravatar?avatarId=10122" alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px 0;" />
                        <div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
                                    <a class="user-hover" rel="danielwang" id="email_danielwang" href="http://jira.qos.ch/secure/ViewProfile.jspa?name=danielwang" style="color:#326ca6;">daniel.ruiqing.wang</a>
     created <img src="http://jira.qos.ch/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#326ca6;text-decoration:none;' href='http://jira.qos.ch/browse/LOGBACK-1091'>LOGBACK-1091</a>
            </div>
                        <div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
                <a style='color:#326ca6;text-decoration:none;' href='http://jira.qos.ch/browse/LOGBACK-1091'><strong>Error occur when parsing logback.xml if the logback.xml declared external entities</strong></a>
            </div>
                    </td>
    </tr>
</table>
    </td>
</tr>
<tr valign="top">
    <td id="email-fields" style="padding:0 32px 32px 32px;">
        <table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
            <tr valign="top">
                <td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Issue Type:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                <img src="http://jira.qos.ch/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug">        Bug
    </td>
</tr>                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Affects Versions:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                    1.1.3            </td>
</tr>
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Assignee:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                                        <a class="user-hover" rel="logback-dev@qos.ch" id="email_logback-dev@qos.ch" href="http://jira.qos.ch/secure/ViewProfile.jspa?name=logback-dev%40qos.ch" style="color:#326ca6;">Logback dev list</a>
                </td>
</tr>                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Attachments:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                    common.body.ent,                     common.ent,                     logback.xml            </td>
</tr>
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Components:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                    logback-classic,                     logback-core            </td>
</tr>
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Created:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
        14/Jul/15 11:50 AM
    </td>
</tr>                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Description:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
        <p style='margin-top:0;margin-bottom:10px;'>An exception occur saying the external entity file could not be found even actually the file put in the correct path. I try to parse the logback.xml with w3c dom. the xml could be parsed. that means the path of the external entity file is correct.</p>

<p style='margin-top:0;margin-bottom:10px;'>Exception message:</p>

<p style='margin-top:0;margin-bottom:10px;'>Failed to auto configure default logger context<br/>
Reported exception:<br/>
ch.qos.logback.core.joran.spi.JoranException: Problem parsing XML document. See previously reported errors.<br/>
        at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:67)<br/>
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:134)<br/>
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)<br/>
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)<br/>
        at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)<br/>
        at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)<br/>
        at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)<br/>
        at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)<br/>
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)<br/>
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)<br/>
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)<br/>
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)<br/>
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:304)<br/>
        at com.kingland.independence.Test.main(Test.java:9)<br/>
Caused by: org.xml.sax.SAXException: Stopping after fatal error: File "common.ent" not found.<br/>
        at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1245)<br/>
        at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntity(DefaultEntityHandler.java:780)<br/>
        at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromParameterEntity(DefaultEntityHandler.java:703)<br/>
        at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromEntity(DefaultEntityHandler.java:588)<br/>
        at org.apache.xerces.framework.XMLDTDScanner.scanDecls(XMLDTDScanner.java:1498)<br/>
        at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1123)<br/>
        at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2145)<br/>
        at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2100)<br/>
        at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:831)<br/>
        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)<br/>
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)<br/>
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)<br/>
        at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:61)<br/>
        ... 13 more<br/>
17:36:36,538 |-INFO in ch.qos.logback.classic.LoggerContext<span class="error">[default]</span> - Could NOT find resource <span class="error">[logback.groovy]</span><br/>
17:36:36,538 |-INFO in ch.qos.logback.classic.LoggerContext<span class="error">[default]</span> - Found resource <span class="error">[logback-test.xml]</span> at <a href="file:/C:/Development/Hub/Master/Independence/Independence/webApplication/WEB-INF/classes/logback-test.xml" class="external-link">file:/C:/Development/Hub/Master/Independence/Independence/webApplication/WEB-INF/classes/logback-test.xml</a><br/>
17:36:36,881 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder@2c54366 - XML_PARSING - Parsing fatal error on line 0 and column 0 org.xml.sax.SAXParseException; systemId: ; lineNumber: 0; columnNumber: 0; File "common.ent" not found.<br/>
        at org.xml.sax.SAXParseException: File "common.ent" not found.<br/>
        at      at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1219)<br/>
        at      at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntity(DefaultEntityHandler.java:780)<br/>
        at      at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromParameterEntity(DefaultEntityHandler.java:703)<br/>
        at      at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromEntity(DefaultEntityHandler.java:588)<br/>
        at      at org.apache.xerces.framework.XMLDTDScanner.scanDecls(XMLDTDScanner.java:1498)<br/>
        at      at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1123)<br/>
        at      at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2145)<br/>
        at      at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2100)<br/>
        at      at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:831)<br/>
        at      at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)<br/>
        at      at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)<br/>
        at      at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)<br/>
        at      at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:61)<br/>
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:134)<br/>
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)<br/>
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)<br/>
        at      at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)<br/>
        at      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)<br/>
        at      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)<br/>
        at      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)<br/>
        at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)<br/>
        at      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)<br/>
        at      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)<br/>
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)<br/>
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:304)<br/>
        at      at com.kingland.independence.Test.main(Test.java:9)</p>


<p style='margin-top:0;margin-bottom:10px;'>-----------------------------------------------------------------------------------------</p>

<p style='margin-top:0;margin-bottom:10px;'>My test code:</p>

<p style='margin-top:0;margin-bottom:10px;'>package com.kingland.independence;</p>

<p style='margin-top:0;margin-bottom:10px;'>import javax.xml.parsers.DocumentBuilder;<br/>
import javax.xml.parsers.DocumentBuilderFactory;</p>

<p style='margin-top:0;margin-bottom:10px;'>import org.w3c.dom.Document;<br/>
import org.w3c.dom.Node;<br/>
import org.w3c.dom.NodeList;</p>

<p style='margin-top:0;margin-bottom:10px;'>public class Test {</p>

<p style='margin-top:0;margin-bottom:10px;'>      public static void main(String[] args) throws Exception {<br/>
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<br/>
                DocumentBuilder builder = factory.newDocumentBuilder();<br/>
                Document doc = builder.parse("C:\\Development\\Hub\\Master\\Independence\\Independence\\webApplication\\WEB-INF\\classes<br class="atl-forced-newline" />logback.xml");<br/>
                NodeList nodes = doc.getElementsByTagName("pattern");<br/>
                for (int i = 0; i < nodes.getLength(); i++)</p>
{
                        Node node = nodes.item(i);
                        System.out.println(node.getFirstChild().getNodeValue());
                }
<p style='margin-top:0;margin-bottom:10px;'>      }</p>

<p style='margin-top:0;margin-bottom:10px;'>}</p>


<p style='margin-top:0;margin-bottom:10px;'>-----------------------------------------------------------------------------------------</p>

<p style='margin-top:0;margin-bottom:10px;'>My logback.xml file:</p>

<p style='margin-top:0;margin-bottom:10px;'><?xml version="1.0" encoding="UTF-8"?><br/>
<!DOCTYPE configuration[<br/>
<!ENTITY % common SYSTEM "common.ent"> %common;<br/>
]><br/>
<!-- used for BVT/UAT/PROD environment, will not include debug information <br/>
        and print in console --><br/>
<configuration scan="true"><br/>
        <conversionRule conversionWord="crlf"<br/>
                converterClass="org.owasp.security.logging.mask.CRLFConverter" /><br/>
        <include resource="logback-common.xml" /><br/>
    <appender name="Console" class="ch.qos.logback.core.ConsoleAppender">    <br/>
           <filter class="ch.qos.logback.classic.filter.ThresholdFilter"><br/>
            <level>ERROR</level><br/>
        </filter><br/>
        <layout class="ch.qos.logback.classic.PatternLayout"><br/>
            <pattern>%d</p>
{&LOGGING_DATE_PATTERN; &LOGGING_TIME_PATTERN;}
{&LOGGING_TIME_ZONE;}
<p style='margin-top:0;margin-bottom:10px;'> <span class="error">[%thread]</span> <span class="error">[%marker]</span> %-5level %logger</p>
{36}
<p style='margin-top:0;margin-bottom:10px;'> throwable</p>
{full}
<p style='margin-top:0;margin-bottom:10px;'> - %crlf(%msg) %n</pattern><br/>
        </layout><br/>
    </appender><br/>
        <root level="INFO"><br/>
                <appender-ref ref="Console" /><br/>
                <appender-ref ref="IndyLogFile" /><br/>
        </root><br/>
</configuration></p>
    </td>
</tr>
                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Environment:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
        <p style='margin-top:0;margin-bottom:10px;'>jdk 7u67, slf4j1.1.12 </p>
    </td>
</tr>
                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Project:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
        <a style="color:#326ca6;" href="http://jira.qos.ch/browse/LOGBACK">logback</a>
    </td>
</tr>                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Priority:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                        <img src="http://jira.qos.ch/images/icons/priorities/blocker.png" height="16" width="16" border="0" align="absmiddle" alt="Blocker">                Blocker
    </td>
</tr>
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Reporter:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 10px 0;width:100%;">
                                        <a class="user-hover" rel="danielwang" id="email_danielwang" href="http://jira.qos.ch/secure/ViewProfile.jspa?name=danielwang" style="color:#326ca6;">daniel.ruiqing.wang</a>
                </td>
</tr>                                                                    </table>
                </td>
            </tr>
        </table>
    </td>
</tr>













            </table>
        </td><!-- End #email-page -->
    </tr>
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
            This message is automatically generated by JIRA.<br />
            If you think it was sent incorrectly, please contact your JIRA administrators<br />
            For more information on JIRA, see: <a style='color:#326ca6;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
        </td>
    </tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->