[opencms-dev] OpenCMS 9.5 missing DailyRollingFileAppender - where does it look for?

Paul Edison paul.finnedison at outlook.com
Sat Mar 2 16:11:16 CET 2019


Dear all,

Currently I have some issues with the logging of my OpenCMS 9.5.0 instance.
In my error file I see something like this:
> log4j:ERROR Could not instantiate class [org.apache.log4j.org.apache.log4j.DailyRollingFileAppender].
> java.lang.ClassNotFoundException: org.apache.log4j.org.apache.log4j.DailyRollingFileAppender

> log4j:ERROR Could not instantiate appender named "OCSearch".
> log4j:WARN No appenders could be found for logger (org.opencms.init).
> log4j:WARN Please initialize the log4j system properly.

(see more below)

But OpenCMS seems to start up normally and don't have a problem - aside form not real logging.
Now My question is how do I get to know what artifact (JAR) is missing and where does OpenCMS it expect to be?
In the past it seems to be working fine.

Regards,
Paul

PS: It is running on Oracle WebLogic 12c


log4j:ERROR Could not instantiate class [org.apache.log4j.org.apache.log4j.DailyRollingFileAppender].
java.lang.ClassNotFoundException: org.apache.log4j.org.apache.log4j.DailyRollingFileAppender
at com.oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:264)
at com.oracle.classloader.weblogic.LaunchClassLoader.loadClass(LaunchClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:317)
at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:629)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)

...

log4j:ERROR Could not instantiate appender named "OC".
log4j:ERROR Could not instantiate class [org.apache.log4j.org.apache.log4j.DailyRollingFileAppender].
java.lang.ClassNotFoundException: org.apache.log4j.org.apache.log4j.DailyRollingFileAppender
at com.oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:264)
at com.oracle.classloader.weblogic.LaunchClassLoader.loadClass(LaunchClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
...

at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
log4j:ERROR Could not instantiate appender named "OCSearch".
log4j:WARN No appenders could be found for logger (org.opencms.init).
log4j:WARN Please initialize the log4j system properly.


Starting OpenCms, version 9.5.0 in web application "war"

Copyright (c) 2014 Alkacon Software GmbH
OpenCms comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to
redistribute it under certain conditions.
Please see the GNU Lesser General Public Licence for
further details.


Mar 02, 2019 1:54:34 AM org.apache.solr.core.CoreContainer <init>
INFO: New CoreContainer 2065784126
Mar 02, 2019 1:54:34 AM org.apache.solr.core.CoreContainer load
....


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


More information about the opencms-dev mailing list