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.executeGoalAndHandleFailures
>> (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
>>>>>> $apply$36$$anonfun$apply$38.apply(LiftSession.scala:705)
>>>>>>       net.liftweb.util.EmptyBox.openOr(Box.scala:372)
>>> 
>>>> net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33$$anonfun
>>>>>> $apply$36.apply(LiftSession.scala:705)
>>> 
>>>> net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33$$anonfun
>>>>>> $apply$36.apply(LiftSession.scala:705)
>>>>>>       net.liftweb.util.EmptyBox.openOr(Box.scala:372)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33.apply
>>>>>> (LiftSession.scala:704)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$17$$anonfun$apply$33.apply
>>>>>> (LiftSession.scala:704)
>>>>>>       net.liftweb.http.S$.doSnippet(S.scala:725)
>>> 
>>>>>> net.liftweb.http.LiftSession$$anonfun$17.apply(LiftSession.scala:702)
>>> 
>>>>>> net.liftweb.http.LiftSession$$anonfun$17.apply(LiftSession.scala:701)
>>>>>>       net.liftweb.util.Full.map(Box.scala:330)
>>>>>>       net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
>>>>>> $processSnippet(LiftSession.scala:701)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing
>>>>>> $1.apply(LiftSession.scala:793)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing
>>>>>> $1.apply(LiftSession.scala:777)
>>>>>>       net.liftweb.util.NamedPF.apply(NamedPartialFunction.scala:30)
>>>>>>       net.liftweb.util.NamedPF$.apply(NamedPartialFunction.scala:76)
>>> 
>>>> net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$
>>>>>> $anonfun$apply$49.apply(LiftSession.scala:808)
>>> 
>>>> net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$
>>>>>> $anonfun$apply$49.apply(LiftSession.scala:808)
>>>>>>       net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>>>>>>       net.liftweb.http.S$.setVars(S.scala:623)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude
>>>>>> $1.apply(LiftSession.scala:808)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude
>>>>>> $1.apply(LiftSession.scala:805)
>>>>>>       scala.Seq$class.flatMap(Seq.scala:294)
>>>>>>       scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
>>>>>>       net.liftweb.http.LiftSession.processSurroundAndInclude
>>>>>> (LiftSession.scala:804)
>>>>>>       net.liftweb.http.LiftSession.net$liftweb$http$LiftSession$
>>>>>> $processSurroundElement(LiftSession.scala:948)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing
>>>>>> $1.apply(LiftSession.scala:784)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing
>>>>>> $1.apply(LiftSession.scala:777)
>>>>>>       net.liftweb.util.NamedPF.apply(NamedPartialFunction.scala:30)
>>>>>>       net.liftweb.util.NamedPF$.apply(NamedPartialFunction.scala:76)
>>> 
>>>> net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$
>>>>>> $anonfun$apply$49.apply(LiftSession.scala:808)
>>> 
>>>> net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$
>>>>>> $anonfun$apply$49.apply(LiftSession.scala:808)
>>>>>>       net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>>>>>>       net.liftweb.http.S$.setVars(S.scala:623)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude
>>>>>> $1.apply(LiftSession.scala:808)
>>>>>>       net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude
>>>>>> $1.apply(LiftSession.scala:805)
>>>>>>       scala.Seq$class.flatMap(Seq.scala:294)
>>>>>>       scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
>>>>>>       net.liftweb.http.LiftSession.processSurroundAndInclude
>>>>>> (LiftSession.scala:804)
>>> 
>>>> net.liftweb.http.LiftSession$$anonfun$8.apply(LiftSession.scala:462)
>>> 
>>>> net.liftweb.http.LiftSession$$anonfun$8.apply(LiftSession.scala:462)
>>>>>>       net.liftweb.util.Full.map(Box.scala:330)
>>> 
>>>> net.liftweb.http.LiftSession.processRequest(LiftSession.scala:462)
>>>>>>       net.liftweb.http.LiftServlet.net$liftweb$http$LiftServlet$
>>>>>> $dispatchStatefulRequest(LiftServlet.scala:244)
>>> 
>>>> net.liftweb.http.LiftServlet$$anonfun$2.apply(LiftServlet.scala:176)
>>> 
>>>> net.liftweb.http.LiftServlet$$anonfun$2.apply(LiftServlet.scala:176)
>>>>>>       net.liftweb.http.S$.net$liftweb$http$S$$wrapQuery(S.scala:398)
>>> 
>>>> net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1$
>>>>>> $anonfun$apply$16.apply(S.scala:453)
>>>>>>       net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:372)
>>>>>>       net.liftweb.http.S$$anonfun$net$liftweb$http$S$$doAround$1.apply
>>>>>> (S.scala:373)
>>>>>>       net.liftweb.mapper.DB$$anon$1.net
>>>> $liftweb$mapper$DB$$anon$$doWith
>>>>>> (DB.scala:117)
>>> 
>>>> net.liftweb.mapper.DB$$anon$1$$anonfun$net$liftweb$mapper$DB$$anon$
>>>>>> $doWith$1.apply(DB.scala:118)
>>> 
>>>> net.liftweb.mapper.DB$$anon$1$$anonfun$net$liftweb$mapper$DB$$anon$
>>>>>> $doWith$1.apply(DB.scala:118)
>>>>>>       net.liftweb.mapper.DB$.use(DB.scala:305)
>>>>>>       net.liftweb.mapper.DB$$anon$1.net
>>>> $liftweb$mapper$DB$$anon$$doWith
>>>>>> (DB.scala:118)
>>>>>>       net.liftweb.mapper.DB$$anon$1.apply(DB.scala:124)
>>>>>>       net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:373)
>>>>>>       net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit
>>>>>> $1.apply(S.scala:451)
>>>>>>       net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>>> 
>>>> net.liftweb.http.S$.net$liftweb$http$S$$_nest2InnerInit(S.scala:450)
>>> 
>>>>>> net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
>>>>>> $apply$19$$anonfun$apply$20$$anonfun$apply$21$$anonfun$apply$22$
>>>>>> $anonfun$apply$23$$anonfun$apply$24.apply(S.scala:471)
>>>>>>       net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>>> 
>>>>>> net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
>>>>>> $apply$19$$anonfun$apply$20$$anonfun$apply$21$$anonfun$apply$22$
>>>>>> $anonfun$apply$23.apply(S.scala:470)
>>>>>>       net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>>> 
>>>>>> net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
>>>>>> $apply$19$$anonfun$apply$20$$anonfun$apply$21$$anonfun$apply$22.apply
>>>>>> (S.scala:469)
>>>>>>       net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>>> 
>>>>>> net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
>>>>>> $apply$19$$anonfun$apply$20$$anonfun$apply$21.apply(S.scala:468)
>>>>>>       net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
>>> 
>>>>>> net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun
>>>>>> $apply$19$$anonfun$apply$20.apply(S.scala:467)
>>> 
>>> ...
>>> 
>>> 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.
>> 
>> 
> 
> -- 
> 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.
> 
> 

-- 
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