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 nocas.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.4
CAS Branch: 7.0.x
CAS Commit Id: d41ac9d5e157605fc43d97a77582c2062e864874
CAS Build Date/Time: 2024-04-26T07:43:16.528866Z
Spring Boot Version: 3.2.1
Spring Version: 6.1.2
Java Home: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.alma.1.x86_64
Java Vendor: Red Hat, Inc.
Java Version: 21.0.3
Servlet Version: 6.0
JVM Free Memory: 236 MB
JVM Maximum Memory: 1 GB
JVM 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:443
cas.server.prefix=${cas.server.name}/cas
logging.config=file:/etc/cas/config/log4j2.xml
cas.authn.accept.users=
### Connexion LDAP
##cas.authn.ldap\[0\].providerClass=org.ldaptive.provider.unboundid.UnboundIDProvider
cas.authn.ldap\[0\].type=AUTHENTICATED
#cas.authn.ldap\[0\].use-start-tls=true
cas.authn.ldap\[0\].ldapUrl=ldaps://ldapserver.domain.fr
cas.authn.ldap\[0\].baseDn= dc=domain,dc=fr
cas.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 LDAP
cas.authn.ldap\[0\].bindDn=CN=binduser,dc=domain,dc=fr
cas.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