Hi! Just an observation, I'm not sure if it's worth to create JIRA issue for it.
When I created a new LoginRejected page, I named the template file just "LoginRejected", i.e., without the .tml suffix. This lead to a java.lang.OutOfMemoryError when starting the app. Renaming the template to LoginRejected.tml solved the issue. Regards, Olle