[CAS 5.0 RC2] Configuring the Maven overlay

241 views
Skip to first unread message

Stephan Arts

unread,
Sep 26, 2016, 3:14:38 AM9/26/16
to cas-...@apereo.org
Hi,

I am trying to test out CAS 5, but I am a bit lost on how to configure it.

I've added the ignite-ticket-registry and json-service registry as
dependencies in the .pom file

<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-json-service-registry</artifactId>
<version>${cas.version}</version>
</dependency>

<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-ignite-ticket-registry</artifactId>
<version>${cas.version}</version>
</dependency>

With cas 4.0, I had to specify something in the
deployerConfigContext.xml to map mbeans. - Now there is an empty .xml
file and some .groovy file to use. The documentation specifies that one
of these should be used (I think):
https://apereo.github.io/cas/development/installation/Maven-Overlay-Installation.html#spring-configuration

But I have no clue where to start. - Is there a list of
configuration-examples I can look at?

Cheers,

Stephan

Stephan Arts

unread,
Sep 27, 2016, 4:20:37 AM9/27/16
to Misagh Moayyed, cas-...@apereo.org
If I read (and understand) the information you're referring to correctly, adding the appropriate properties to a .yaml or .properties file in /etc/cas/config should be enough for CAS to understand that it should try to load the IgniteTicketRegistry class.

I've added this to a cas.properties file in the config-location:
cas.authn.accept.users=

ignite.servicesCache.name=serviceTicketsCache
ignite.servicesCache.cacheMode=REPLICATED
ignite.servicesCache.atomicityMode=TRANSACTIONAL
ignite.servicesCache.writeSynchronizationMode=FULL_SYNC
ignite.ticketsCache.name=ticketGrantingTicketsCache
ignite.ticketsCache.cacheMode=REPLICATED
ignite.ticketsCache.atomicityMode=TRANSACTIONAL
ignite.ticketsCache.writeSynchronizationMode=FULL_SYNC

# Comma delimited list of addresses for distributed caches.
ignite.adresses=localhost:47500
ignite.trustStoreFilePath=NULL
ignite.trustStorePasswor=NULL

But nothing happens. I think I am missing some crucial bit in my understanding of the concepts involved.
Reading the debug log I don't even see the IgniteTicketRegistry classes being loaded although they definitely are in the classpath of the cas war-file.

-
Stephan

On 26/09/16 10:17, Misagh Moayyed wrote:

Read:

https://apereo.github.io/cas/development/installation/Configuration-Management.html


Then browse:

https://apereo.github.io/cas/development/installation/Configuration-Properties.html 


-- 
Misagh

From: Stephan Arts <sa...@cosmos.esa.int>
Reply: Stephan Arts <sa...@cosmos.esa.int>
Date: September 26, 2016 at 10:44:42 AM
To: cas-...@apereo.org <cas-...@apereo.org>
Subject:  [cas-user] [CAS 5.0 RC2] Configuring the Maven overlay

Hi,

I am trying to test out CAS 5, but I am a bit lost on how to configure it.

I've added the ignite-ticket-registry and json-service registry as br/>dependencies in the .pom file <

<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-json-service-registry</artifactId>
<version>${cas.version}</version>
</dependency>

<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-ignite-ticket-registry</artifactId>
<version>${cas.version}</version>
</dependency>

With cas 4.0, I had to specify something in the br/>deployerCConfigContext.xml to map mbeans. - Now there is an empty .xml br/>fille and some .groovy file to use. The documentation specifies that one
of these should be used (I think): br/>https://apereo.github.io//cas/development/installation/Maven-Overlay-Installation.html#spring-configuration

But I have no clue where to start. - Is there a list of br/>cconfiguration-examples I can look at?

Cheers,

Stephan

-- br/>You received this message because you are subscribed tto 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 post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/57E8CAE3.7060104%40cosmos.esa.int.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Misagh Moayyed

unread,
Sep 27, 2016, 4:31:22 AM9/27/16
to cas-...@apereo.org
--
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 post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Stephan Arts

unread,
Sep 30, 2016, 3:27:07 AM9/30/16
to cas-...@apereo.org
I am feeling more and more like an idiot.

There must be something I am missing or fail to understand.

I've tried different things, (even tried a different registry - just to see if that helps)

And I am not getting anywhere.

When looking at the attached pom.xml and application.properties, can you give me any hint to the source of my stupidity?

Cheers,

Stephan
application.properties
pom.xml

Misagh Moayyed

unread,
Sep 30, 2016, 5:00:40 AM9/30/16
to cas-...@apereo.org, Stephan Arts

Stephan Arts

unread,
Sep 30, 2016, 5:17:08 AM9/30/16
to Misagh Moayyed, cas-...@apereo.org
Can I relate it to ticket #2024? Since I think it's related to my understanding of how to do the overlays with CAS 5.
Reply all
Reply to author
Forward
0 new messages