[Lift] newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread ojonam
Hello all,

I am trying to launch a lift web app on my computer, but trying to use
Snapshot 2.0 instead of 1.0 (which seems to have some problems with
Scala 2.7.7).

I have taken the following steps :

- tried to create a lift blank app with 2.0-snapshot, adapting the
archetype:generate command from the book as required
- once that is done, I modify the version of scala in my pom.xml
- then I type 'mvn jetty:run'
- somehow maven still downloads *both* the 2.7.1 and 2.7.7 versions of
scala, and I get the warning that both of them exist

when trying to look at the webpage on localhost:8080, I am given the
following error :

 Request for / failed net.liftweb.http.SessionMaster$.mailbox_
$eq(Lscala/actors/MessageQueue;)V
java.lang.AbstractMethodError: net.liftweb.http.SessionMaster$.mailbox_
$eq(Lscala/actors/MessageQueue;)V
at scala.actors.Actor$class.$init$(Actor.scala:370)
at net.liftweb.http.SessionMaster$.init(LiftSession.scala:47)
at net.liftweb.http.SessionMaster$.clinit(LiftSession.scala)
at net.liftweb.http.LiftSession.setSession(LiftSession.scala:138)
at net.liftweb.http.LiftSession$.createSession(LiftSession.scala:34)
at net.liftweb.http.LiftSession$$anonfun$1.apply(LiftSession.scala:
36)
at net.liftweb.http.LiftSession$$anonfun$1.apply(LiftSession.scala:
36)
at net.liftweb.http.LiftSession$.apply(LiftSession.scala:39)


I have not posted the whole stacktrace, but will do so if necessary.
Googling for this error gives me messages that are very old, and they
don't apply to me.

So how do I proceed ?

Best,
ojonam

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



Re: [Lift] newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread Naftoli Gugenheim
I think that AbstractMethodError always means either mismatched scala version 
or out of date class file.

-
Jeppe Nejsum Madsenje...@ingolfs.dk wrote:

On Mon, Mar 1, 2010 at 3:39 PM, ojonam manojo10...@gmail.com wrote:
 Hello all,

 I am trying to launch a lift web app on my computer, but trying to use
 Snapshot 2.0 instead of 1.0 (which seems to have some problems with
 Scala 2.7.7).

 I have taken the following steps :

 - tried to create a lift blank app with 2.0-snapshot, adapting the
 archetype:generate command from the book as required

Try to show the complete command. Or look in the ML for commands that
work with 2.0-SNAPSHOT

 - once that is done, I modify the version of scala in my pom.xml
 - then I type 'mvn jetty:run'

 - somehow maven still downloads *both* the 2.7.1 and 2.7.7 versions of
 scala, and I get the warning that both of them exist

This sounds bad

 when trying to look at the webpage on localhost:8080, I am given the
 following error :

  Request for / failed net.liftweb.http.SessionMaster$.mailbox_
 $eq(Lscala/actors/MessageQueue;)V
 java.lang.AbstractMethodError: net.liftweb.http.SessionMaster$.mailbox_
 $eq(Lscala/actors/MessageQueue;)V
        at scala.actors.Actor$class.$init$(Actor.scala:370)
        at net.liftweb.http.SessionMaster$.init(LiftSession.scala:47)
        at net.liftweb.http.SessionMaster$.clinit(LiftSession.scala)
        at net.liftweb.http.LiftSession.setSession(LiftSession.scala:138)
        at net.liftweb.http.LiftSession$.createSession(LiftSession.scala:34)
        at net.liftweb.http.LiftSession$$anonfun$1.apply(LiftSession.scala:
 36)
        at net.liftweb.http.LiftSession$$anonfun$1.apply(LiftSession.scala:
 36)
        at net.liftweb.http.LiftSession$.apply(LiftSession.scala:39)


 I have not posted the whole stacktrace, but will do so if necessary.
 Googling for this error gives me messages that are very old, and they
 don't apply to me.

You may have old code laying around. If code mysteriously fails, mvn
clean is your friend. Try; mvn clean jetty:run

/Jeppe

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