maven doesn't pull automatically 0.10-SNAPSHOT if you create a project
with 0.9. Did you change the version of lift into your pom.xml ?

On Mon, Nov 17, 2008 at 17:28, TylerWeir <[EMAIL PROTECTED]> wrote:
>
> The signature of CometActor changed from 0.9 to 0.10.
>
> You built an example application using Lift 0.9 but then Maven pulled
> the latest version with the new signature.
>
> The commit is here: 
> http://github.com/dpp/liftweb/commit/5c561e490e0d6643666c5b4bb4103425e4d24381#diff-0
>
> On Nov 17, 10:38 am, Paul Butcher <[EMAIL PROTECTED]> wrote:
>> Disclaimer - I'm a complete Lift newbie, so please forgive any glaring
>> oversights.
>>
>> I've been playing around with Lift, and in particular CometActor.
>> Before trying to write my own, I thought that I'd get the example
>> Clock actor working. So I created a blank archetype with:
>>
>> mvn archetype:create -U -DarchetypeGroupId=net.liftweb -
>> DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=0.9 -
>> DremoteRepositories=http://scala-tools.org/repo-releases-
>> DgroupId=net.liftweb.pbtest -DartifactId=pbtest-lift
>>
>> And copied the Clock code from sites/example into it. And it fails
>> when I try to compile with:
>>
>> [WARNING] /Users/paul/pbtest-lift/src/main/scala/net/liftweb/pbtest/
>> comet/Clock.scala:11: error: overloaded method constructor CometActor
>> with alternatives (net.liftweb.http.CometActorInitInfo)
>> net.liftweb.http.CometActor <and>
>> (net.liftweb.http.LiftSession,net.liftweb.util.Can
>> [String],scala.xml.NodeSeq,Map[String,String])
>> net.liftweb.http.CometActor cannot be applied to ()
>>
>> I've managed to fix it by changing the following line:
>>
>> class Clock extends CometActor {
>>
>> to
>>
>> class Clock(info: CometActorInitInfo) extends CometActor(info) {
>>
>> and now everything works just fine. This change was inspired by the
>> code on:
>>
>> http://liftweb.net/index.php/CometActor
>>
>> But what I'm not sure about is why I had to make the change. I'd be
>> grateful for any light anyone could cast on this for me.
>>
>> Thanks in advance,
>>
>> Paul.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to