Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala 在tomcat容器中启动REPL_Scala_Wicketstuff - Fatal编程技术网

Scala 在tomcat容器中启动REPL

Scala 在tomcat容器中启动REPL,scala,wicketstuff,Scala,Wicketstuff,我试图在tomcat容器中启动scala REPL(2.9.1),并得到以下错误 Failed to initialize compiler: object scala not found. Note that as of 2.8 scala does not assume use of the java classpath. For the old behavior pass -usejavacp to scala, or if using a Settings object programa

我试图在tomcat容器中启动scala REPL(2.9.1),并得到以下错误

Failed to initialize compiler: object scala not found.
Note that as of 2.8 scala does not assume use of the java classpath.
For the old behavior pass -usejavacp to scala, or if using a Settings
object programatically, settings.usejavacp.value = true.
我尝试了多种解决方案,如settings.usejavacp.value=true等,classpath设置,但仍然得到相同的错误。有人能建议解决这个问题吗


从wicketstuff控制台项目启动scala解释器也会出现相同的错误()。

首先,您确定已加载scala库和scala编译器jar吗?我认为jar加载没有任何问题。我能够从独立程序启动REPL。这没有问题,但在web环境中它失败了。还想补充一点,如果我在Jetty server中部署相同的war,REPL将成功启动。我还可以分享示例web项目来演示这个问题。