Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing resource #2

Open
KnowledgeGarden opened this issue Jun 6, 2018 · 6 comments
Open

Missing resource #2

KnowledgeGarden opened this issue Jun 6, 2018 · 6 comments

Comments

@KnowledgeGarden
Copy link

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:

com.github.jknack
handlebars
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.

@Jotschi
Copy link
Contributor

Jotschi commented Jun 6, 2018

@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?

@KnowledgeGarden
Copy link
Author

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
Copy link
Author

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

@KnowledgeGarden
Copy link
Author

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

@Jotschi
Copy link
Contributor

Jotschi commented Mar 24, 2019

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

@KnowledgeGarden
Copy link
Author

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants