[opencms-dev] No opencms.log file in version 9.5?

Antonio Cordeddu antoniocordeddu at coranto.it
Wed Apr 22 10:28:30 CEST 2015


About this issue I made some deeper investigation.

I resume the problem: I have a Windows 7, Apache Tomcat 7.0.42 installed 
on C:\Program Files\Apache Software Foundation\Tomcat 7.0\
In this Tomcat installation I have two OpenCms webapps (OpenCms 8.5.2 
and OpenCms 9.5.1); in the first one (OpenCms 8.5.2)  the OpenCms log 
runs as expected, in the second one the log doesn't work.

I made some test and debug starting by the code in 
org.opencms.main.CmsLog class, so I saw that the path files are encoded 
with the %20 for the blank character.
So I had the suspect that the problem could be the blank character. 
After this I installed Tomcat in a directory without blank character 
(C:/Tomcat7) and the opencms.log file for OpenCms 9.5.1 was created 
correctly.
I hope this is useful for someone in mailing list.

Antonio Cordeddu


On 16/01/2015 11:58, Christoph Kukulies wrote:
> Am 16.01.2015 um 11:31 schrieb Ana RD:
>> opencms.logfile=C:\\Program Files\\Apache Software Foundation\\Tomcat 
>> 7.0\\webapps\\opencms\\WEB-INF\\logs\\opencms.log 
>> <file://program%20files//Apache%20Software%20Foundation//Tomcat%207.0//webapps//opencms//WEB-INF//logs//opencms.log>
>
> This works with me here now (tomcat6),  no matter how
> opencms.set.logfile=true or false
> is set.
>
> First I thought to put the filename in quotes (""). But one has to 
> write it without quotes as you state it above
> in Windows manner (backslashes).
>
> Still strange.
>
> Although it's in the comment, but there is a missing / here (after 
> ${classes}):
>
>       # then the log is written to "${classes}../logs/opencms.log".
>
> Maybe it's in the source code missing as well?
>
> -- 
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-- 
_______________________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA) - Italy
antoniocordeddu at coranto.it
http://www.coranto.it
_______________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150422/b2d0d76d/attachment.htm>


More information about the opencms-dev mailing list