[2.4.0] java.lang.NoClassDefFoundError: play/Play$

2,220 vistas
Ir al primer mensaje no leído

Fong Huang Yee

no leída,
28 may 2015, 9:18:34 a.m.28/5/15
para play-fr...@googlegroups.com
I just updated to latest play 2.4.0. I try using activator ui, but i receive the error as below. Anyone facing same issue here?

  • Done updating.
  • play/Play$
  • java.lang.NoClassDefFoundError: play/Play$
  • Use 'last' for the full log.
  • Failed to load project.

Fong Huang Yee

no leída,
28 may 2015, 12:01:59 p.m.28/5/15
para play-fr...@googlegroups.com
Notice that play-fork-run.sbt 

addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.3.8")

Change to

addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.4.0")

Then project will be able to build.

Allan Cochrane

no leída,
28 may 2015, 1:32:18 p.m.28/5/15
para play-fr...@googlegroups.com
Hi,

tried that but activator ui just overwrote it with 2.3.8 again!

How did this work for you?

Allan

James Roper

no leída,
28 may 2015, 11:04:31 p.m.28/5/15
para play-framework
For now you'll have to not use the Activator ui, until we fix this in Activator.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/adacf464-3702-485a-ab3b-507733aa4c22%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
James Roper
Software Engineer

Typesafe – Build reactive apps!
Twitter: @jroper

Mark Liu

no leída,
30 may 2015, 2:51:14 a.m.30/5/15
para play-fr...@googlegroups.com
Just confirming that I also see this error when trying to build a new project from the Scala Play seed. Is there a related github issue filed for this?

Mats B

no leída,
30 may 2015, 4:53:49 p.m.30/5/15
para play-fr...@googlegroups.com
Manually changing:
  addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.3.8")
to:
  addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.4.0")
in "play-fork.run.sbt" made it possible to build the application.

When trying "activator ui" the invalid version reference was restored and so the project once again failed to build (as noted previously).

I also noted in the IDE Configuration documentation for the Eclipse IDE that the line:
  addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
should be added to the plugins.sbt file, But it seems this currently has to be:
  addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0-RC2")
for the dependecy to work correctly.

But since the command line option to create an Eclipse project ("activator eclipse") seems to be gone (?) the "activator ui" really is needed for me to be able to work with the code in a sensible manner. Hoping for a quick fix to the activator :)

Cheers!
/Mats

Ian Rae

no leída,
1 jun 2015, 9:07:59 p.m.1/6/15
para play-fr...@googlegroups.com
Thanks Mats.  This issue plus my rural internet just cost hours in installing 2.4.  But now it works :)

--Ian
 

Matthias Kurz

no leída,
2 jun 2015, 6:36:39 a.m.2/6/15
para play-fr...@googlegroups.com
Someone opend a releated issue on github just now:

Toby Hobson

no leída,
2 jun 2015, 1:21:08 p.m.2/6/15
para play-fr...@googlegroups.com
I'm having the same issues. Has anyone found a way to run the 2.3x version? It seems all the 2.3x download links point to the same (current) activator package

Pan Lu

no leída,
10 jun 2015, 3:04:30 p.m.10/6/15
para play-fr...@googlegroups.com
Hey Allan,

Sorry just ran into the problem.  I end up putting this line

addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.4.0")

into the plugins.sbt file located in the project folder.  While in the project folder, delete play-fork-run.sbt file as well.

Pan
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos