Skip to content

playRunHooks ClassNotFoundException re: sbt-yeoman GruntProcess  #74

Description

@qberticus

Play version: 2.3.8
Scala version: 2.11.1
sbt-yeoman: 0.7.1
using a build.sbt file

When using play-yeoman the addition of the GruntProcess to the playRunHooks setting causes a ClassNotFoundException during execution of the playRun task or show playRunHooks.

In order to add an additional PlayRunHook instances to playRunHooks it current requires setting playRunHooks := Seq() in the build.sbt file to remove the play-yeoman hook.

show playRunHooks output:

[trace] Stack trace suppressed: run last *:playRunHooks for the full output.
[error] (*:playRunHooks) java.lang.NoClassDefFoundError: play/PlayRunHook$class
[error] Total time: 0 s, completed Mar 28, 2015 4:48:14 PM

last *:playRunHooks output:

Caused by: java.lang.ClassNotFoundException: play.PlayRunHook$class
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at com.tuplejump.sbt.yeoman.Yeoman$Grunt$GruntProcess$2$.<init>(Yeoman.scala:160)
        at com.tuplejump.sbt.yeoman.Yeoman$Grunt$.GruntProcess$1$lzycompute(Yeoman.scala:160)
        at com.tuplejump.sbt.yeoman.Yeoman$Grunt$.GruntProcess$1(Yeoman.scala:160)
        at com.tuplejump.sbt.yeoman.Yeoman$Grunt$.apply(Yeoman.scala:174)
...
[error] (*:playRunHooks) java.lang.NoClassDefFoundError: play/PlayRunHook$class

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions