Building cas.war for Tomcat -- is 'etc' also required in Tomcat?

21 views
Skip to first unread message

josbrodie

unread,
May 10, 2018, 1:20:57 AM5/10/18
to CAS Community
We are rather confused over here w.r.t installing v5.2.4 --- any help will be greatly appreciated.

Our goal is to build the cas.war to place in '/opt/tomcat/webapps'.

This is what we have for locations:

- Overlay at: /opt/workspace/cas-overlay-template


- Minimal amount of configuration in (for cas.properties; log4j2.xml): /opt/workspace/cas-overlay-template/etc/cas/config (following the configuration instructions here: https://dacurry-tns.github.io/deploying-apereo-cas/building_server_configure-server-properties.html)



Steps take:


1) Build: /opt/workspace/cas-overlay-template/.build.sh package

2) Copy the WAR to Tomcat:   cp /opt/workspace/cas-overlay-template/target/cas.war /opt/tomcat/webapps/


Is the above all we need? 


Or should we also copy '/opt/workspace/cas-overlay-template/etc/' to /opt/tomcat/webapps/'?



Matthew Uribe

unread,
May 10, 2018, 10:17:35 AM5/10/18
to CAS Community
Your cas.properties and log4j2.xml files are expected in /etc/cas which will have to be readable to the tomcat process.

Richard Frovarp

unread,
May 10, 2018, 10:25:55 AM5/10/18
to cas-...@apereo.org
You can override the configuration location using bootstrap.properties:

cas.standalone.config=/etc/cas/cas-server-ndsu

I need to be able to run several instances of CAS on the same system for different audiences, so I have to relocate it out of the default /etc/cas.
--
- 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+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/42c8c664-a74b-4cfa-9ae3-21d5b0b877a4%40apereo.org.


Mailvaganam, Hari

unread,
May 10, 2018, 11:30:49 AM5/10/18
to cas-...@apereo.org
Using the OP example path -- do you have it at the follow? And swap out by defining at 'cas.properties' with 'cas.standalone.config'?


/opt/tomcat/webapp/etc/cas/cas-server-ndsu
/opt/tomcat/webapp/etc/cas/cas-foobae



From: cas-...@apereo.org [cas-...@apereo.org] on behalf of Richard Frovarp [richard...@ndsu.edu]
Sent: Thursday, May 10, 2018 07:25
To: cas-...@apereo.org
Subject: Re: [cas-user] Re: Building cas.war for Tomcat -- is 'etc' also required in Tomcat?

Reply all
Reply to author
Forward
0 new messages