4
我试图在基于Scalatra的-sbt.g8如下:Scalate的ResourceNotFoundException在Scalatra的
class FooWeb extends ScalatraServlet with ScalateSupport {
beforeAll { contentType = "text/html" }
get("/") {
templateEngine.layout("/WEB-INF/scalate/templates/hello-scalate.jade")
}
}
,但我发现以下异常(即使该文件存在) - 任何线索? _baseResource==null
:
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]?
FWIW,最里面的异常是从org.mortbay.jetty.handler.ContextHandler.getResource
线1142的到来。