mesh-vertx-example icon indicating copy to clipboard operation
mesh-vertx-example copied to clipboard

Missing resource

Open KnowledgeGarden opened this issue 7 years ago • 6 comments

INFO: Connecting to Gentics Mesh.. Jun 06, 2018 9:14:20 AM io.vertx.core.impl.DeploymentManager SEVERE: com/github/jknack/handlebars/io/TemplateLoader java.lang.NoClassDefFoundError: com/github/jknack/handlebars/io/TemplateLoader at io.vertx.ext.web.templ.HandlebarsTemplateEngine.create(HandlebarsTemplateEngine.java:51) at com.gentics.mesh.example.Server.start(Server.java:142)

Adding this to the pom.xml solved it: <groupId>com.github.jknack</groupId> <artifactId>handlebars</artifactId> 4.0.7 but that's not the end of the story; I'll post a new issue which may or may not be related to this one.

KnowledgeGarden avatar Jun 06 '18 17:06 KnowledgeGarden

@KnowledgeGarden Can you check whether you use the latest version? I just checked and the handlebars dependency is provided via the vertx-web-templ-handlebars.

Which JVM are you using?

Jotschi avatar Jun 06 '18 17:06 Jotschi

1.8.172. Bringing down master again, building it in eclipse because Server.java does not come down with localhost, 8080, false vert for the client, AND, the pom file is missing the artifact found here: https://mvnrepository.com/artifact/com.github.jknack/handlebars/4.0.6, it is now running.

KnowledgeGarden avatar Jun 06 '18 20:06 KnowledgeGarden

It is now my intention to use that codebase as a framework for a different UI. Thanks!

KnowledgeGarden avatar Jun 06 '18 20:06 KnowledgeGarden

Updated the pom to the latest Mesh version; the Server is now broken in terms of WebRootResponse now becoming MeshWebRootResponse which, when changed, propagates compile errors in handleImages due to resolvePath(path).subscribe(response -- that response doesn't show the download APIs

KnowledgeGarden avatar Mar 23 '19 17:03 KnowledgeGarden

@KnowledgeGarden I updated the master branch. The example will now also work with the latest version of Gentics Mesh.

Jotschi avatar Mar 24 '19 12:03 Jotschi

Had to add the com.github.jknack.handlebars reference to pom.xml to get it to boot (running inside Eclipse). Boots, then this: java.lang.AbstractMethodError: io.vertx.ext.web.templ.impl.HandlebarsTemplateEngineImpl$Loader$1.content(Ljava/nio/charset/Charset;)Ljava/lang/String; at com.github.jknack.handlebars.internal.HbsParserFactory$1.parse(HbsParserFactory.java:76) which is the same bug I was getting before. (but not on an older download of this example) I'm on a macbook pro, latest Eclipse, and using your Server as is, meaning it is using the online URL for a server. I downloaded the zip ball and confirmed that the Server code is what I see in the master branch online, updated "4 hours ago".

FWIW, all runs with this example show this in the log (console) SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

KnowledgeGarden avatar Mar 24 '19 16:03 KnowledgeGarden