Pesky "Error processing element CasAppender"

108 views
Skip to first unread message

Harry M

unread,
Apr 5, 2022, 11:51:34 PM4/5/22
to CAS Community
Would anyone be able to provide pointers with regards to the pesky Error processing element CasAppender" (full error log in italics below). 

As far as I can determine the properties and permissions are set appropriately (and files in the expected locations).

Any pointers where to debug further?

Details:
cas.version=6.5.2

/etc/cas/config/log4j2.xml:
<Property name="baseDir">/var/log/cas</Property>
Permissions have been set for above path.


2022-04-05 16:19:59,871 localhost-startStop-1 ERROR Error processing element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
2022-04-05 16:19:59,877 localhost-startStop-1 ERROR Error processing element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
2022-04-05 16:19:59,877 localhost-startStop-1 ERROR Error processing element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
2022-04-05 16:19:59,877 localhost-startStop-1 ERROR Error processing element CasAppender ([Appenders: null]): CLASS_NOT_FOUND
2022-04-05 16:20:00,403 localhost-startStop-1 ERROR Unable to locate appender "casFile" for logger config "root"
2022-04-05 16:20:00,403 localhost-startStop-1 ERROR Unable to locate appender "casConsole" for logger config "root"
2022-04-05 16:20:00,404 localhost-startStop-1 ERROR Unable to locate appender "casStackTraceFile" for logger config "root"
2022-04-05 16:20:00,404 localhost-startStop-1 ERROR Unable to locate appender "casConsole" for logger config "org.apereo.inspektr.audit.support"
2022-04-05 16:20:00,404 localhost-startStop-1 ERROR Unable to locate appender "casFile" for logger config "org.apereo.inspektr.audit.support"
2022-04-05 16:20:00,404 localhost-startStop-1 ERROR Unable to locate appender "casAudit" for logger config "org.apereo.inspektr.audit.support"

Ray Bon

unread,
Apr 6, 2022, 12:32:17 PM4/6/22
to cas-...@apereo.org
Harry,

It looks like a config error in log4j2.xml. The log system is unable to find the definition for the CasAppenders; 'file' in the case of 'casFile'.
Perhaps there is a typo, have you modified this file?

Also, verify that cas is picking up the file in the location that you think it is.
pass -Dlog4j2.debug to the jvm on start.

Ray

On Tue, 2022-04-05 at 16:50 -0700, Harry M wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day.
Reply all
Reply to author
Forward
0 new messages