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.

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
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]<mailto:[email protected]>

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.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/3996c37bf6a715f34337adee2f2adf7f2dd6e6ba.camel%40uvic.ca.

Reply via email to