Error Please Help
I'm following all the steps but it shows "500 Internal Error"
ERROR spark.webserver.MatcherFilter - org.eclipse.jetty.io.RuntimeIOException: java.io.FileNotFoundException: /templates/index.hbs
Alexander NikiforovJava Web Development Techdegree Graduate 22,150 Points
Does the structure of your project looks exactly like his one ?
What is important that structure is exactly like his one Like at video: 07:42
Your template files should be in the
Could you make a screenshot of your structure exactly like in video at 07:42, so that resources are seen.
There is clearly the problem that location of template files cannot be found.
So if by any chance your templates directory is not in the
/src/main/recources/templates as you can see in video
07:42, you program should not work...
Does it make more sense now ?
java.io.FileNotFoundException simply means that the file "index.hbs" was not found in the directory you've specified somewhere in your code; in this course video around 08:20 - 08:26, this was specified in Main.java from
/src/main/java/<your folder name>/Main.java.
Your "index.hbs" should be in
/src/main/resources/templates as Alexander mentioned above.
Akshay Ramdasi13,790 Points
I am getting another warings about "org.slf4j.impl.StaticLoggerBinder"
the warnings are
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Process finished with exit code 100
please help me! Also I am unable to view the page showing Welcome students. I have restarted server but getting 404 file not found message.