cas-management-gradle-overlay class path resource cannot be resolved

200 views
Skip to first unread message

Liu Yong

unread,
Aug 17, 2021, 9:15:17 PM8/17/21
to CAS Community
I was trying to setup cas-management with https://github.com/apereo/cas-management-gradle-overlay at branch 6.3.x, ./gradlew run give me following warnning:

2021-08-18 09:03:29,028 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration directory [null] is not a directory or cannot be found at the specific pat
h>:run
2021-08-18 09:03:29,277 INFO [org.apereo.cas.mgmt.web.CasManagementWebApplication] - <The following profiles are active: standalone>
2021-08-18 09:04:06,976 INFO [org.springframework.boot.web.embedded.tomcat.TomcatWebServer] - <Tomcat initialized with port(s): 8443 (https)>
2021-08-18 09:04:55,352 INFO [org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext] - <Root WebApplicationContext: initialization completed in 84974 ms>
2021-08-18 09:04:58,685 WARN [org.apereo.cas.mgmt.web.CasManagementWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.bea
ns.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration': Unsatisfied dependenc
y expressed through method 'setConfigurers' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casManagementWebAppConfi
guration': Unsatisfied dependency expressed through field 'authenticationClients'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authent
icationClients' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementAuthenticationConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.spri
ngframework.beans.BeanInstantiationException: Failed to instantiate [java.util.List]: Factory method 'authenticationClients' threw exception; nested exception is org.springframework.beans.factory.Be
anCreationException: Error creating bean with name 'authorizationGenerator' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementAuthorizationConfiguration.class]: Bean instantiat
ion via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.pac4j.core.authorization.generator.AuthorizationGenerator]: Factor
y method 'authorizationGenerator' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityPropertiesAuthorizationGe
nerator' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementAuthorizationConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframew
ork.beans.BeanInstantiationException: Failed to instantiate [org.pac4j.core.authorization.generator.AuthorizationGenerator]: Factory method 'springSecurityPropertiesAuthorizationGenerator' threw exc
eption; nested exception is java.io.FileNotFoundException: class path resource [users.json] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/mnt/c/Us
ers/kyle/Documents/workspace/ideaprojects/cas/cas-management-overlay/build/libs/app.war!/WEB-INF/classes!/users.json>

I haddn't make any change, what should I do?

PS: I found cas documentation are really very confusing, there are always surprises waiting for you.

Florent Thomas

unread,
May 1, 2023, 11:42:36 AM5/1/23
to CAS Community, soli...@gmail.com
Hi same thing here.
I've successfuly installed and run cas 6.6.7 on the same machine
Did you copy the management configuration in the /etc/cas/config folder ?

fasr favk

unread,
May 29, 2023, 12:58:04 PM5/29/23
to CAS Community, soli...@gmail.com
I'am facing the same error. Did you fix it ?
Reply all
Reply to author
Forward
0 new messages