[logback-user] not finding property file import from WEB-INF/classes/logback.xml

Dennis Halladay dhalladay at somalogic.com
Fri Aug 20 19:36:15 CEST 2010

I am using logback in a Tomcat 6/Spring application.

Most of our property files are under WEB-INF.

I am getting the following error trying to import a property file.

11:25:41,110 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Found resource [logback.xml] at
11:25:41,449 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug
attribute not set
11:25:41,453 |-ERROR in ch.qos.logback.core.joran.action.PropertyAction
- Could not read properties file [../jdbc.properties].
java.io.FileNotFoundException: ..\jdbc.properties (The system cannot
find the file specified)

logback.xml contains:
  <property file="../jdbc.properties" />

Any suggestions?  What happens once I jar up the contents of classes and
move to the lib directory?

More information about the Logback-user mailing list