Hi

I'm having a hard time getting CAS (5.1.4 using overlay) to read the config
files as expected.

I currently have the following (snippet) in my application.yml file which
is in /etc/cas/config/

spring:
  profiles: ldap
cas:
  authn:
    ldap:
    - ldapUrl: ldaps://devldap.myorg.co.za:636

But starting CAS without even specifying any spring profile it still reads
the profile as if it was activated.
Even worse is, when I try and add another profile (separating by a --- yml
section) it reads the next profile too. It's like spring is set to read ALL
PROFILES instead of only selecting the ones activated.

E.g.

spring:
  profiles: ldap
cas:
  authn:
    ldap:
    - ldapUrl: ldaps://devldap.myorg.co.za:636
---
spring:
  profiles: ldap-production
cas:
  authn:
    ldap:
    - ldapUrl: ldaps://ldap.myorg.co.za:636



I tried running cas with *java **-Dspring.profiles.include=ldap **-jar
cas.war *but then it fails with

***************************
APPLICATION FAILED TO START
***************************

Description:

Field configurationPropertiesEnvironmentManager in org.apereo.cas.config.
CasConfigurationSupportUtilitiesConfiguration$CasCoreConfigurationWatchConfiguration
required a bean of type 'org.apereo.cas.configuration.
CasConfigurationPropertiesEnvironmentManager' that could not be found.


Action:

Consider defining a bean of type 'org.apereo.cas.configuration.
CasConfigurationPropertiesEnvironmentManager' in your configuration.

The application did start with
<The following profiles are active: ldap,standalone>
before it failed with the above

My CAS is running fine. ldap integration, logins etc works great when not
trying to use profiles and just having all in one section. But now that I
got CAS running, I'd like to use profiles for different configuration
setups.

Any ideas / things to try, would be appreciated.

Regards / Groete
*Charl Thiem*
Senior Developer
IT Infrastructure Manager

-- 

------------------------------
See OpenCollab email disclaimer at 
http://www.opencollab.co.za/email-disclaimer

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAK5fTW6mZ_nf78i3eTnWuuC4aaB4oANpsrdSPpVvVLeY0oayfQ%40mail.gmail.com.

Reply via email to