<div dir="ltr">Hi everyone, <div><br></div><div>I'm working on OpenCMS 8.5.2 and I'm getting some problems to change the log location.<br>I would like to write logs inside jboss' log location instead of opencms one. </div>
<div><br></div><div>To define the log location, I modified the file [...]/WEB-INF/classes/log4j.properties to :</div><div><span style="background-color:rgb(238,238,238)">log4j.appender.OC.File=${jboss.server.log.dir}/opencms.log</span><br>
</div><div>This part is working well. (file created and filled)</div><div><br></div><div>But in OpenCMS, when I define the log locaton thought "Administration View > Workplace Tools > Log File > Logfile Viewer Settings", I got the following errors : </div>
<div><span style="color:rgb(180,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-weight:bold">Unable to write value "[...]\<a href="http://jboss-5.1.0.GA">jboss-5.1.0.GA</a>\server\opencms\log\opencms.log" to property "File path" on object "org.opencms.util.CmsRfsFileViewer".</span><br style="color:rgb(180,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-weight:bold">
<span style="color:rgb(180,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-weight:bold">Impossible to read from the file "[...]\<a href="http://jboss-5.1.0.GA">jboss-5.1.0.GA</a>\server\opencms\log\opencms.log".</span></div>
<div><br></div><div>The file is found (otherwise, another message, I tried) but isn't readable by opencms. (works well with notepad, for exemple)</div><div><br></div><div>My server is under Windows. </div><div>Could it be any rights issue ?</div>
<div>Do you have any idea ?</div><div><br></div><div>Thanks for help, </div><div>Regards, </div><div>Matthias Griselle</div></div>