CAS 6.3.7.2 And Twilio SMS (mfa-simple provider)

284 views
Skip to first unread message

Guillaume EGRON

unread,
Dec 15, 2021, 3:17:59 AM12/15/21
to CAS Community
Hello

Since CAS 6.3.7.2, adding the dependency cas-server-support-sms-twilio still brings log4j-api 2.14.0 and log4j-core 2.14.0 into the app libs.

When I deploy my cas.war into an external Tomcat 9.0.43, through IntelliJ IDEA, cas can't start with error

        Caused by: java.lang.NoSuchMethodError: org.apache.logging.log4j.spi.LoggerContextFactory.isClassLoaderDependent()Z
                at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:56)
                at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:48)
Artifact Cas:war exploded: Error during artifact deployment. See server log for details.
                at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
                at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:354)
                at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
                at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
                at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:94)
                at org.apereo.cas.web.CasWebApplicationServletInitializer.onStartup(CasWebApplicationServletInitializer.java:24)
                at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

Ray Bon

unread,
Dec 15, 2021, 11:27:47 AM12/15/21
to cas-...@apereo.org
Guillaume,

This looks like a library conflict. There have been a few recent posts on this list on how to exclude the older version of log4j.

Ray

On Wed, 2021-12-15 at 00:17 -0800, Guillaume EGRON 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.

Guillaume EGRON

unread,
Dec 16, 2021, 5:43:54 AM12/16/21
to CAS Community, Ray Bon
Thanks Ray

problem solved
and i updated to v6.3.7.3 successfully

Reply all
Reply to author
Forward
0 new messages