<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi Paul,</div><div><br></div><div>try to check if the log file is present:</div><div>../WEB-INF/logs/opencms-search.log</div><div><br></div><div>When it's missing, create blank file (with appropriate rights).</div><div><br></div><div>Log appender "OCSearch" is set in the config file:</div><div>../WEB-INF/classes/log4j.properties<br><br>S pozdravem / Kind regards<br><br>Filip Kratochvil<br></div><br><font color="#990099">-----opencms-dev-bounces@opencms.org wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: "opencms-dev@opencms.org" <opencms-dev@opencms.org><br>From: Paul Edison <paul.finnedison@outlook.com><br>Sent by: opencms-dev-bounces@opencms.org<br>Date: 03/02/2019 04:12PM<br>Subject: [opencms-dev] OpenCMS 9.5 missing DailyRollingFileAppender - where does it look for?<br><br>
<!--Notes ACF
<meta http-equiv="Content-Type" content="text/html; charset=utf8">-->
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"><font color="#000000">
<span>Dear all,<br>
</span>
<div><br>
</div>
<div>Currently I have some issues with the logging of my OpenCMS 9.5.0 instance.<br>
</div>
<div>In my error file I see something like this:<br>
</div>
<div>> log4j:ERROR Could not instantiate class [org.apache.log4j.org.apache.log4j.DailyRollingFileAppender].<br>
</div>
<div>> java.lang.ClassNotFoundException: org.apache.log4j.org.apache.log4j.DailyRollingFileAppender<br>
</div>
<div><br>
</div>
<div>> log4j:ERROR Could not instantiate appender named "OCSearch".<br>
</div>
<div>> log4j:WARN No appenders could be found for logger (org.opencms.init).<br>
</div>
<div>> log4j:WARN Please initialize the log4j system properly.<br>
</div>
<div><br>
</div>
<div>(see more below)<br>
</div>
<div><br>
</div>
<div>But OpenCMS seems to start up normally and don't have a problem - aside form not real logging.<br>
</div>
<div>Now My question is how do I get to know what artifact (JAR) is missing and where does OpenCMS it expect to be?<br>
</div>
<div>In the past it seems to be working fine.</div>
<div><br>
</div>
<div>Regards,<br>
</div>
<div>Paul<br>
</div>
<div><br>
</div>
<div>PS: It is running on Oracle WebLogic 12c<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>log4j:ERROR Could not instantiate class [org.apache.log4j.org.apache.log4j.DailyRollingFileAppender].<br>
</div>
<div>java.lang.ClassNotFoundException: org.apache.log4j.org.apache.log4j.DailyRollingFileAppender<br>
</div>
<div>at com.oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:264)<br>
</div>
<div>at com.oracle.classloader.weblogic.LaunchClassLoader.loadClass(LaunchClassLoader.java:62)<br>
</div>
<div>at java.lang.ClassLoader.loadClass(ClassLoader.java:357)<br>
</div>
<div>at java.lang.Class.forName0(Native Method)<br>
</div>
<div>at java.lang.Class.forName(Class.java:264)<br>
</div>
<div>at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)<br>
</div>
<div>at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:317)<br>
</div>
<div>at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120)<br>
</div>
<div>at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:629)<br>
</div>
<div>at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)<br>
</div>
<div>at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)<br>
</div>
<div>at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)<br>
</div>
<div>at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)<br>
</div>
<div>at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)<br>
</div>
<div>at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)<br>
</div>
<div>at java.lang.Class.forName0(Native Method)<br>
</div>
<div>at java.lang.Class.forName(Class.java:348)<br>
</div>
<div><br>
</div>
<div>...<br>
</div>
<div><br>
</div>
<div>log4j:ERROR Could not instantiate appender named "OC".<br>
</div>
<div>log4j:ERROR Could not instantiate class [org.apache.log4j.org.apache.log4j.DailyRollingFileAppender].<br>
</div>
<div>java.lang.ClassNotFoundException: org.apache.log4j.org.apache.log4j.DailyRollingFileAppender<br>
</div>
<div>at com.oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:264)<br>
</div>
<div>at com.oracle.classloader.weblogic.LaunchClassLoader.loadClass(LaunchClassLoader.java:62)<br>
</div>
<div>at java.lang.ClassLoader.loadClass(ClassLoader.java:357)<br>
</div>
<div>at java.lang.Class.forName0(Native Method)<br>
</div>
<div>at java.lang.Class.forName(Class.java:264)<br>
</div>
<div>...<br>
</div>
<div><br>
</div>
<div>at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)<br>
</div>
<div>at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)<br>
</div>
<div>at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)<br>
</div>
<div>at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)<br>
</div>
<div>at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)<br>
</div>
<div>at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)<br>
</div>
<div>log4j:ERROR Could not instantiate appender named "OCSearch".<br>
</div>
<div>log4j:WARN No appenders could be found for logger (org.opencms.init).<br>
</div>
<div>log4j:WARN Please initialize the log4j system properly.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Starting OpenCms, version 9.5.0 in web application "war"<br>
</div>
<div><br>
</div>
<div>Copyright (c) 2014 Alkacon Software GmbH<br>
</div>
<div>OpenCms comes with ABSOLUTELY NO WARRANTY<br>
</div>
<div>This is free software, and you are welcome to<br>
</div>
<div>redistribute it under certain conditions.<br>
</div>
<div>Please see the GNU Lesser General Public Licence for<br>
</div>
<div>further details.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Mar 02, 2019 1:54:34 AM org.apache.solr.core.CoreContainer <init><br>
</div>
<div>INFO: New CoreContainer 2065784126<br>
</div>
<div>Mar 02, 2019 1:54:34 AM org.apache.solr.core.CoreContainer load<br>
</div>
<div>....<br>
</div>
<div><br>
</div>
<span></span><br>
</font></div>
<div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br><br><br><br></font></div></paul.finnedison@outlook.com></div></div><div><br><hr>Disclaimer:<br><br>The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it.<br>It may contain confidential or legally privileged information.<br>If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful.<br>If you have received this communication in error, please notify us immediately by forwarding this email to ict@ibacz.eu and then delete it from your system.<br>IBA Group is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.<br> </div></font>