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

On 27/09/16 10:31, Misagh Moayyed wrote:
Because:

1. https://apereo.github.io/cas/development/installation/Configuration-Properties.html#remember 2. https://apereo.github.io/cas/development/installation/Configuration-Properties.html#ignite-ticket-registry

--
Misagh

From: Stephan Arts <[email protected]> <mailto:[email protected]>
Reply: Stephan Arts <[email protected]> <mailto:[email protected]>
Date: September 27, 2016 at 11:50:40 AM
To: Misagh Moayyed <[email protected]> <mailto:[email protected]>, [email protected] <[email protected]> <mailto:[email protected]>
Subject: Re: [cas-user] [CAS 5.0 RC2] Configuring the Maven overlay

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>https://apereo.github.io/cas/development/installation/Configuration-Management.html


Then browse:

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


--
Misagh

From: Stephan Arts <[email protected]>
Reply: Stephan Arts <[email protected]>
Date: September 26, 2016 at 10:44:42 AM
To: [email protected] <[email protected]>
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 [email protected].
To post to this group, send email to [email protected].
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.

--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. 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/57EA2BD2.3000801%40cosmos.esa.int <https://groups.google.com/a/apereo.org/d/msgid/cas-user/57EA2BD2.3000801%40cosmos.esa.int?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.
--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. 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/etPan.57ea2e45.782bdfa1.31e4%40unicon.net <https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.57ea2e45.782bdfa1.31e4%40unicon.net?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

--
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 post to this group, send email to [email protected].
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/57EE13D2.2090202%40cosmos.esa.int.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.
##
# CAS Server Context Configuration
#
server.context-path=/cas
server.port=8443

server.ssl.key-store=file:/etc/cas/thekeystore
server.ssl.key-store-password=changeit
server.ssl.key-password=changeit
server.max-http-header-size=2097152
server.max-http-post-size=2097152
server.use-forward-headers=true

# server.ssl.ciphers=
# server.ssl.client-auth=
# server.ssl.enabled=
# server.ssl.key-alias=
# server.ssl.key-store-provider=
# server.ssl.key-store-type=
# server.ssl.protocol=
# server.ssl.trust-store=
# server.ssl.trust-store-password=
# server.ssl.trust-store-provider=
# server.ssl.trust-store-type=
        
server.tomcat.basedir=build/tomcat
server.tomcat.accesslog.enabled=true
server.tomcat.accesslog.pattern=%t %a "%r" %s (%D ms)
server.tomcat.accesslog.suffix=.log
server.tomcat.max-threads=5
server.tomcat.port-header=X-Forwarded-Port
server.tomcat.protocol-header=X-Forwarded-Proto
server.tomcat.protocol-header-https-value=https
server.tomcat.remote-ip-header=X-FORWARDED-FOR
server.tomcat.uri-encoding=UTF-8
server.error.include-stacktrace=ALWAYS
        
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
spring.http.encoding.force=true

##
# CAS Cloud Bus Configuration
#
spring.cloud.bus.enabled=false
# spring.cloud.bus.refresh.enabled=true
# spring.cloud.bus.env.enabled=true
# spring.cloud.bus.destination=CasCloudBus
# spring.cloud.bus.ack.enabled=true

endpoints.enabled=true
endpoints.sensitive=true
management.context-path=/status
endpoints.restart.enabled=false
endpoints.shutdown.enabled=false


##
# CAS Web Application Session Configuration
#
server.session.timeout=300
server.session.cookie.http-only=true
server.session.tracking-modes=COOKIE

##
# CAS Thymeleaf View Configuration
#
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.cache=false

##
# CAS Log4j Configuration
#
# logging.config=file:/etc/cas/log4j2.xml
server.context-parameters.isLog4jAutoInitializationDisabled=true

##
# CAS AspectJ Configuration
#
spring.aop.auto=true
spring.aop.proxy-target-class=true

##
# CAS Authentication Attributes
#
cas.authn.attributeRepository.attributes.uid=uid
cas.authn.attributeRepository.attributes.displayName=displayName
cas.authn.attributeRepository.attributes.cn=commonName
cas.authn.attributeRepository.attributes.affiliation=groupMembership

##
# CAS Authentication Credentials
#
cas.authn.accept.users=

# JSON ServiceRegistry
cas.serviceRegistry.watcherEnabled=true
cas.serviceRegistry.repeatInterval=120000
cas.serviceRegistry.startDelay=15000
cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.config.location=file:///Users/sarts/Documents/workspace/config/services

cas.ticket.registry.hazelcast.pageSize=500
cas.ticket.registry.hazelcast.mapName=tickets
cas.ticket.registry.hazelcast.configLocation=file:///Users/sarts/Documents/workspace/config/hazelcast.xml

cas.ticket.registry.hazelcast.cluster.evictionPolicy=LRU
cas.ticket.registry.hazelcast.cluster.maxNoHeartbeatSeconds=300
cas.ticket.registry.hazelcast.cluster.multicastEnabled=false
cas.ticket.registry.hazelcast.cluster.evictionPercentage=10
cas.ticket.registry.hazelcast.cluster.tcpipEnabled=true
cas.ticket.registry.hazelcast.cluster.members=localhost
cas.ticket.registry.hazelcast.cluster.loggingType=slf4j
cas.ticket.registry.hazelcast.cluster.instanceName=localhost
cas.ticket.registry.hazelcast.cluster.port=5701
cas.ticket.registry.hazelcast.cluster.portAutoIncrement=true
cas.ticket.registry.hazelcast.cluster.maxHeapSizePercentage=85
cas.ticket.registry.hazelcast.cluster.backupCount=1
cas.ticket.registry.hazelcast.cluster.asyncBackupCount=0
cas.ticket.registry.hazelcast.cluster.maxSizePolicy=USED_HEAP_PERCENTAGE
cas.ticket.registry.hazelcast.cluster.timeout=5

# cas.ticket.registry.hazelcast.cluster.multicastTrustedInterfaces=
# cas.ticket.registry.hazelcast.cluster.multicastPort=5702
# cas.ticket.registry.hazelcast.cluster.multicastGroup=
# cas.ticket.registry.hazelcast.cluster.multicastTimeout=2
# cas.ticket.registry.hazelcast.cluster.multicastTimeToLive=32

# cas.ticket.registry.hazelcast.crypto.signing.key=
# cas.ticket.registry.hazelcast.crypto.signing.keySize=512
# cas.ticket.registry.hazelcast.crypto.encryption.key=
# cas.ticket.registry.hazelcast.crypto.encryption.keySize=16
# cas.ticket.registry.hazelcast.crypto.alg=AES

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>

  <groupId>esa.cosmos</groupId>
  <artifactId>cas</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>

  <name>cas</name>
  <url>https://cas.cosmos.esa.int/</url>

    <build>
        <plugins>
            <plugin>
                <groupId>com.rimerosolutions.maven.plugins</groupId>
          		<artifactId>wrapper-maven-plugin</artifactId>
          		<version>0.0.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <warName>cas</warName>
			        <failOnMissingWebXml>false</failOnMissingWebXml>
			        <recompressZippedFiles>false</recompressZippedFiles>
			        <archive>
			        	<compress>false</compress>
						<manifestFile>${project.build.directory}/war/work/org.apereo.cas/cas-server-webapp/META-INF/MANIFEST.MF</manifestFile> 
					</archive>
                    <overlays>
                        <overlay>
                            <groupId>org.apereo.cas</groupId>
                            <artifactId>cas-server-webapp</artifactId>
                        </overlay>
                    </overlays>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
            </plugin>
            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>${maven-jetty-plugin.version}</version>
                <configuration>
                    <jettyXml>${basedir}/etc/jetty/jetty.xml,${basedir}/etc/jetty/jetty-ssl.xml,${basedir}/etc/jetty/jetty-https.xml</jettyXml>
                    <systemProperties>
                        <systemProperty>
                            <name>org.eclipse.jetty.annotations.maxWait</name>
                            <value>240</value>
                        </systemProperty>
                    </systemProperties>
                    <webApp>
                        <contextPath>/cas</contextPath>
                        <overrideDescriptor>${basedir}/etc/jetty/web.xml</overrideDescriptor>
                    </webApp>
                    <webAppConfig>
                        <allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
                    </webAppConfig>
                    <jvmArgs>-Dlogging.config=/etc/cas/log4j2.xml -Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n</jvmArgs>
                </configuration>
            </plugin>
        </plugins>
        <finalName>cas</finalName>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-webapp</artifactId>
            <version>${cas.version}</version>
            <type>war</type>
            <scope>runtime</scope>
        </dependency>
        <!--
       	JSON Service Registry
       	=====================
       	
       	Allows the configuration of Services using a .json file on the
       	Server's filesystem. Using this instead of the in-memory configuration
       	alow 
         -->
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-support-json-service-registry</artifactId>
            <version>${cas.version}</version>
        </dependency>
        
        <!-- 
        Ignite Ticket-Registry
         -->
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <!-- <artifactId>cas-server-support-ignite-ticket-registry</artifactId> -->
            
            <artifactId>cas-server-support-hazelcast-ticket-registry</artifactId>
            <version>${cas.version}</version>
            <scope>runtime</scope>
        </dependency>
        
        <!-- 
        LDAP
         -->
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-support-ldap</artifactId>
            <version>${cas.version}</version>
            <type>jar</type>
            <scope>runtime</scope>
        </dependency>
    </dependencies>

    <properties>
        <cas.version>5.0.0.RC2</cas.version>
        <maven-jetty-plugin.version>9.3.6.v20151106</maven-jetty-plugin.version>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <repositories>
        <repository>
            <id>sonatype-releases</id>
            <url>http://oss.sonatype.org/content/repositories/releases/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>sonatype-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
        <repository>
            <id>shibboleth-releases</id>
            <url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
        </repository>
        <repository>
            <id>spring-milestones</id>
            <url>https://repo.spring.io/milestone</url>
        </repository>
    </repositories>

    <profiles>
		<profile>
		    <activation>
		        <activeByDefault>false</activeByDefault>
		    </activation>
		    <id>pgp</id>
		    <build>
		        <plugins>
		            <plugin>
		                <groupId>com.github.s4u.plugins</groupId>
		                <artifactId>pgpverify-maven-plugin</artifactId>
		                <version>1.1.0</version>
		                <executions>
		                    <execution>
		                        <goals>
		                            <goal>check</goal>
		                        </goals>
		                    </execution>
		                </executions>
		                <configuration>
		                    <pgpKeyServer>hkp://pool.sks-keyservers.net</pgpKeyServer>
		                    <pgpKeysCachePath>${settings.localRepository}/pgpkeys-cache</pgpKeysCachePath>
		                    <scope>test</scope>
		                    <verifyPomFiles>true</verifyPomFiles>
		                    <failNoSignature>false</failNoSignature>
		                </configuration>
		            </plugin>
		        </plugins>
		    </build>
		</profile>
    </profiles>
</project>

Reply via email to