Mads,

Since you are using mapper, having dependency on lift-mapper should suffice. Other dependencies would be pulled in transitively.

So having this dependency tag should do.

<dependency>
  <groupId>net.liftweb</groupId>
  <artifactId>lift-mapper</artifactId>
  <version>1.1-M8</version>
</dependency>

Cheers, Indrajit

On 06/01/10 2:39 PM, Mads Hartmann wrote:
How would that dependency tag look? Right now it looks like this:

<dependency>
       <groupId>net.liftweb</groupId>
       <artifactId>lift-core</artifactId>
       <version>1.1-M8</version>
     </dependency>

On Jan 6, 10:06 am, Timothy Perrett<timo...@getintheloop.eu>  wrote:
Remove the lift-core dependency and separately specify lift-webkit, lift-common 
and lift-util. That should resolve your issue... its probally a problem with 
the transitive dependencies in maven.

Cheers, Tim

On 5 Jan 2010, at 22:17, Ross Mellgren wrote:



It looks like you probably have some other dependencies somewhere or old jars 
pointing to the old lift version.

Please first try mvn clean jetty:run, and if that doesn't work, run mvn 
dependency:tree to try and find where the other version of lift-webkit is 
coming from. If you're still stuck, paste the output of dependency:tree please!

-Ross

On Jan 5, 2010, at 4:06 PM, Mads Hartmann wrote:

I really appreciate you taking the time to help me out.

depedency now is:
   <dependency>
     <groupId>net.liftweb</groupId>
     <artifactId>lift-core</artifactId>
     <version>1.1-M8</version>
   </dependency>

It compiles just fine, but when i try to start the server i get the
following error:

ERROR - Failed to Boot
java.lang.NoClassDefFoundError: net/liftweb/util/Box
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:1260)
        at net.liftweb.http.provider.HTTPProvider$class.bootLift
(HTTPProvider.scala:70)
        at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:523)
        at net.liftweb.http.provider.servlet.ServletFilterProvider$class.init
(ServletFilterProvider.scala:20)
        at net.liftweb.http.LiftFilter.init(LiftServlet.scala:523)
        at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:
97)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:662)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
467)
        at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart
(Jetty6PluginWebAppContext.java:115)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart
(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart
(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart
(HandlerCollection.java:152)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.plugin.Jetty6PluginServer.start
(Jetty6PluginServer.java:132)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty
(AbstractJettyMojo.java:441)
        at org.mortbay.jetty.plugin.AbstractJettyMojo.execute
(AbstractJettyMojo.java:383)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute
(AbstractJettyRunMojo.java:210)
        at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:
184)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:694)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal
(DefaultLifecycleExecutor.java:569)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai 
lures
(DefaultLifecycleExecutor.java:387)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main
(CompatibleMain.java:60)
        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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.ClassNotFoundException: net.liftweb.util.Box
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect
(RealmClassLoader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass
(DefaultClassRealm.java:255)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass
(DefaultClassRealm.java:274)
        at org.codehaus.classworlds.RealmClassLoader.loadClass
(RealmClassLoader.java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
        at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
(WebAppClassLoader.java:401)
        at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
(WebAppClassLoader.java:363)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
        ... 48 more
2010-01-05 22:03:41.943:INFO::Started
selectchannelconnec...@0.0.0.0:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 5 seconds.

On Jan 5, 9:11 pm, David Pollak<feeder.of.the.be...@gmail.com>  wrote:
On Tue, Jan 5, 2010 at 12:10 PM, Mads Hartmann<mads...@gmail.com>  wrote:
I've got this in my pom.xml

  <dependency>
     <groupId>net.liftweb</groupId>
     <artifactId>lift-core</artifactId>
     <version>1.0</version>
   </dependency>

Ah hah!

I'd strongly recommend you upgrade to Lift 1.1-M8.  It's faster, more stable
and better supported than 1.0.

On Jan 5, 8:54 pm, David Pollak<feeder.of.the.be...@gmail.com>  wrote:
On Tue, Jan 5, 2010 at 11:51 AM, Mads Hartmann<mads...@gmail.com>
wrote:
Sure thing, it's quite long though :)

Just one thing, i added the following for it to compile (I want to
return List[User] not List[TagUser] : .map(_.user.obj.open_!)

So in all it looks like this

def getTopUsers(in: Int) :List[User] = {

   TagUser.findAll(By(TagUser.tag, this.id), In(TagUser.user, User.id,
OrderBy(User.followers_count, Descending), MaxRows[User](in)))
         .map(_.user.obj.open_!)

}

What version of Lift?

Exception occured while processing /
Message: java.lang.NullPointerException
       net.liftweb.mapper.In$$anon$3.<init>(MetaMapper.scala:1206)
       net.liftweb.mapper.In$.apply(MetaMapper.scala:1200)
       scalableKvidr.model.Tag.getTopUsers(Tag.scala:38)

scalableKvidr.snippet.TagsSnippets$$anonfun$frontpageTags$1.apply
(TagsSnippets.scala:71)

scalableKvidr.snippet.TagsSnippets$$anonfun$frontpageTags$1.apply
(TagsSnippets.scala:68)
       scala.List.flatMap(List.scala:1125)

scalableKvidr.snippet.TagsSnippets.frontpageTags(TagsSnippets.scala:
67)
       sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
       sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
       java.lang.reflect.Method.invoke(Method.java:597)

net.liftweb.util.ClassHelpers$$anonfun$net$liftweb$util$ClassHelpers$
$_invokeMethod$2$$anonfun$apply$7.apply(ClassHelpers.scala:352)

net.liftweb.util.ControlHelpers$class.tryo(ControlHelpers.scala:40)
       net.liftweb.util.Helpers$.tryo(Helpers.scala:29)

net.liftweb.util.ControlHelpers$class.tryo(ControlHelpers.scala:55)
       net.liftweb.util.Helpers$.tryo(Helpers.scala:29)

net.liftweb.util.ClassHelpers$$anonfun$net$liftweb$util$ClassHelpers$
$_invokeMethod$2.apply(ClassHelpers.scala:352)

net.liftweb.util.ClassHelpers$$anonfun$net$liftweb$util$ClassHelpers$
$_invokeMethod$2.apply(ClassHelpers.scala:352)
       scala.Iterator$$anon$14.next(Iterator.scala:267)
       scala.Iterator$class.find(Iterator.scala:462)
       scala.Iterator$$anon$14.find(Iterator.scala:265)
       net.liftweb.util.ClassHelpers$class.net
$liftweb$util$ClassHelpers$
$_invokeMethod(ClassHelpers.scala:353)

net.liftweb.util.ClassHelpers$class.invokeMethod(ClassHelpers.scala:
285)
       net.liftweb.util.Helpers$.invokeMethod(Helpers.scala:29)

net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33$$anonfun
$apply$36$$anonfun$apply$38.apply(LiftSession.scala:723)

net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33$$anonfun

...

read more ยป
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to