After running for a while site looses the connection to the repository and renders ftl without css styling. Below is the log:
[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.922 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [cms] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.979 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cms] appears to have started a thread named [Transient File Reaper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
[INFO] [talledLocalContainer] java.lang.Object.wait(Native Method)
[INFO] [talledLocalContainer] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
[INFO] [talledLocalContainer] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
[INFO] [talledLocalContainer] org.apache.jackrabbit.util.TransientFileFactory$ReaperThread.run(TransientFileFactory.java:192)
[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.980 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cms] appears to have started a thread named [Wicket-PageSavingThread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
[INFO] [talledLocalContainer] sun.misc.Unsafe.park(Native Method)
[INFO] Scanning for projects...
[INFO] [talledLocalContainer] java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
[INFO] [talledLocalContainer] java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
[INFO] [talledLocalContainer] java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
[INFO] [talledLocalContainer] org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:345)
[INFO] [talledLocalContainer] java.lang.Thread.run(Thread.java:748)
[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.980 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cms] appears to have started a thread named [Wicket-PageSavingThread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
[INFO] [talledLocalContainer] sun.misc.Unsafe.park(Native Method)
[INFO] [talledLocalContainer] java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
[INFO] [talledLocalContainer] java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [cms] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped.[INFO] [talledLocalContainer] java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
[INFO] [talledLocalContainer] org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:345)
[INFO] [talledLocalContainer] java.lang.Thread.run(Thread.java:748)
[INFO] [talledLocalContainer] 09-Dec-2017 09:31:47.945 INFO [http-nio-8080-exec-1] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/cms]
[INFO] [talledLocalContainer] 09-Dec-2017 09:31:54.035 INFO [http-nio-8080-exec-9] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/ec2-user/NewSLJ/sljtv/newsljtv/target/tomcat8x/webapps/cms.war
[INFO] [talledLocalContainer] 09-Dec-2017 09:32:01.634 INFO [http-nio-8080-exec-9] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/ec2-user/NewSLJ/sljtv/newsljtv/target/tomcat8x/webapps/cms.war has finished in 7,599 ms
[INFO] [talledLocalContainer] 09.12.2017 09:32:09 WARN EventListenersContainerSessionChecker-1 [EventListenersContainerImpl.doInit:304] The repository is not available. It will try initialization next time. javax.jcr.RepositoryException: javax.jcr.LoginException: Failed to borrow session from the pool. javax.jcr.RepositoryException: Repository not initialized yet.
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 WARN http-nio-8080-exec-8 [HstComponentInvokerImpl.invokeBeforeRender:158] Component exception caught on window videopage with component org.newslj.components.SljvController: java.lang.IllegalStateException: Cannot get ObjectBeanManager. Cause : 'javax.jcr.RepositoryException: javax.jcr.LoginException: Failed to borrow session from the pool. javax.jcr.RepositoryException: Repository not initialized yet.' at org.hippoecm.hst.site.request.HstRequestContextImpl.getObjectBeanManager(HstRequestContextImpl.java:801)
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 WARN http-nio-8080-exec-8 [AbstractBaseOrderableValve.handleComponentExceptions:299] Component exception(s) found in page request, 'Request{ method='GET', scheme='http', host='tv.slj.com', requestURI='/site/', queryString='null'}'. [INFO] [talledLocalContainer] 09.12.2017 09:32:23 WARN http-nio-8080-exec-8 [DefaultPageErrorHandler.logWarningsForEachComponentExceptions:51] Component exception on org.newslj.components.SljvController : java.lang.IllegalStateException: Cannot get ObjectBeanManager. Cause : 'javax.jcr.RepositoryException: javax.jcr.LoginException: Failed to borrow session from the pool. javax.jcr.RepositoryException: Repository not initialized yet.'
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 ERROR http-nio-8080-exec-8 [HstWebFileTag.doEndTag:136] Missing service for 'org.onehippo.cms7.services.webfiles.WebFilesService'. Cannot create web file url.
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 ERROR http-nio-8080-exec-8 [HstWebFileTag.doEndTag:136] Missing service for 'org.onehippo.cms7.services.webfiles.WebFilesService'. Cannot create web file url.
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 ERROR http-nio-8080-exec-8 [HstWebFileTag.doEndTag:136] Missing service for 'org.onehippo.cms7.services.webfiles.WebFilesService'. Cannot create web file url.