On Mon, Sep 13, 2010 at 5:26 AM, Adam Murdoch <[email protected]> wrote:
>
> On 13/09/2010, at 7:52 AM, Jeppe Nejsum Madsen wrote:
>
> Hi,
>
> I've been using Gradle with the Scala plugin for quite some time and
> this has worked fine with Scala 2.7.7
>
> I'm trying to create a new project using Scala 2.8, but this seems to
> cause some problems.
>
> The project (which can be found here:
> http://github.com/jeppenejsum/liftstart) compiles fine but when
> launched with jettyRun, it fails:
>
> ERROR - Failed to Boot! Your application may not run properly
> java.lang.NoSuchMethodError:
> net.liftweb.mapper.KeyedMetaMapper$class.$init$(Lnet/liftweb/mapper/KeyedMetaMapper;)V
> at example.model.User$.<init>(User.scala:11)
> at example.model.User$.<clinit>(User.scala)
> at bootstrap.liftweb.Boot.boot(Boot.scala:35)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:361)
> at
> net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:359)
> at
> net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:1496)
> at
> net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:1496)
> at net.liftweb.common.Full.map(Box.scala:398)
> at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1496)
> at
> net.liftweb.http.provider.HTTPProvider$class.bootLift(HTTPProvider.scala:75)
> at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:586)
> at
> net.liftweb.http.provider.servlet.ServletFilterProvider$class.init(ServletFilterProvider.scala:40)
> at net.liftweb.http.LiftFilter.init(LiftServlet.scala:586)
> at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>
> Now, this kind of error is usually because there's a mismatch between
> the libs used at compile time vs runtime, but I'm not sure this is the
> case here.
>
> This is a good place to start. Perhaps check the contents of the 'compile',
> 'runtime' and 'scalaTools' configurations. Just run gradle --dependencies
> and make sure they all contain the correct scala jars.

I've verified the dependencies and they all look ok. I'll try to call
the ant tasks manually and see if that changes anything....

Btw, I can't figure out how to pass options to the scala compiler.

E.g, I've tried adding

compileScala.encoding = "UTF-8", but this doesn't seem change
anything. Is this the correct way? (I'm using 0.9-RC1 and trunk)

/Jeppe

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to