Hi Ray,
We are using CAS version 5.3.10 and followed the steps which you are
provided but i am getting below error
2019-11-18 03:54:31,865 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- <Configuration files found at [/etc/cas/config] are
[[/etc/cas/config/cas.properties]] under profile(s) [[standalone]]>
2019-11-18 03:54:31,929 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- <Located property source: CompositePropertySource
[name='casCompositePropertySource',
propertySources=[PropertiesPropertySource
{name='applicationProfilesProperties'}, PropertiesPropertySource
{name='embeddedYamlOverriddenProperties'}]]>
2019-11-18 03:54:33,442 ERROR
[org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration] - <null>
java.lang.NullPointerException: null
at
org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration.locate(DynamoDbCloudConfigBootstrapConfiguration.java:68)
~[cas-server-support-configuration-cloud-dynamodb-5.3.10.jar!/:5.3.10]
at
org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93)
~[spring-cloud-context-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
at
org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:301)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:71)
~[cas-server-webapp-init-5.3.10.jar!/:5.3.10]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_131]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_131]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
~[cas.war:5.3.10]
2019-11-18 03:54:33,447 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- <Located property source: PropertiesPropertySource
{name='DynamoDbCloudConfigBootstrapConfiguration$$EnhancerBySpringCGLIB$$d6f1e7c3'}>
2019-11-18 03:54:33,613 INFO [org.apereo.cas.web.CasWebApplication] - <The
following profiles are active: standalone>
2019-11-18 03:54:33,702 INFO [org.apereo.cas.web.CasWebApplicationContext]
- <Refreshing CasWebApplicationContext()>
2019-11-18 03:54:33,712 DEBUG [org.apereo.cas.web.CasWebApplicationContext]
- <Bean factory for org.apereo.cas.web.CasWebApplicationContext@f5958c9:
org.springframework.beans.factory.support.DefaultListableBeanFactory@55b53d44:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,casWebApplication];
parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@78ac1102
>
2019-11-18 03:54:35,307 DEBUG [com.amazonaws.http.IdleConnectionReaper] -
<Reaper thread: >
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method) [?:1.8.0_131]
at
com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:181)
~[aws-java-sdk-core-1.11.332.jar!/:?]
2019-11-18 03:54:35,307 DEBUG [com.amazonaws.http.IdleConnectionReaper] -
<Shutting down reaper thread.>
*Cas.properties*:
cas.server.name: https://test.<domain>
cas.server.prefix: https://test.<domain>/cas
logging.config: file:/etc/cas/config/log4j2.xml
cas.authn.accept.users=casuser::Mellon
cas.spring.cloud.dynamodb.credentialAccessKey= xxxxxx
cas.spring.cloud.dynamodb.credentialSecretKey= xxxxxx
cas.spring.cloud.dynamodb.endpoint=http://localhost:8000
#cas.spring.cloud.dynamodb.localAddress=
cas.spring.cloud.dynamodb.region=US_EAST_1
#cas.spring.cloud.dynamodb.regionOverride=
cas.spring.cloud.dynamoDb.readCapacity=10
cas.spring.cloud.dynamoDb.writeCapacity=10
cas.spring.cloud.dynamoDb.connectionTimeout=5000
cas.spring.cloud.dynamoDb.requestTimeout=5000
cas.spring.cloud.dynamoDb.socketTimeout=5000
cas.spring.cloud.dynamoDb.useGzip=false
cas.spring.cloud.dynamoDb.useReaper=false
cas.spring.cloud.dynamoDb.useThrottleRetries=false
cas.spring.cloud.dynamoDb.useTcpKeepAlive=false
cas.spring.cloud.dynamoDb.protocol=HTTPS
cas.spring.cloud.dynamoDb.clientExecutionTimeout=10000
cas.spring.cloud.dynamoDb.cacheResponseMetadata=false
cas.spring.cloud.dynamoDb.maxConnections=10
cas.serviceRegistry.json.location=file:///etc/cas/services
I have added dependency in POM.XML
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-configuration-cloud-dynamodb</artifactId>
<version>${cas.version}</version></dependency>
Let me know if i need to add any other settings on cas.properties from my
end.
Regards,
Raheem Shaik
On Fri, Nov 15, 2019 at 4:53 AM Ray Bon <[email protected]> wrote:
> Raheem,
>
> This might help,
> https://apereo.github.io/cas/6.1.x/configuration/Configuration-Server-Management.html#dynamodb
>
> Ray
>
> On Thu, 2019-11-07 at 11:34 -0800, Raheem Shaik wrote:
>
> Any idea how we can configure cas to load cas.properties (hazelcast) from
> dynamodb
>
> ********************************************
>
>
>
> *Inmar Confidentiality Note*: This e-mail and any attachments are
> confidential and intended to be viewed and used solely by the intended
> recipient. If you are not the intended recipient, be aware that any
> disclosure, dissemination, distribution, copying or use of this e-mail or
> any attachment is prohibited. If you received this e-mail in error, please
> notify us immediately by returning it to the sender and delete this copy
> and all attachments from your system and destroy any printed copies. Thank
> you for your cooperation.
>
>
>
> *Notice of Protected Rights*: The removal of any copyright, trademark,
> or proprietary legend contained in this e-mail or any attachment is
> prohibited without the express, written permission of Inmar, Inc.
> Furthermore, the intended recipient must maintain all copyright notices,
> trademarks, and proprietary legends within this e-mail and any attachments
> in their original form and location if the e-mail or any attachments are
> reproduced, printed or distributed.
>
>
>
> ********************************************
>
> --
>
> Ray Bon
> Programmer Analyst
> Development Services, University Systems
> 2507218831 | CLE 019 | [email protected]
>
> 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.
>
> --
> - 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/5ecc73e0a971300c6e79fc2f62429d91459fd954.camel%40uvic.ca
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/5ecc73e0a971300c6e79fc2f62429d91459fd954.camel%40uvic.ca?utm_medium=email&utm_source=footer>
> .
>
--
********************************************
*Inmar Confidentiality
Note*: This e-mail and any attachments are confidential and intended to be
viewed and used solely by the intended recipient. If you are not the
intended recipient, be aware that any disclosure, dissemination,
distribution, copying or use of this e-mail or any attachment is
prohibited. If you received this e-mail in error, please notify us
immediately by returning it to the sender and delete this copy and all
attachments from your system and destroy any printed copies. Thank you for
your cooperation.
*Notice of Protected Rights*: The removal of any
copyright, trademark, or proprietary legend contained in this e-mail or any
attachment is prohibited without the express, written permission of Inmar,
Inc. Furthermore, the intended recipient must maintain all copyright
notices, trademarks, and proprietary legends within this e-mail and any
attachments in their original form and location if the e-mail or any
attachments are reproduced, printed or distributed.
********************************************
--
- 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/CAD_gEK5x0HDMXUnxaXh62Oww1yO6fAXi9-nWSvWo3_youWOw1g%40mail.gmail.com.