Hello
 I did build correclty cas 7.0.4 + ldap auth, unfortunaltly after putting 
the cas.war into the tomcat webapps folder , the webapp fails on 
"*org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration
 
 caused by ClassNotFoundException*" [1]

can you help me tracing this pb ? did I forgot to declare a propertie  ?  , 
there was no *cas.properties *sample file from git clone, I took one from 
6.x and adapted ... cf [2], perhaps a pb there ? 

Thanks 

[1] Logs details;

*<Validated CAS property sources and configuration successfully.>*












*CAS Version: 7.0.4CAS Branch: 7.0.xCAS Commit Id: 
d41ac9d5e157605fc43d97a77582c2062e864874CAS Build Date/Time: 
2024-04-26T07:43:16.528866ZSpring Boot Version: 3.2.1Spring Version: 
6.1.2Java Home: 
/usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.alma.1.x86_64Java Vendor: Red 
Hat, Inc.Java Version: 21.0.3Servlet Version: 6.0JVM Free Memory: 236 MBJVM 
Maximum Memory: 1 GBJVM Total Memory: 811 MB*
*Apache Tomcat Version: Apache Tomcat/10.1.20*

* <Configuration files found at [/etc/cas/config] are [[file 
[/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]>*

*2024-06-03 10:00:06,968 WARN 
[org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
 
- <Exception encountered during context initialization - cancelling refresh 
attempt: org.springframework.beans.factory.BeanDefinitionStoreException: 
Failed to process import candidates for configuration class 
[org.apereo.cas.web.CasWebApplication]: Error processing condition on 
org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration>*

*03-Jun-2024 10:00:07.002 SEVERE [main] 
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web 
application archive [/opt/tomcat/webapps/cas.war]*
*...*

* Caused by: java.lang.ClassNotFoundException: 
org.springframework.boot.actuate.sbom.SbomEndpoint*


*rror creating bean due to: Failed to process import candidates for 
configuration class [org.apereo.cas.web.CasWebApplication]: Error 
processing condition on 
org.springframework.boot.actuate.autoconfigure.sbom.SbomEndpointAutoConfiguration
 
 caused by ClassNotFoundException: 
org.springframework.boot.actuate.sbom.SbomEndpoint *


[2] /etc/cas/config/cas.properties






















*cas.server.name=https://cas7.domain.fr:443cas.server.prefix=${cas.server.name}/caslogging.config=file:/etc/cas/config/log4j2.xmlcas.authn.accept.users=###
 
Connexion 
LDAP##cas.authn.ldap\[0\].providerClass=org.ldaptive.provider.unboundid.UnboundIDProvidercas.authn.ldap\[0\].type=AUTHENTICATED#cas.authn.ldap\[0\].use-start-tls=truecas.authn.ldap\[0\].ldapUrl=ldaps://ldapserver.domain.frcas.authn.ldap\[0\].baseDn=
 
dc=domain,dc=frcas.authn.ldap\[0\].subtreeSearch=true#cas.authn.ldap\[0\].searchFilter=uid=\{user\}cas.authn.ldap\[0\].searchFilter=(&(uid=\{user\})(supannRessourceEtat={COMPTE}A:*))cas.authn.ldap\[0\].principalAttributeList=cn,sn,givenName,displayName,mail,uid###
 
Credential to connect to 
LDAPcas.authn.ldap\[0\].bindDn=CN=binduser,dc=domain,dc=frcas.authn.ldap\[0\].bindCredential=!SECRET!###
 
Registering Applications cas.serviceRegistry.json.location: 
file:/etc/cas/services*


*#tunning*
*cas.ticket.tgt.primary.max-time-to-live-in-seconds: 36000*
*cas.ticket.tgt.primary.time-to-kill-in-seconds: 14400*
*cas.authn.authentication-attribute-release.enabled: true*

-- 
- 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/11bf70fa-d9ca-4ae4-912a-a53f9c0ec76fn%40apereo.org.

Reply via email to