tomcat에서 scalate 작업을하려고하지만 scaml 템플릿을 컴파일하려고하면 충돌이 발생합니다. 부두에 문제 없습니다. 나는 이것에 익숙하지 않고 일반적으로 바람둥이입니다. github 충돌에 대한 scalatra-sbt 프로토 타입 인 것 같습니다. 제대로 구성된 바람둥이라고 생각합니다.scalate가 tomcat의 템플릿을 컴파일하지 않습니다.
org.fusesource.scalate.TemplateException: scala/tools/nsc/settings/ScalaSettings org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:738) org.fusesource.scalate.TemplateEngine.compileAndLoadEntry(TemplateEngine.scala:595) org.fusesource.scalate.TemplateEngine.liftedTree1$1(TemplateEngine.scala:327) org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:321) org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:391) org.scalatra.scalate.ScalateSupport$class.renderErrorPage(ScalateSupport.scala:50) com.example.MyScalatraFilter.renderErrorPage(MyScalatraFilter.scala:7) org.scalatra.scalate.ScalateSupport$class.handleError(ScalateSupport.scala:46) com.example.MyScalatraFilter.handleError(MyScalatraFilter.scala:7) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(ScalatraKernel.scala:109) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ScalatraKernel.scala:100) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply(ScalatraKernel.scala:100) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply$mcV$sp(ScalatraKernel.scala:99) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply(ScalatraKernel.scala:99) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply(ScalatraKernel.scala:99) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$class.handle(ScalatraKernel.scala:98) com.example.MyScalatraFilter.handle(MyScalatraFilter.scala:7) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply$mcV$sp(ScalatraFilter.scala:18) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:18) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:18) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraFilter$class.doFilter(ScalatraFilter.scala:17) com.example.MyScalatraFilter.doFilter(MyScalatraFilter.scala:7) root cause java.lang.NoClassDefFoundError: scala/tools/nsc/settings/ScalaSettings org.fusesource.scalate.support.ScalaCompiler$.create(ScalaCompiler.scala:170) org.fusesource.scalate.TemplateEngine.compiler(TemplateEngine.scala:154) org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:655) org.fusesource.scalate.TemplateEngine.compileAndLoadEntry(TemplateEngine.scala:595) org.fusesource.scalate.TemplateEngine.liftedTree1$1(TemplateEngine.scala:327) org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:321) org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:391) org.scalatra.scalate.ScalateSupport$class.renderErrorPage(ScalateSupport.scala:50) com.example.MyScalatraFilter.renderErrorPage(MyScalatraFilter.scala:7) org.scalatra.scalate.ScalateSupport$class.handleError(ScalateSupport.scala:46) com.example.MyScalatraFilter.handleError(MyScalatraFilter.scala:7) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(ScalatraKernel.scala:109) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ScalatraKernel.scala:100) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply(ScalatraKernel.scala:100) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply$mcV$sp(ScalatraKernel.scala:99) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply(ScalatraKernel.scala:99) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply(ScalatraKernel.scala:99) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$class.handle(ScalatraKernel.scala:98) com.example.MyScalatraFilter.handle(MyScalatraFilter.scala:7) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply$mcV$sp(ScalatraFilter.scala:18) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:18) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:18) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraFilter$class.doFilter(ScalatraFilter.scala:17) com.example.MyScalatraFilter.doFilter(MyScalatraFilter.scala:7) root cause java.lang.ClassNotFoundException: scala.tools.nsc.settings.ScalaSettings org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329) org.fusesource.scalate.support.ScalaCompiler$.create(ScalaCompiler.scala:170) org.fusesource.scalate.TemplateEngine.compiler(TemplateEngine.scala:154) org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:655) org.fusesource.scalate.TemplateEngine.compileAndLoadEntry(TemplateEngine.scala:595) org.fusesource.scalate.TemplateEngine.liftedTree1$1(TemplateEngine.scala:327) org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:321) org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:391) org.scalatra.scalate.ScalateSupport$class.renderErrorPage(ScalateSupport.scala:50) com.example.MyScalatraFilter.renderErrorPage(MyScalatraFilter.scala:7) org.scalatra.scalate.ScalateSupport$class.handleError(ScalateSupport.scala:46) com.example.MyScalatraFilter.handleError(MyScalatraFilter.scala:7) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply$mcV$sp(ScalatraKernel.scala:109) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1$$anonfun$apply$mcV$sp$2.apply(ScalatraKernel.scala:100) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply(ScalatraKernel.scala:100) org.scalatra.ScalatraKernel$$anonfun$handle$1$$anonfun$apply$mcV$sp$1.apply(ScalatraKernel.scala:100) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply$mcV$sp(ScalatraKernel.scala:99) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply(ScalatraKernel.scala:99) org.scalatra.ScalatraKernel$$anonfun$handle$1.apply(ScalatraKernel.scala:99) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraKernel$class.handle(ScalatraKernel.scala:98) com.example.MyScalatraFilter.handle(MyScalatraFilter.scala:7) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply$mcV$sp(ScalatraFilter.scala:18) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:18) org.scalatra.ScalatraFilter$$anonfun$doFilter$1.apply(ScalatraFilter.scala:18) scala.util.DynamicVariable.withValue(DynamicVariable.scala:71) org.scalatra.ScalatraFilter$class.doFilter(ScalatraFilter.scala:17) com.example.MyScalatraFilter.doFilter(MyScalatraFilter.scala:7)
tomcat에서 컴파일러 작업을 조정하는 방법에 대한 힌트가 있습니까?
안녕하세요, tomcat 서버에 scalate 설정을 시도하고 있지만이를 수행하는 방법을 설명하는 리소스를 찾을 수 없습니다. 다운로드 할 항아리와 어디서부터? 그 항아리를 추가 할 곳은 어디입니까? web.xml 파일의 모든 수정 사항은 무엇입니까? 그 질문들로 나를 도울 수 있습니까? – Eyal