Spring context.xml truncate path on windows

11 views
Skip to first unread message

Nicola Micheli

unread,
Aug 6, 2021, 4:57:47 AM8/6/21
to Getting started with Spring Framework
I have this file context.xml

<?xml version="1.0" encoding="UTF-8"?>
<Context>     
<Parameter name="log4jConfigLocation" 
    value="file:${catalina.base}\conf\log4j.properties" />

  <Parameter name="contextConfigLocation" 
value="file:${catalina.base}\conf\applicationContext.xml/>
..
...

The path of ${catalina.base} for the first  parameter log4jConfigLocation is correct 
C:\Program Files\apache-tomcat-7.0.108  and finally is  
C:\Program Files\apache-tomcat-7.0.108\conf\log4j.properties

The path of ${catalina.base} for the parameter contextConfigLocation is truncate to 'C:\Program' when there is first space


Reply all
Reply to author
Forward
0 new messages