CAS-Management 6.5.5 and custom file location

Skip to first unread message

Nathan Lewan

Jul 28, 2022, 4:39:40 AMJul 28
to CAS Community

So i'm coming off a successful deployment of 6.1 of  cas and cas-management, and trying similar deployment practices with the 6.5 branches. I've run into some things I wanted to mention to see if i'm just doing it wrong.

I can't leave well enough alone and like to have the, and files in custom locations, along with services, and users.json, etc. I've had great success with using the SPRING_APPLICATION_JSON environment variable to define cas.standalone.configurationDirectory, which tells cas and cas-management where to look for certain config files.

CAS 6.5.5 is working beautifully with this, but CAS-Management 6.5.5 is choking. 

Despite the catalina.out log stating that both cas and cas-management have found the and files, cas-management appears to not read the contents. 

Settings like the JSON service Registry folder location will not take if I just define them in the file. CAS picks up on the location defined in its file, but not CAS-Management. I have just had luck defining it's location in the SPRING_APPLICATION_JSON environment variable using the same property as is written in the file. That got that part working, but then cas-management started to say it was looking in /etc/cas for things again, and failing.

Anyone have any similar experiences? 


Ray Bon

Jul 28, 2022, 12:27:45 PMJul 28

You can pass path locations as environment variables to the container or java:


The first line is what we used in our previous version of cas management, the second line is the one I added for version 6.5 (not sure why spring no longer finds the file in the directory). 

Other paths can go in


On Thu, 2022-07-28 at 01:39 -0700, Nathan Lewan wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
Ray Bon
Programmer Analyst
Development Services, University Systems

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day.

Nathan Lewan

Jul 29, 2022, 1:53:44 PMJul 29
to CAS Community, Ray Bon
that did it!

thank you so much, I was really pulling my hair out on that one.

Reply all
Reply to author
0 new messages