cas-management 6.0 + MongoDB

213 views
Skip to first unread message

Taupasse

unread,
Mar 27, 2019, 5:56:34 AM3/27/19
to CAS Community
Hello,

I'm currently trying to set up the cas management webapp 6.0 against a working Cas 6.0 with a ticket registry in a replicated MongoDB.

When I try to build the cas-management.war from the cas-management-overlay, I add the following line to the build.gradle :

compile "org.apereo.cas:cas-server-support-mongo-service-registry:6.0.2"

I build it with

./build.sh package

Everything seems to be fine, but when i'm publishing the war file in my tomcat, it crashes with some "pretty" java errors :

ERROR [org.apereo.cas.CasEmbeddedContainerUtils] - <class org.apereo.cas.CasEmbeddedContainerUtils cannot access a member of class org.apereo.cas.mgmt.CasManagementEmbeddedContainerUtils$1 with modifiers "">
java
.lang.IllegalAccessException: class org.apereo.cas.CasEmbeddedContainerUtils cannot access a member of class org.apereo.cas.mgmt.CasManagementEmbeddedContainerUtils$1 with modifiers ""
        at jdk
.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361) ~[?:?]
        at java
.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591) ~[?:?]
        at java
.lang.reflect.Constructor.newInstance(Constructor.java:481) ~[?:?]
        at org
.apereo.cas.CasEmbeddedContainerUtils.getCasBannerInstance(CasEmbeddedContainerUtils.java:65) ~[cas-server-webapp-init-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]
        at org
.apereo.cas.web.CasWebApplicationServletInitializer.configure(CasWebApplicationServletInitializer.java:23) ~[cas-server-webapp-init-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]
        at org
.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:122) ~[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at org
.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) ~[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at org
.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) ~[spring-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]




And

 ERROR [org.springframework.boot.SpringApplication] - <Application run failed>
java
.lang.IllegalStateException: No Scope registered for scope name 'refresh'
        at org
.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:350) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35) ~[spring-aop-5.1.4.RELEASE.jar:5.1.4.RELEASE]
        at org
.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:672) ~[spring-aop-5.1.4.RELEASE.jar:5.1.4.RELEASE]
        at org
.apereo.cas.mgmt.web.DefaultCasManagementEventListener$$EnhancerBySpringCGLIB$$5744b79f.handleApplicationReadyEvent(<generated>) ~[cas-mgmt-webapp-init-6.0.2-SNAPSHOT.jar:6.0.2-SNAPSHOT]
        at jdk
.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk
.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk
.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java
.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org
.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:259) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:179) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:142) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:398) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:355) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE]
        at org
.springframework.boot.context.event.EventPublishingRunListener.running(EventPublishingRunListener.java:105) ~[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at org
.springframework.boot.SpringApplicationRunListeners.running(SpringApplicationRunListeners.java:78) ~[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at org
.springframework.boot.SpringApplication.run(SpringApplication.java:332) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at org
.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at org
.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at org
.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) [spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at org
.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) [spring-web-5.1.3.RELEASE.jar:5.1.3.RELEASE]

When i pick up this version of cas-management.war https://mvnrepository.com/artifact/org.apereo.cas/cas-mgmt-webapp/6.0.1  everything works, but I don't have the mongoDB support included in the war file.

If someone can help :)


Florent

Mathias Rosenberg

unread,
May 7, 2019, 1:07:51 PM5/7/19
to CAS Community
I'm also facing the same problem, did you find some solution for it?

Mathias.

Alexi Pascual

unread,
May 10, 2019, 10:15:05 AM5/10/19
to cas-...@apereo.org

hi,

Has anyone managed to install without problems the ca-management- 6.0 ?. I have the same error, without the mongoDB configuration.

Alexi.

El 07-05-19 a las 13:07, Mathias Rosenberg escribió:
--
- 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/446747f7-2ba0-47eb-9fb0-e1bac432f62d%40apereo.org.
-- 
Alexi Pascual García
Jefe de Arquitectura e Integración
Subdirección de Operaciones y Plataforma
Dirección de Informática
Pontificia Universidad Católica de Chile
Teléfono: (56 2) 2354 5759

Chad Merritt

unread,
May 31, 2019, 9:22:28 AM5/31/19
to CAS Community, alexi....@uc.cl
Same issue here.  It crashes/locks up Tomcat .

r/Chad
To unsubscribe from this group and stop receiving emails from it, send an email to cas-...@apereo.org.
Reply all
Reply to author
Forward
0 new messages