[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
[file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/we
bapps/PharmaServices/WEB-INF/classes/logback.xml]
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:
<configuration>
  <property file="../jdbc.properties" />

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



More information about the Logback-user mailing list