Lifty/lifty — Issue #3: Can't "learn" recipes
Author: rslima
Created: 2011-11-16 19:31:49+00:00
State: open

I'm having a problem with lifty learn. First I had a NullPointerException, but found out that I needed to create the ~/.lifty directory manually, now I'm receiving a NoClassDefFoundError: CachingParanamer

The stacktrace follows:

java.lang.NoClassDefFoundError: com/thoughtworks/paranamer/CachingParanamer
at net.liftweb.json.Meta$.(Meta.scala:84)
at net.liftweb.json.Meta$.(Meta.scala)
at net.liftweb.json.Extraction$.mkMapping$1(Extraction.scala:193)
at net.liftweb.json.Extraction$.net$liftweb$json$Extraction$$extract0(Extraction.scala:198)
at net.liftweb.json.Extraction$.extract(Extraction.scala:42)
at net.liftweb.json.Extraction$.extractOpt(Extraction.scala:53)
at net.liftweb.json.JsonAST$JValue.extractOpt(JsonAST.scala:318)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2$$anonfun$apply$10$$anonfun$apply$11.apply(DescriptionLoader.scala:38)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2$$anonfun$apply$10$$anonfun$apply$11.apply(DescriptionLoader.scala:37)
at scala.Option.flatMap(Option.scala:146)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2$$anonfun$apply$10.apply(DescriptionLoader.scala:37)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2$$anonfun$apply$10.apply(DescriptionLoader.scala:36)
at scalaz.Validation$class.fold(Validation.scala:7)
at scalaz.Success.fold(Validation.scala:82)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2.apply(DescriptionLoader.scala:34)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2.apply(DescriptionLoader.scala:34)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1.apply(IO.scala:100)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1.apply(IO.scala:100)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$class.unsafePerformIO(IO.scala:12)
at scalaz.effects.IO$$anon$2.unsafePerformIO(IO.scala:95)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1$$anonfun$apply$8$$anonfun$apply$11.apply(Storage.scala:73)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1$$anonfun$apply$8$$anonfun$apply$11.apply(Storage.scala:73)
at scalaz.Validation$class.fold(Validation.scala:7)
at scalaz.Success.fold(Validation.scala:82)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1$$anonfun$apply$8.apply(Storage.scala:72)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1$$anonfun$apply$8.apply(Storage.scala:69)
at scalaz.Validation$class.fold(Validation.scala:8)
at scalaz.Failure.fold(Validation.scala:83)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1.apply(Storage.scala:68)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1.apply(Storage.scala:68)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1.apply(IO.scala:100)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1.apply(IO.scala:100)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$class.unsafePerformIO(IO.scala:12)
at scalaz.effects.IO$$anon$2.unsafePerformIO(IO.scala:95)
at org.lifty.engine.Lifty$$anonfun$org$lifty$engine$Lifty$$runCommand$2$$anonfun$apply$2.apply(Lifty.scala:54)
at org.lifty.engine.Lifty$$anonfun$org$lifty$engine$Lifty$$runCommand$2$$anonfun$apply$2.apply(Lifty.scala:52)
at scala.Option.map(Option.scala:133)
at org.lifty.engine.Lifty$$anonfun$org$lifty$engine$Lifty$$runCommand$2.apply(Lifty.scala:52)
at org.lifty.engine.Lifty$$anonfun$org$lifty$engine$Lifty$$runCommand$2.apply(Lifty.scala:51)
at scala.Option.flatMap(Option.scala:146)
at org.lifty.engine.Lifty$class.org$lifty$engine$Lifty$$runCommand(Lifty.scala:51)
at org.lifty.engine.Lifty$$anonfun$run$2.apply(Lifty.scala:34)
at org.lifty.engine.Lifty$$anonfun$run$2.apply(Lifty.scala:32)
at scala.Option.map(Option.scala:133)
at org.lifty.engine.Lifty$class.run(Lifty.scala:32)
at org.lifty.engine.LiftyInstance.run(Lifty.scala:165)
at org.lifty.Lifty$$anonfun$liftyCommand$1.apply(Lifty.scala:94)
at org.lifty.Lifty$$anonfun$liftyCommand$1.apply(Lifty.scala:18)
at sbt.Command$$anonfun$sbt$Command$$apply1$1$$anonfun$apply$6.apply(Command.scala:74)
at sbt.Command$.process(Command.scala:92)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:121)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:121)
at sbt.State$$anon$1.process(State.scala:154)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:121)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:121)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.MainLoop$.next(Main.scala:121)
at sbt.MainLoop$.run(Main.scala:114)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(Main.scala:103)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(Main.scala:100)
at sbt.Using.apply(Using.scala:25)
at sbt.MainLoop$.runWithNewLog(Main.scala:100)
at sbt.MainLoop$.runAndClearLast(Main.scala:83)
at sbt.MainLoop$.runLoggedLoop(Main.scala:67)
at sbt.MainLoop$.runLogged(Main.scala:60)
at sbt.xMain.run(Main.scala:33)
at xsbt.boot.Launch$.run(Launch.scala:54)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:68)
at xsbt.boot.Launch$.apply(Launch.scala:14)
at xsbt.boot.Boot$.runImpl(Boot.scala:25)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.lang.ClassNotFoundException: com.thoughtworks.paranamer.CachingParanamer
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at net.liftweb.json.Meta$.(Meta.scala:84)
at net.liftweb.json.Meta$.(Meta.scala)
at net.liftweb.json.Extraction$.mkMapping$1(Extraction.scala:193)
at net.liftweb.json.Extraction$.net$liftweb$json$Extraction$$extract0(Extraction.scala:198)
at net.liftweb.json.Extraction$.extract(Extraction.scala:42)
at net.liftweb.json.Extraction$.extractOpt(Extraction.scala:53)
at net.liftweb.json.JsonAST$JValue.extractOpt(JsonAST.scala:318)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2$$anonfun$apply$10$$anonfun$apply$11.apply(DescriptionLoader.scala:38)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2$$anonfun$apply$10$$anonfun$apply$11.apply(DescriptionLoader.scala:37)
at scala.Option.flatMap(Option.scala:146)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2$$anonfun$apply$10.apply(DescriptionLoader.scala:37)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2$$anonfun$apply$10.apply(DescriptionLoader.scala:36)
at scalaz.Validation$class.fold(Validation.scala:7)
at scalaz.Success.fold(Validation.scala:82)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2.apply(DescriptionLoader.scala:34)
at org.lifty.engine.io.DescriptionLoader$$anonfun$load$2.apply(DescriptionLoader.scala:34)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1.apply(IO.scala:100)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1.apply(IO.scala:100)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$class.unsafePerformIO(IO.scala:12)
at scalaz.effects.IO$$anon$2.unsafePerformIO(IO.scala:95)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1$$anonfun$apply$8$$anonfun$apply$11.apply(Storage.scala:73)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1$$anonfun$apply$8$$anonfun$apply$11.apply(Storage.scala:73)
at scalaz.Validation$class.fold(Validation.scala:7)
at scalaz.Success.fold(Validation.scala:82)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1$$anonfun$apply$8.apply(Storage.scala:72)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1$$anonfun$apply$8.apply(Storage.scala:69)
at scalaz.Validation$class.fold(Validation.scala:8)
at scalaz.Failure.fold(Validation.scala:83)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1.apply(Storage.scala:68)
at org.lifty.engine.io.Storage$$anonfun$storeRecipe$1.apply(Storage.scala:68)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1.apply(IO.scala:100)
at scalaz.effects.IO$$anon$3$$anonfun$pure$1.apply(IO.scala:100)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$class.unsafePerformIO(IO.scala:12)
at scalaz.effects.IO$$anon$2.unsafePerformIO(IO.scala:95)
at org.lifty.engine.Lifty$$anonfun$org$lifty$engine$Lifty$$runCommand$2$$anonfun$apply$2.apply(Lifty.scala:54)
at org.lifty.engine.Lifty$$anonfun$org$lifty$engine$Lifty$$runCommand$2$$anonfun$apply$2.apply(Lifty.scala:52)
at scala.Option.map(Option.scala:133)
at org.lifty.engine.Lifty$$anonfun$org$lifty$engine$Lifty$$runCommand$2.apply(Lifty.scala:52)
at org.lifty.engine.Lifty$$anonfun$org$lifty$engine$Lifty$$runCommand$2.apply(Lifty.scala:51)
at scala.Option.flatMap(Option.scala:146)
at org.lifty.engine.Lifty$class.org$lifty$engine$Lifty$$runCommand(Lifty.scala:51)
at org.lifty.engine.Lifty$$anonfun$run$2.apply(Lifty.scala:34)
at org.lifty.engine.Lifty$$anonfun$run$2.apply(Lifty.scala:32)
at scala.Option.map(Option.scala:133)
at org.lifty.engine.Lifty$class.run(Lifty.scala:32)
at org.lifty.engine.LiftyInstance.run(Lifty.scala:165)
at org.lifty.Lifty$$anonfun$liftyCommand$1.apply(Lifty.scala:94)
at org.lifty.Lifty$$anonfun$liftyCommand$1.apply(Lifty.scala:18)
at sbt.Command$$anonfun$sbt$Command$$apply1$1$$anonfun$apply$6.apply(Command.scala:74)
at sbt.Command$.process(Command.scala:92)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:121)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:121)
at sbt.State$$anon$1.process(State.scala:154)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:121)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:121)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.MainLoop$.next(Main.scala:121)
at sbt.MainLoop$.run(Main.scala:114)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(Main.scala:103)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(Main.scala:100)
at sbt.Using.apply(Using.scala:25)
at sbt.MainLoop$.runWithNewLog(Main.scala:100)
at sbt.MainLoop$.runAndClearLast(Main.scala:83)
at sbt.MainLoop$.runLoggedLoop(Main.scala:67)
at sbt.MainLoop$.runLogged(Main.scala:60)
at sbt.xMain.run(Main.scala:33)
at xsbt.boot.Launch$.run(Launch.scala:54)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:68)
at xsbt.boot.Launch$.apply(Launch.scala:14)
at xsbt.boot.Boot$.runImpl(Boot.scala:25)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)