I have the sample hippo project working in Eclipse 'Mars' and hot deploy to Tomcat 8 from Eclipse. All Web apps are working fine (/cms, /site, /essential).
My problem is that every time I do change to Freemarker template ("flt" files) and save my changes, then Tomcat will detect the changes I have made and start to redeploy all the applications (/essential, /cms, /site) which is prefect but then it throws the following error:
SEVERE: Servlet [Repository] in web application [/cms] threw load() exception
javax.servlet.ServletException: RepositoryException: Workspace directory already exists: default
at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:230)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1231)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1031)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4914)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5201)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3746)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:292)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5528)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1349)
at java.lang.Thread.run(Thread.java:745)
If i stop Tomcat server from Eclipse and then Start it again, the error goes away. However, this is annoying as I have to stop/start the server every time I do a change to a Freemarker template which is not productive at all and I would like tomcat to continue hot deploy when it detects changes but the error above keeps happening which then force me to stop/start the server to get rid of it :-(
Anyone faced this error before?