[opencms-dev] Bug: if tomcat path has spaces, the log file is not set
Christof Dallermassl
ce-christof.dallermassl at bearingpoint.com
Wed Nov 9 10:35:29 CET 2005
Hi!
CmsLog has a bug in handling paths with spaces: one of our tomcats is located
in "C:\JAVA_Development\Tomcat 5.0\" and therefore the url from
Loader.getResource("log4j.properties") returns
C:\JAVA_Development\Tomcat%205.0\webapps\opencms\WEB-INF\config\opencms.xml
as the path. this path is then used to create a File object.
The problem is the url-encoded path will not work in the File class, so the
file cannot be found. The path needs to be urldecoded first!
regards
Christof Dallermassl
More information about the opencms-dev
mailing list