Just an update on this, these are the steps I took to rebuild/re-deploy the cas.war file with the css changes and it worked, thanks Bob. I think removing the cas folder inside of the Tomcat Webapps folder and letting the new war file rebuild it is what did the trick.

Thanks


- Create the following folder in your src directory structure if it does not exist

        c:\local-cas\src\main\webapp\css

    - Copy the modified cas.css file to c:\local-cas\src\main\webapp\css

    - Shut off the Tomcat service on the CAS server

    - Remove these files/folders.

C:\local-cas\target\cas.war (the "mvn clean package" will build a new one) C:\tomcat7\cas.log (might be several cas.log files.... delete them)
        C:\tomcat7\webapps\cas
        C:\tomcat7\webapps\cas.war

- Go into a DOS window into the C:\local-cas folder and run the following command

        mvn clean package

    - Copy the file C:\local-cas\target\cas.war to C:\tomcat7\webapps

- Start the Tomcat service and within your browser remove all of your cookies and test going to this URL

https://<ourCASserver>.wheatonma.edu/cas/login




++++++++++++++++++++++++++++
Brian Gibson
Systems Administrator
Wheaton College

Are you a musician? If so visit my Arbans Online music site at
http://arbansonline.com and listen & contribute

On 8/29/2014 5:04 PM, Lapanja, Bob@POST wrote:
Hi all,

We use the suggested maven WAR overlay method for building CAS 3.5.2
and we have it working. We'd like to change the look and feel of the
login page to personalize it but are running into issues. If we modify
the css files inside of the deployed web application in Tomcat (in our
case, modifying files located here C:\tomcat7\webapps\cas\css) they get
overwritten the next time we rebuild the cas.war file.

We also tried taking the css files from the 3.5.2 downloads file (from
here
c:\cas_downloads\cas-server-3.5.2-release\cas-server-3.5.2\cas-server-
webapp\src\main\webapp\css)
and modifying them and putting them in our build directory (located
here
C:\local-cas\src\main\webapp\css) and doing a "mvn clean package" and
putting the new cas.war file from the target folder into Tomcat's
webapps folder and restarting Tomcat but the changes were not reflected
in the CAS login page.

Anyone know the proper steps for doing this?
I deploy my custom css files by doing as you said in your second part.  I place the css 
files in my build directory and build them into my .war using "mvn clean 
package".  As for not being reflected in the CAS login page, is it possible the css 
files were still being read from your browser cache?  Did you try doing a full refresh of 
your page?



--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to