Closed dumpl1ng closed 5 years ago
I move the .hbs file back to hello-world directory and it works.
The above solution no longer working, the issue happens again.
The problem is I am using Java 11, with Java 11 the view sometimes works. Downgrade to Java 8 solve this problem.
Can't render /test!
`Could not initialize class com.github.jknack.handlebars.EscapingStrategy (java.lang.NoClassDefFoundError) com.github.jknack.handlebars.Handlebars.(Handlebars.java:298)
com.psddev.handlebars.CustomHandlebars.(CustomHandlebars.java:23)
com.psddev.handlebars.HandlebarsRenderer$1.load(HandlebarsRenderer.java:101)
Toggle Stack Traces
java.lang.NoClassDefFoundError: Could not initialize class com.github.jknack.handlebars.EscapingStrategy (com.google.common.util.concurrent.ExecutionError) com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2216) com.google.common.cache.LocalCache.get(LocalCache.java:4147) com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4151) Toggle Stack Traces
Filter execution threw an exception (javax.servlet.ServletException) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:255) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) com.psddev.dari.util.AbstractFilter.doDispatch(AbstractFilter.java:504) Toggle Stack Traces`
This will pop up if I run the canonical demo (hello-world) and generate perma link. I tried downgrade java version and add current handlebar version dependency to pom.xml, both not working.