CAS 7.0.10 and Apache Tomcat version

375 views
Skip to first unread message

Vincent Weber

unread,
Mar 28, 2025, 4:04:09 PMMar 28
to CAS Community
Hello,

I am running CAS 7.0.10 build with overlay and embedded Tomcat.
When it start, I have the message :
Apache Tomcat Version: Apache Tomcat/10.1.31

I tried to edit gradle.properties to uncomment this line and have a more recent Tomcat version :
# tomcatVersion=10.1.39

But then when I do :
./gradlew clean copyCasConfiguration build run --refresh-dependencies

I receive this error :
   2025-03-28 16:17:55,001 ERROR [org.springframework.boot.SpringApplication] - <Application run failed>
java.lang.NoClassDefFoundError: org/apache/catalina/util/ServerInfo
        at org.apereo.cas.CasTomcatBanner.injectEnvironmentInfo(CasTomcatBanner.java:20)
        at org.apereo.cas.util.spring.boot.AbstractCasBanner.collectEnvironmentInfo(AbstractCasBanner.java:77)
        at org.apereo.cas.util.spring.boot.AbstractCasBanner.printBanner(AbstractCasBanner.java:33)
        at org.springframework.boot.SpringApplicationBannerPrinter.print(SpringApplicationBannerPrinter.java:67)
        at org.springframework.boot.SpringApplication.printBanner(SpringApplication.java:586)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:330)
        at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)
        at org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:57)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91)
        at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53)
        at org.springframework.boot.loader.launch.WarLauncher.main(WarLauncher.java:57)
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.util.ServerInfo
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
        at org.springframework.boot.loader.net.protocol.jar.JarUrlClassLoader.loadClass(JarUrlClassLoader.java:104)
        at org.springframework.boot.loader.launch.LaunchedClassLoader.loadClass(LaunchedClassLoader.java:91)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
        ... 13 more

> Task :run FAILED

FAILURE: Build failed with an exception.


Did I miss something ?

Regards,
Vincent


Vincent Weber

unread,
Apr 10, 2025, 8:12:19 AMApr 10
to CAS Community, Vincent Weber
Hello,
Any ideas on this ?
Thanks

Andrew Tillinghast

unread,
Apr 10, 2025, 2:22:16 PMApr 10
to cas-...@apereo.org, Vincent Weber
Rather than comment out the tomcat version specify the version you want, just be aware that might cause other issues with incompatible jars.

--
- Website: https://apereo.github.io/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 cas-user+u...@apereo.org.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/330c1faa-9bab-42db-bf00-aabfbfcd83a8n%40apereo.org.

Mohamed Amdouni

unread,
Apr 10, 2025, 2:55:46 PMApr 10
to cas-...@apereo.org, Vincent Weber

Vincent Weber

unread,
Apr 10, 2025, 3:38:43 PMApr 10
to CAS Community, Vincent Weber
Thanks for your responses.
How to know the default tomcat version that CAS 7.0.10 should use when using the overlay ?

Jonathon Taylor

unread,
Apr 10, 2025, 4:09:01 PMApr 10
to cas-...@apereo.org
The default version will be in the CAS branch here: https://github.com/apereo/cas/blob/7.0.x/gradle.properties

If you comment out tomcatVersion= in your overlay gradle.properties it will use whatever is in the CAS repo.  Is that what you are looking for?



--
Jonathon Taylor (he/him)
Information Security Office

Mohamed Amdouni

unread,
Apr 10, 2025, 4:09:10 PMApr 10
to cas-...@apereo.org, Vincent Weber
Check the logs and generate an overlay from scratch. There is the site of cas initializer 

Reply all
Reply to author
Forward
0 new messages