2

I am trying to launch the scala REPL (2.9.1) in tomcat container and getting the following error

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.

I tried multiple solutions like settings.usejavacp.value = true etc., classpath setting but still getting the same error. Can somebody please suggest to resolve this issue?

Launching the scala interpreter from wicketstuff console project also giving same error(scala-console-issue-ref).

om-nom-nom
  • 62,329
  • 13
  • 183
  • 228
Sumit Kathuria
  • 103
  • 2
  • 7
  • 1
    First of all, are you sure scala-library and scala-compiler jars are loaded? – pedrofurla Jan 02 '13 at 19:19
  • I don't think there is any problem with jar loading. I am able to launch REPL from standalone program. There is no issue in that but in web environment its failing. – Sumit Kathuria Jan 03 '13 at 06:30
  • Also want to add one more thing, That if i deploy the same war in Jetty server, REPL is getting launch successfully. I can also share the sample web project to demonstrate this issue. – Sumit Kathuria Jan 04 '13 at 02:04

0 Answers0