You probably want this in cas.properties:

spring.thymeleaf.cache:                 false


As least, "it worked for me" while I was working on all the stuff in our
templates.

--Dave


--

DAVID A. CURRY, CISSP
*DIRECTOR OF INFORMATION SECURITY*
INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • [email protected]

[image: The New School]

On Tue, Feb 20, 2018 at 11:34 AM, Man H <[email protected]> wrote:

> Just as for other webapps make changes on tomcats deployed cas whether it
> is embedded or not.
>
>
> El martes, 20 de febrero de 2018, Anthony O. <[email protected]> escribió:
>
>> Hi,
>>
>> I want to live develop my cas-overlay casLoginView.html without
>> restarting CAS every time I make a little change on the .html (because it
>> is very long to restart).
>>
>> So I wanted to simply execute mvn clean package spring-boot:run
>> -Drun.jvmArguments="-agentlib:jdwp=transport=dt_socket,serve
>> r=y,suspend=n,address=5005" in my cas-overlay project but I had the
>> following error:
>> java.lang.ClassNotFoundException: org.apereo.cas.web.CasWebApplication
>>     at java.net.URLClassLoader.findClass (URLClassLoader.java:381)
>>     at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
>>     at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
>>     at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run
>> (AbstractRunMojo.java:522)
>>     at java.lang.Thread.run (Thread.java:748)
>>
>> I realized that it was very easy to reproduce as this problem exists
>> directly with current https://github.com/apereo/cas-overlay-template :
>> git clone https://github.com/apereo/cas-overlay-template.git
>> cd cas-overlay-template/
>> bash build.sh bootrun
>>
>> You will have the following output at the end:
>>
>> [INFO] --- spring-boot-maven-plugin:1.5.8.RELEASE:run (default-cli) @
>> cas-overlay ---
>> [WARNING]
>> java.lang.ClassNotFoundException: org.apereo.cas.web.CasWebApplication
>>     at java.net.URLClassLoader.findClass (URLClassLoader.java:381)
>>     at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
>>     at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
>>     at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run
>> (AbstractRunMojo.java:522)
>>     at java.lang.Thread.run (Thread.java:748)
>> [INFO] ------------------------------------------------------------
>> ------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------
>> ------------
>> [INFO] Total time: 1.915 s (Wall Clock)
>> [INFO] Finished at: 2018-02-20T16:38:28+01:00
>> [INFO] Final Memory: 21M/431M
>> [INFO] ------------------------------------------------------------
>> ------------
>> [ERROR] Failed to execute goal org.springframework.boot:sprin
>> g-boot-maven-plugin:1.5.8.RELEASE:run (default-cli) on project
>> cas-overlay: An exception occurred while running.
>> org.apereo.cas.web.CasWebApplication -> [Help 1]
>>
>> Does somebody know how to correctly run CAS with SpringBoot or run the
>> instance with automatic html live reload without the need to restart the
>> server?
>>
>> Regards,
>>  Anthony
>>
>> --
>> - 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 [email protected].
>> To view this discussion on the web visit https://groups.google.com/a/ap
>> ereo.org/d/msgid/cas-user/7c1a8468-3c0b-4e46-8e97-d4c1b6e6da
>> 7b%40apereo.org
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/7c1a8468-3c0b-4e46-8e97-d4c1b6e6da7b%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
> --
> - 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/CAMY5midzixwHvfP6qKQzi-vgC3eqSvRrkvBhoO4hxa4%
> 3DA15H1g%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5midzixwHvfP6qKQzi-vgC3eqSvRrkvBhoO4hxa4%3DA15H1g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAO%3Da2N1ZwbDn97%3DcdeqhoGpdKpv6SMU%2B50_Ett360nd7g%40mail.gmail.com.

Reply via email to