私はscalatra-sbt.g8に基づいて次のことを試みています:
class FooWeb extends ScalatraServlet with ScalateSupport {
beforeAll { contentType = "text/html" }
get("/") {
templateEngine.layout("/WEB-INF/scalate/templates/hello-scalate.jade")
}
}
しかし、次の例外が発生します(ファイルが存在していても)-手がかりはありますか?
Could not load resource: [/WEB-INF/scalate/templates/hello-scalate.jade]; are you sure it's within [null]?
org.fusesource.scalate.util.ResourceNotFoundException: Could not load resource: [/WEB-INF/scalate/templates/hello-scalate.jade]; are you sure it's within [null]?
org.mortbay.jetty.handler.ContextHandler.getResource
FWIW、最も内側の例外は行1142から来ています: _baseResource==null
。