Logging System Failed To Initialise Using Configuration From 'Null'

In spring you can make common config XML file and reuse it. you can include XML file to other file using include tag

<include resource="config.xml"/>

Some timei its not enough and you can face error message stating System Failed To Initialise Using Configuration From 'Null'.

For specific scenario if we try to include our common XML config in logback-spring.xml then suddenly we face

Logging System Failed To Initialize Using Configuration From 'Null'.

Specific reason for Failed To Initialize Using Configuration From 'Null' Error

  • Your xml file has some syntax error
  • You did not use include tag to include xml file
  • Main important issue your common config has xml tag <xml>

If you are making common config file then it should not start with <xml> tag. It is happens to be included in other xml config file. so 2 <xml> tag creats an issue.

Make sure your common xml config file do not contain tag and check its syntax. This is the ultimate solution for this issue.

Related Articles

js interview questions