Unable to start cas-management (nullPointer)

414 views
Skip to first unread message

gry...@hkfree.org

unread,
Sep 18, 2020, 4:47:49 AM9/18/20
to CAS Community

Hello,

i have deployed cas and cas-management war with default configuration (changed only cas URL). CAS itself is running and i can login, but when trying to start cas-management, i get following error:

[2020-09-18 10:05:14] [info] (CAS Management)
[2020-09-18 10:05:14] [info] CAS Version: 6.2.1
[2020-09-18 10:05:14] [info] CAS Branch: 6.2.x
[2020-09-18 10:05:14] [info] CAS Commit Id: dc90995b8911bd36c7aebc39588c9d6e3baee1a1
[2020-09-18 10:05:14] [info] CAS Build Date/Time: 2020-09-18T07:23:18Z
[2020-09-18 10:05:14] [info] Spring Boot Version: 2.2.8.RELEASE
[2020-09-18 10:05:14] [info] Spring Version: 5.2.7.RELEASE
[2020-09-18 10:05:14] [info] Java Home: /usr/lib/jvm/java-11-openjdk-amd64
[2020-09-18 10:05:14] [info] Java Vendor: Debian
[2020-09-18 10:05:14] [info] Java Version: 11.0.8
[2020-09-18 10:05:14] [info] JVM Free Memory: 457 MB
[2020-09-18 10:05:14] [info] JVM Maximum Memory: 955 MB
[2020-09-18 10:05:14] [info] JVM Total Memory: 955 MB
[2020-09-18 10:05:14] [info] JCE Installed: Yes
[2020-09-18 10:05:14] [info] OS Architecture: amd64
[2020-09-18 10:05:14] [info] OS Name: Linux
[2020-09-18 10:05:14] [info] OS Version: 4.19.0-10-amd64
[2020-09-18 10:05:14] [info] OS Date/Time: 2020-09-18T10:05:14.220917
[2020-09-18 10:05:14] [info] OS Temp Directory: /tmp
[2020-09-18 10:05:14] [info] ------------------------------------------------------------
[2020-09-18 10:05:14] [info] #033[0m
[2020-09-18 10:05:14] [info] #033[32m2020-09-18 10:05:14,260 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration files found at [/etc/cas/config] are [[file [/etc/cas/config/management.properties]]] under profile(s) [[standalone]]>#033[m
[2020-09-18 10:05:28] [info] 2020-09-18 10:05:28,976 ERROR [org.apereo.cas.util.HttpUtils] - <PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target>
[2020-09-18 10:05:40] [info] 2020-09-18 10:05:40,013 WARN [org.apereo.cas.support.saml.SamlUtils] - <Resource [class path resource [incommon.pem]] cannot be located>
[2020-09-18 10:05:40] [info] 2020-09-18 10:05:40,020 WARN [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlController' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.SamlController]: Factory method 'samlController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException>
[2020-09-18 10:05:40] [info] 2020-09-18 10:05:40,060 ERROR [org.springframework.boot.SpringApplication] - <Application run failed>
[2020-09-18 10:05:40] [info] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlController' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.SamlController]: Factory method 'samlController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:656) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:484) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:895) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.8.RELEASE.jar:2.2.8.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.8.RELEASE.jar:2.2.8.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.2.8.RELEASE.jar:2.2.8.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.2.8.RELEASE.jar:2.2.8.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152) [spring-boot-2.2.8.RELEASE.jar:2.2.8.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132) [spring-boot-2.2.8.RELEASE.jar:2.2.8.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92) [spring-boot-2.2.8.RELEASE.jar:2.2.8.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172) [spring-web-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1642) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
[2020-09-18 10:05:40] [info] #011at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:289) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809) [?:?]
[2020-09-18 10:05:40] [info] #011at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [?:?]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1590) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.manager.HTMLManagerServlet.upload(HTMLManagerServlet.java:294) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:212) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) [tomcat9-servlet-api-9.0.31.jar:?]
[2020-09-18 10:05:40] [info] #011at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) [tomcat9-servlet-api-9.0.31.jar:?]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:211) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat9-websocket-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:666) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat9-catalina-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1684) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1104) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:599) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:577) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.net.SecureNio2Channel$1.completed(SecureNio2Channel.java:969) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.net.SecureNio2Channel$1.completed(SecureNio2Channel.java:898) [tomcat9-coyote-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127) [?:?]
[2020-09-18 10:05:40] [info] #011at sun.nio.ch.Invoker$2.run(Invoker.java:219) [?:?]
[2020-09-18 10:05:40] [info] #011at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112) [?:?]
[2020-09-18 10:05:40] [info] #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
[2020-09-18 10:05:40] [info] #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
[2020-09-18 10:05:40] [info] #011at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat9-util-9.0.31.jar:9.0.31]
[2020-09-18 10:05:40] [info] #011at java.lang.Thread.run(Thread.java:834) [?:?]
[2020-09-18 10:05:40] [info] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.SamlController]: Factory method 'samlController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011... 73 more
[2020-09-18 10:05:40] [info] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:656) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:484) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:362) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:334) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.metadataAggregateResolver(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration.samlController(CasManagementSamlConfiguration.java:56) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.CGLIB$samlController$0(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07$$FastClassBySpringCGLIB$$48ae0e25.invoke(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.7.RELEASE.jar:5.2.7.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.samlController(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
[2020-09-18 10:05:40] [info] #011at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011... 73 more
[2020-09-18 10:05:40] [info] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:484) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:362) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:334) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.metadataAggregateResolver(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration.samlController(CasManagementSamlConfiguration.java:56) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.CGLIB$samlController$0(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07$$FastClassBySpringCGLIB$$48ae0e25.invoke(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.7.RELEASE.jar:5.2.7.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.samlController(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
[2020-09-18 10:05:40] [info] #011at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011... 73 more
[2020-09-18 10:05:40] [info] Caused by: java.lang.NullPointerException
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.InCommonMetadataAggregateResolver.<init>(InCommonMetadataAggregateResolver.java:52) ~[cas-mgmt-support-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration.metadataAggregateResolver(CasManagementSamlConfiguration.java:62) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.CGLIB$metadataAggregateResolver$1(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07$$FastClassBySpringCGLIB$$48ae0e25.invoke(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.7.RELEASE.jar:5.2.7.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.metadataAggregateResolver(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
[2020-09-18 10:05:40] [info] #011at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:484) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:362) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:334) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.metadataAggregateResolver(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration.samlController(CasManagementSamlConfiguration.java:56) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.CGLIB$samlController$0(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07$$FastClassBySpringCGLIB$$48ae0e25.invoke(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.7.RELEASE.jar:5.2.7.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.samlController(<generated>) ~[cas-mgmt-config-saml-6.2.1-SNAPSHOT.jar:6.2.1-SNAPSHOT]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
[2020-09-18 10:05:40] [info] #011at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
[2020-09-18 10:05:40] [info] #011at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
[2020-09-18 10:05:40] [info] #011... 73 more
[2020-09-18 10:05:40] [crit] Error deploying web application archive [/var/lib/tomcat9/webapps/cas-management.war]
[2020-09-18 10:05:40] [crit] java.lang.IllegalStateException: Error starting child
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1642)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2020-09-18 10:05:40] [crit]     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:289)
[2020-09-18 10:05:40] [crit]     at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
[2020-09-18 10:05:40] [crit]     at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1590)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.manager.HTMLManagerServlet.upload(HTMLManagerServlet.java:294)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:212)
[2020-09-18 10:05:40] [crit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
[2020-09-18 10:05:40] [crit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:211)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:666)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
[2020-09-18 10:05:40] [crit]     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
[2020-09-18 10:05:40] [crit]     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
[2020-09-18 10:05:40] [crit]     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1684)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1104)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:599)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:577)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.net.SecureNio2Channel$1.completed(SecureNio2Channel.java:969)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.net.SecureNio2Channel$1.completed(SecureNio2Channel.java:898)
[2020-09-18 10:05:40] [crit]     at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
[2020-09-18 10:05:40] [crit]     at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:219)
[2020-09-18 10:05:40] [crit]     at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
[2020-09-18 10:05:40] [crit]     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[2020-09-18 10:05:40] [crit]     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[2020-09-18 10:05:40] [crit]     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[2020-09-18 10:05:40] [crit]     at java.base/java.lang.Thread.run(Thread.java:834)
[2020-09-18 10:05:40] [crit] Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas-management]]
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
[2020-09-18 10:05:40] [crit]     ... 50 more
[2020-09-18 10:05:40] [crit] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlController' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.SamlController]: Factory method 'samlController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:656)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:484)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:895)
[2020-09-18 10:05:40] [crit]     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
[2020-09-18 10:05:40] [crit]     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
[2020-09-18 10:05:40] [crit]     at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
[2020-09-18 10:05:40] [crit]     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
[2020-09-18 10:05:40] [crit]     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
[2020-09-18 10:05:40] [crit]     at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
[2020-09-18 10:05:40] [crit]     at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)
[2020-09-18 10:05:40] [crit]     at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)
[2020-09-18 10:05:40] [crit]     at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)
[2020-09-18 10:05:40] [crit]     at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
[2020-09-18 10:05:40] [crit]     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[2020-09-18 10:05:40] [crit]     ... 51 more
[2020-09-18 10:05:40] [crit] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.SamlController]: Factory method 'samlController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651)
[2020-09-18 10:05:40] [crit]     ... 73 more
[2020-09-18 10:05:40] [crit] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:656)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:484)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
[2020-09-18 10:05:40] [crit]     at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:362)
[2020-09-18 10:05:40] [crit]     at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:334)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.metadataAggregateResolver(<generated>)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration.samlController(CasManagementSamlConfiguration.java:56)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.CGLIB$samlController$0(<generated>)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07$$FastClassBySpringCGLIB$$48ae0e25.invoke(<generated>)
[2020-09-18 10:05:40] [crit]     at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
[2020-09-18 10:05:40] [crit]     at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.samlController(<generated>)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2020-09-18 10:05:40] [crit]     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
[2020-09-18 10:05:40] [crit]     ... 74 more
[2020-09-18 10:05:40] [crit] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651)
[2020-09-18 10:05:40] [crit]     ... 97 more
[2020-09-18 10:05:40] [crit] Caused by: java.lang.NullPointerException
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.InCommonMetadataAggregateResolver.<init>(InCommonMetadataAggregateResolver.java:52)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration.metadataAggregateResolver(CasManagementSamlConfiguration.java:62)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.CGLIB$metadataAggregateResolver$1(<generated>)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07$$FastClassBySpringCGLIB$$48ae0e25.invoke(<generated>)
[2020-09-18 10:05:40] [crit]     at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
[2020-09-18 10:05:40] [crit]     at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
[2020-09-18 10:05:40] [crit]     at org.apereo.cas.mgmt.config.CasManagementSamlConfiguration$$EnhancerBySpringCGLIB$$a9ae3c07.metadataAggregateResolver(<generated>)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2020-09-18 10:05:40] [crit]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2020-09-18 10:05:40] [crit]     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2020-09-18 10:05:40] [crit]     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
[2020-09-18 10:05:40] [crit]     ... 98 more
[2020-09-18 10:05:40] [info] Deployment of web application archive [/var/lib/tomcat9/webapps/cas-management.war] has finished in [48,677] ms

Any clues what i have done wrong?

Also, it seems that in the readme for cas-management-overlay, there is missing step for opying default configuration ( ./gradlew[.bat] copyCasConfiguration ).

Thanks for any hint.

Best regards,
Lukáš Krejza

gry...@hkfree.org

unread,
Sep 18, 2020, 6:00:33 AM9/18/20
to CAS Community, gry...@hkfree.org
Ok, it seems that i have resolved the previous error by using:
./gradlew createKeystore
in "cas-overlay-template".

Now the cas-management is freezing at the start rather than crashing with exception.

Next issue i have noticed is, that the CAS is using Runtime memory as persisntence storage. I have tried to switch to Json-based persistence storage, but after specifying "cas.serviceRegistry.json.location=file:/etc/cas/services" in "/etc/cas/config/cas.properties", i am still being told that the cas is using Runtime memory.

How do i disable Runtime memory persistence storage and enable Json persistence storage?

Also, do i need to specify "cas.serviceRegistry.json.location=file:/etc/cas/services" also in "/etc/cas/config/management.properties" to be able to comunicate with cas and start correctly?

Thanks!

Best regards,
Lukáš Krejza
Dne pátek 18. září 2020 v 10:47:49 UTC+2 uživatel gry...@hkfree.org napsal:

King, Robert

unread,
Sep 18, 2020, 12:14:59 PM9/18/20
to cas-...@apereo.org

--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/d3a5cc69-3fb5-4409-bb6c-10f62bec8b03n%40apereo.org.

Ray Bon

unread,
Sep 18, 2020, 1:31:58 PM9/18/20
to cas-...@apereo.org
Lukáš,

The error is with a missing certificate. Perhaps it is a configuration default that has to be updated.

Ray


On Fri, 2020-09-18 at 01:47 -0700, gry...@hkfree.org wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.

Rob

unread,
Sep 21, 2020, 3:30:26 PM9/21/20
to cas-...@apereo.org
A bit of reverse engineering and I figured out that there's an undocumented config option that needs to be set in management.properties.

mgmt.InCommonCert=

Taking what Ray had mentioned in another thread, I grabbed the InCommon entities file, popped the first cert into a file called InCommon.pem and put that file in the webapps/cas-management folder. 

I added the option to my management.properties, restarted, and now it all works.

mgmt.InCommonCert=InCommon.pem

We're not using InCommon for cas-management, so having that be a requirement is suboptimal. Having undocumented required options is even worse.

/rob

--
- 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 cas-user+u...@apereo.org.

gry...@hkfree.org

unread,
Sep 22, 2020, 4:42:29 AM9/22/20
to CAS Community, ro...@mun.ca
Hello,

Ok, it seems that i have not added "implementation "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}"" to the build (btw why its not in the documentation?)
But where should i put it? Into the "dependencies" block in build.gradle? And rebuild?

Thanks and sorry for dumb questions. This is my first time with Java.

Best regards,
Lukas
Dne pátek 18. září 2020 v 18:14:59 UTC+2 uživatel ro...@mun.ca napsal:

gry...@hkfree.org

unread,
Sep 22, 2020, 4:56:45 AM9/22/20
to CAS Community, Ray Bon
Dear Ray,

I am using the default config created with "copyCasConfiguration" in "cas-management-overlay" and "cas-overlay-template". Only things i have changed are:

cas.properties:
setting cas.server.name to the FQDN of CAS service (port 8443)
setting "cas.serviceRegistry.json.location=file:/etc/cas/services" (not working - see my previous mail in this thread)

management.properties:
setting cas.server.name to the FQDN of CAS service (port 8443)
setting mgmt.serverName to the FQDN of CAS management service (the same port as cas.server.name - is this correct? )

Is there anything else what needs to be configured for the first testing run? I am using the default "thekeystore" created with "./gradlew createKeystore"

Thanks!

Best Regards,
Lukas
Dne pátek 18. září 2020 v 19:31:58 UTC+2 uživatel Ray Bon napsal:

gry...@hkfree.org

unread,
Sep 22, 2020, 4:59:49 AM9/22/20
to CAS Community, Rob Blais
Dear Rob,

can you please tell me what is the InCommon entities file and where do i get it? Is there an log message that verifies that my problem is the missing InCommon.pem certificate?

Thanks!

Best regards,
Lukas

Dne pondělí 21. září 2020 v 21:30:26 UTC+2 uživatel Rob Blais napsal:

Rob

unread,
Sep 22, 2020, 7:12:36 AM9/22/20
to cas-...@apereo.org
Your logs look the same as mine did, so it's likely the same problem.

The entities file is here:  https://mdq.incommon.org/entities

/rob

King, Robert

unread,
Sep 22, 2020, 8:11:06 AM9/22/20
to gry...@hkfree.org, CAS Community

Not a dumb question at all.  The “compile” of CAS assumes certain background/familiarity with Gradle.

 

Note that I am assuming you are using the cas-overlay-template repository and are on branch 6.2.

 

https://github.com/apereo/cas-overlay-template/tree/6.2

 

You will find at line 72-75 in the build.gradle file:

 

dependencies {

    // Other CAS dependencies/modules may be listed here...

    // implementation "org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"

}

 

and you would update it to:

 

dependencies {

    // Other CAS dependencies/modules may be listed here...

    // implementation "org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"

    implementation "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}"

}

 

Then rebuild and redeploy.

gry...@hkfree.org

unread,
Sep 22, 2020, 8:46:53 AM9/22/20
to CAS Community, Rob Blais
Dear Rob,

thank you very much for this! I have noticed following error in catalina.out:
[2020-09-22 11:54:16] [info] 2020-09-22 11:54:16,218 WARN [org.apereo.cas.support.saml.SamlUtils] - <Resource [class path resource [incommon.pem]] cannot be located>

After getting the incommon.pem certificate and putting it into webapps/cas-management, it started successfully!

It is a real shame that this hard requirement is not specified in readme or in documentation (same as the populating default configs for cas-management)

Thanks again!

Best regards,
Lukas
Dne úterý 22. září 2020 v 13:12:36 UTC+2 uživatel Rob Blais napsal:

gry...@hkfree.org

unread,
Sep 22, 2020, 8:52:18 AM9/22/20
to CAS Community, ro...@mun.ca, gry...@hkfree.org
Thank you very much! After rebuilding i can see the message "<Watching directory path at [/etc/cas/services]>" in the logs now.

FYI i am using "master" branch for now (both cas-overlay-template and cas-management-overlay).

If i may have another question: Do i need to add support for the json-service-registry and configure it also for cas-management-overlay? Or is the management only using some CAS API and does not need access to the Json files itself?

Thanks.

Best regards,
Lukas
Dne úterý 22. září 2020 v 14:11:06 UTC+2 uživatel ro...@mun.ca napsal:

Ray Bon

unread,
Sep 22, 2020, 10:37:58 AM9/22/20
to cas-...@apereo.org, ro...@mun.ca, gry...@hkfree.org
Lukas,

Cas management needs the same dependency and config for the service registry.

Ray

On Tue, 2020-09-22 at 05:52 -0700, gry...@hkfree.org wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

gry...@hkfree.org

unread,
Sep 22, 2020, 1:00:53 PM9/22/20
to CAS Community, Ray Bon, ro...@mun.ca, gry...@hkfree.org
Done! I can login to the cas-management via cas SSO now!

Next problem i am experiencing is that the cas-management is hanging on startup when set to autodeploy. If i disable autodeploy, start tomcat, then deploy cas and then deploy cas-management, everything is working.

Is anyone else experiencing this?

Best regards,
Lukas

Dne úterý 22. září 2020 v 16:37:58 UTC+2 uživatel Ray Bon napsal:

HN

unread,
Sep 23, 2020, 11:07:15 AM9/23/20
to CAS Community, gry...@hkfree.org, Ray Bon, ro...@mun.ca
yes, i so do the same problem


"
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlController' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.SamlController]: Factory method 'samlController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate"

SSO in the CAS managent , now requiered?

randomuser878

unread,
Sep 29, 2020, 9:12:10 AM9/29/20
to CAS Community, HN, gry...@hkfree.org, Ray Bon, ro...@mun.ca
This "might" help.
Even though you do not use SAML with cas you can do this (I had to do something about this as it will not start but do not remember was that the error message you got)

mgmt.metadataRepoDir= PATH_TO /metadata
mgmt.metadataDir= PATH_TO /metadata_cas
mgmt.inCommonCert=file: PATH_TO /idpcerts/incommon.pem
mgmt.inCommonCertLocation= PATH_TO /idpcerts/incommon.pem
mgmt.inCommonMDQUrl=https://YOUR_CAS_SSO_DNS/idp/shibboleth

Generate incommon.pem cert with openssl and self-sign it for the same domain as sso
metadata, metadata_cas can be empty as you do not plan to use SAML. If you do well the config files likely go there. I do not use SAML with cas yet.

Permissions for all above is: the java process running in tomcat or whatever needs RW to all.

Good Luck.

Jonathon Taylor

unread,
Sep 30, 2020, 2:05:44 PM9/30/20
to CAS Community, randomuser878, HN, gry...@hkfree.org, Ray Bon, ro...@mun.ca
The metadata errors appear to have been fixed in the latest 6.2.0-SNAPSHOT commits.  We were seeing the same error and they've cleared up now.

Tom Reijnders

unread,
Nov 12, 2020, 9:41:15 AM11/12/20
to CAS Community, Jonathon Taylor, randomuser878, HN, gry...@hkfree.org, Ray Bon, ro...@mun.ca
I am trying to get cas-management up and running too. I am using master of the cas-management-overlay repo. I have added the json-service-registry dependency for the service (implementation "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}") , and needed to change the cas version to 6.2.2 instead of 6.2.2.-SNAPSHOT in gradle.properties.

I try to deploy cas and cas-management on the same tomcat 9 installation (not the embedded tomcats).

I have the same error as the original poster. The ./gradlew createKeystore (in cas-overlay-template) does not resolve this issue. Also, I don't understand the instructions of getting the first certificate from the incommon entities file and putting those in incommon.pem.

Any help is grately appreciated.

Ray Bon

unread,
Nov 12, 2020, 11:31:35 AM11/12/20
to ajjrei...@gmail.com, cas-...@apereo.org, rag.l...@gmail.com, ro...@mun.ca, gry...@hkfree.org, bekim...@jsi.com, jona...@berkeley.edu
Tom,

At the time of this post, https://groups.google.com/a/apereo.org/g/cas-user/c/4daOLmkiBlU/m/9oWUkluvCgAJ, there was a requirement for the incommon certificate. It has been a few months since I worked on cas management, if the requirement for the incommon certificate has not been fixed, you will have to add it. 

Ray

Tom Reijnders

unread,
Nov 13, 2020, 3:36:56 AM11/13/20
to CAS Community, Ray Bon, HN, ro...@mun.ca, gry...@hkfree.org, randomuser878, Jonathon Taylor, Tom Reijnders
Thank you. I did, and yes, apparently it is still required. It's working now.

1. I downloaded   https://mdq.incommon.org/entities 
2. Copied the first x509 certificate I could find
3. Placed it in a text file an surrounded it with "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"
4. Placed that file in src/main/resources and rebuild

randomuser878

unread,
Nov 13, 2020, 8:31:22 AM11/13/20
to CAS Community, ajjrei...@gmail.com, Ray Bon, HN, ro...@mun.ca, gry...@hkfree.org, randomuser878, Jonathon Taylor
Great that it worked for you.
Recommend you consider creating your own self signed certificate instead of using someone else's.

Tom Reijnders

unread,
Nov 13, 2020, 8:34:47 AM11/13/20
to randomuser878, CAS Community, Ray Bon, HN, ro...@mun.ca, gry...@hkfree.org, Jonathon Taylor
Silly question then... Can I use any certificate? I certainly can create a self signed certificate.

randomuser878

unread,
Nov 13, 2020, 8:55:06 AM11/13/20
to CAS Community, ajjrei...@gmail.com, CAS Community, Ray Bon, HN, ro...@mun.ca, gry...@hkfree.org, Jonathon Taylor, randomuser878
Sure thing, albeit SAML certificates are longer lasting and better to be under your control.

Ray Bon

unread,
Nov 13, 2020, 10:55:04 AM11/13/20
to cas-...@apereo.org, rag.l...@gmail.com, ro...@mun.ca, gry...@hkfree.org, ajjrei...@gmail.com, bekim...@jsi.com, jona...@berkeley.edu
The issue is not about using someone else's certificate as your own. It is about an illogical requirement for Incommon.
Even if you are not supporting SAML, and thus do not require a certificate, you still have to include the one from incommon.

Ray

Tom Reijnders

unread,
Nov 13, 2020, 11:05:07 AM11/13/20
to Ray Bon, cas-...@apereo.org, rag.l...@gmail.com, ro...@mun.ca, gry...@hkfree.org, bekim...@jsi.com, jona...@berkeley.edu
Thank you for the clarification. That is what I understood.
Reply all
Reply to author
Forward
0 new messages