[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
You were right. I was making things complicated.

the mvn command I was writing was wrong... I stopped and started all  
over. I retyped it from scratch and I found the errors.

Thanks for your help guys. My project works in 1.1-M6 just fine.

Cheers,

GA



On Oct 16, 2009, at 5:04 PM, David Pollak wrote:

>
>
> On Fri, Oct 16, 2009 at 7:28 AM, GA  wrote:
> Why is it getting the 2.7.1 version in first place? The pom.xml is  
> created by maven from the archetype and repository right?
>
> It seems that you created your project against the Lift 1.0  
> archetype and are try to upgrade it to 1.1-X.  Lift 1.0 used Scala  
> 2.7.1.
>
>
> Is it perhaps some environment setup that I have or I should have?
>
> No.  You are making this much more complex than it needs to be.  You  
> can either:
> Create a new basic project against the 1.1-SNAPSHOT
> Update the pom.xml file for your existing project to set the Scala  
> version to 2.7.5 and the Lift version to 1.1-SNAPSHOT (or 1.1-M6 if  
> you do not want to include the snapshots repository in your  
>  tag)
>
>
>
>
> On Oct 16, 2009, at 4:24 PM, David Pollak wrote:
>
>> You have to make sure that the version of Scala in your pom.xml  
>> file is 2.7.5.
>>
>> On Fri, Oct 16, 2009 at 4:40 AM, GA  wrote:
>> Ok, now we have an improvement. I did the following:
>>
>> I replaced the following part of my pom.xml:
>>
   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   
>>
>>
>> with:
>>
>>   
>> 
>>   scala-tools
>>   http://scala-tools.org/repo-snapshots
>> 
>> 
>>   scala-tools-releases
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>> I run mvn jetty:run and there were no changes. Then added what  
>> David suggested yesterday:
>>
>> 
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>> I run mvn jetty:run again and it started downloading jars like  
>> crazy. So now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive  
>> a warning when the server starts:
>>
>> 2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
>> 2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if  
>> your webapp requires one, please configure one.
>> 2009-10-16 13:31:33.154::WARN:  failed LiftFilter:  
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed  
>> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/ 
>> Users/gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:  
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed  
>> contexthandlercollect...@6f1a7e7f: java.lang.VerifyError: (class:  
>> net/liftweb/util/EmptyBox, method: open_$bang signature: ()Ljava/ 
>> lang/Object;) Can only throw Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed handlercollect...@3466fcd5:  
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  Error starting handlers
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>>  at net.liftweb.http.LiftRules$.(LiftRules.scala:231)
>>
>>
>> Is this warning important?
>>
>> Thanks for your help guys. I really appreciate it.
>>
>> GA
>>
>>
>>
>>
>> On Oct 16, 2009, at 1:17 PM, Timothy Perrett wrote:
>>
>>>
>>> No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository.  
>>> Make your repositories node look like the one I pasted and you  
>>> should find your project working ones more.
>>>
>>> Cheers, Tim
>>>
>>> On 16 Oct 2009, at 11:59, GA wrote:
>>>
 This is what it comes with my pom.xml

   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   

   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   


 It is ok?

 Cheers,

 GA


 On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:

>
> You must be missing the correct repository tag. Check that you  
> have:
>
>   
> 
>   scala-tools
>   http://scala-tools.org/repo-snapshots
> 
> 
>   scala-tools-releases
>   http://scala-tools.org/repo-releases
> 
>   
>
> Cheers, Tim
>
> On 16 Oct 2009, at 10:58, GA wrote:
>
>> Thanks for the info. I downloaded all the jars again, but it  
>> did not solved my problem. Now for some reason, if I init

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread David Pollak
On Fri, Oct 16, 2009 at 7:28 AM, GA  wrote:

> Why is it getting the 2.7.1 version in first place? The pom.xml is created
> by maven from the archetype and repository right?
>

It seems that you created your project against the Lift 1.0 archetype and
are try to upgrade it to 1.1-X.  Lift 1.0 used Scala 2.7.1.


>
> Is it perhaps some environment setup that I have or I should have?
>

No.  You are making this much more complex than it needs to be.  You can
either:

   - Create a new basic project against the 1.1-SNAPSHOT
   - Update the pom.xml file for your existing project to set the Scala
   version to 2.7.5 and the Lift version to 1.1-SNAPSHOT (or 1.1-M6 if you do
   not want to include the snapshots repository in your  tag)



>
>
>
> On Oct 16, 2009, at 4:24 PM, David Pollak wrote:
>
> You have to make sure that the version of Scala in your pom.xml file is
> 2.7.5.
>
> On Fri, Oct 16, 2009 at 4:40 AM, GA  wrote:
>
>> Ok, now we have an improvement. I did the following:
>>
>> I replaced the following part of my pom.xml:
>>
>>   
>> 
>>   scala-tools.org
>>   Scala-Tools Maven2 Repository
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>>
>> with:
>>
>>   
>> 
>>   scala-tools
>>   http://scala-tools.org/repo-snapshots
>> 
>> 
>>   scala-tools-releases
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>> I run mvn jetty:run and there were no changes. Then added what David
>> suggested yesterday:
>>
>> 
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>> I run mvn jetty:run again and it started downloading jars like crazy. So
>> now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive a warning when the
>> server starts:
>>
>> 2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
>> 2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if your
>> webapp requires one, please configure one.
>> 2009-10-16 13:31:33.154::WARN:  failed LiftFilter: java.lang.VerifyError:
>> (class: net/liftweb/util/EmptyBox, method: open_$bang signature:
>> ()Ljava/lang/Object;) Can only throw Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed
>> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_$bang
>> signature: ()Ljava/lang/Object;) Can only throw Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed contexthandlercollect...@6f1a7e7f:
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_$bang
>> signature: ()Ljava/lang/Object;) Can only throw Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed handlercollect...@3466fcd5:
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_$bang
>> signature: ()Ljava/lang/Object;) Can only throw Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  Error starting handlers
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable objects
>> at net.liftweb.http.LiftRules$.(LiftRules.scala:231)
>>
>>
>> Is this warning important?
>>
>> Thanks for your help guys. I really appreciate it.
>>
>> GA
>>
>>
>>
>>
>> On Oct 16, 2009, at 1:17 PM, Timothy Perrett wrote:
>>
>>
>> No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository. Make your
>> repositories node look like the one I pasted and you should find your
>> project working ones more.
>>
>> Cheers, Tim
>>
>> On 16 Oct 2009, at 11:59, GA wrote:
>>
>> This is what it comes with my pom.xml
>>
>>   
>> 
>>   scala-tools.org
>>   Scala-Tools Maven2 Repository
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>>   
>> 
>>   scala-tools.org
>>   Scala-Tools Maven2 Repository
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>>
>> It is ok?
>>
>> Cheers,
>>
>> GA
>>
>>
>> On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:
>>
>>
>> You must be missing the correct repository tag. Check that you have:
>>
>>   
>> 
>>   scala-tools
>>   http://scala-tools.org/repo-snapshots
>> 
>> 
>>   scala-tools-releases
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>> Cheers, Tim
>>
>> On 16 Oct 2009, at 10:58, GA wrote:
>>
>> Thanks for the info. I downloaded all the jars again, but it did not
>> solved my problem. Now for some reason, if I initiate everything from
>> scratch even with version 1.0 it does not work anymore.
>>
>> If I add the entry:
>>
>>  
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>>
>> to the pom.xml manually, I receive the following error when I run the
>> command mvn jetty:run:
>>
>> INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1-SNAPSHOT'
>> in repository scala-tools.org (http://scala-tools.org/repo-releases)
>> [INFO]
>> 
>> [ERROR] BUILD ERROR

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Could you please send me a pom.xml example for lift 1.1?

Cheers,

GA



On Oct 16, 2009, at 4:28 PM, GA wrote:

> Why is it getting the 2.7.1 version in first place? The pom.xml is  
> created by maven from the archetype and repository right?
>
> Is it perhaps some environment setup that I have or I should have?
>
>
>
> On Oct 16, 2009, at 4:24 PM, David Pollak wrote:
>
>> You have to make sure that the version of Scala in your pom.xml  
>> file is 2.7.5.
>>
>> On Fri, Oct 16, 2009 at 4:40 AM, GA  wrote:
>> Ok, now we have an improvement. I did the following:
>>
>> I replaced the following part of my pom.xml:
>>
   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   
>>
>>
>> with:
>>
>>   
>> 
>>   scala-tools
>>   http://scala-tools.org/repo-snapshots
>> 
>> 
>>   scala-tools-releases
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>> I run mvn jetty:run and there were no changes. Then added what  
>> David suggested yesterday:
>>
>> 
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>> I run mvn jetty:run again and it started downloading jars like  
>> crazy. So now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive  
>> a warning when the server starts:
>>
>> 2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
>> 2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if  
>> your webapp requires one, please configure one.
>> 2009-10-16 13:31:33.154::WARN:  failed LiftFilter:  
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed  
>> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/ 
>> Users/gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:  
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed  
>> contexthandlercollect...@6f1a7e7f: java.lang.VerifyError: (class:  
>> net/liftweb/util/EmptyBox, method: open_$bang signature: ()Ljava/ 
>> lang/Object;) Can only throw Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed handlercollect...@3466fcd5:  
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  Error starting handlers
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>>  at net.liftweb.http.LiftRules$.(LiftRules.scala:231)
>>
>>
>> Is this warning important?
>>
>> Thanks for your help guys. I really appreciate it.
>>
>> GA
>>
>>
>>
>>
>> On Oct 16, 2009, at 1:17 PM, Timothy Perrett wrote:
>>
>>>
>>> No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository.  
>>> Make your repositories node look like the one I pasted and you  
>>> should find your project working ones more.
>>>
>>> Cheers, Tim
>>>
>>> On 16 Oct 2009, at 11:59, GA wrote:
>>>
 This is what it comes with my pom.xml

   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   

   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   


 It is ok?

 Cheers,

 GA


 On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:

>
> You must be missing the correct repository tag. Check that you  
> have:
>
>   
> 
>   scala-tools
>   http://scala-tools.org/repo-snapshots
> 
> 
>   scala-tools-releases
>   http://scala-tools.org/repo-releases
> 
>   
>
> Cheers, Tim
>
> On 16 Oct 2009, at 10:58, GA wrote:
>
>> Thanks for the info. I downloaded all the jars again, but it  
>> did not solved my problem. Now for some reason, if I initiate  
>> everything from scratch even with version 1.0 it does not work  
>> anymore.
>>
>> If I add the entry:
>>
>>  
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>> to the pom.xml manually, I receive the following error when I  
>> run the command mvn jetty:run:
>>
>> INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1- 
>> SNAPSHOT' in repository scala-tools.org 
>> (http://scala-tools.org/repo-releases 
>> )
>> [INFO]  
>> 
>> [ERROR] BUILD ERROR
>> [INFO]  
>> -

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Why is it getting the 2.7.1 version in first place? The pom.xml is  
created by maven from the archetype and repository right?

Is it perhaps some environment setup that I have or I should have?



On Oct 16, 2009, at 4:24 PM, David Pollak wrote:

> You have to make sure that the version of Scala in your pom.xml file  
> is 2.7.5.
>
> On Fri, Oct 16, 2009 at 4:40 AM, GA  wrote:
> Ok, now we have an improvement. I did the following:
>
> I replaced the following part of my pom.xml:
>
>>>   
>>> 
>>>   scala-tools.org
>>>   Scala-Tools Maven2 Repository
>>>   http://scala-tools.org/repo-releases
>>> 
>>>   
>
>
> with:
>
>   
> 
>   scala-tools
>   http://scala-tools.org/repo-snapshots
> 
> 
>   scala-tools-releases
>   http://scala-tools.org/repo-releases
> 
>   
>
> I run mvn jetty:run and there were no changes. Then added what David  
> suggested yesterday:
>
> 
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
> I run mvn jetty:run again and it started downloading jars like  
> crazy. So now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive a  
> warning when the server starts:
>
> 2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
> 2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if  
> your webapp requires one, please configure one.
> 2009-10-16 13:31:33.154::WARN:  failed LiftFilter:  
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable  
> objects
> 2009-10-16 13:31:33.155::WARN:  failed  
> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/Users/ 
> gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:  
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable  
> objects
> 2009-10-16 13:31:33.155::WARN:  failed  
> contexthandlercollect...@6f1a7e7f: java.lang.VerifyError: (class:  
> net/liftweb/util/EmptyBox, method: open_$bang signature: ()Ljava/ 
> lang/Object;) Can only throw Throwable objects
> 2009-10-16 13:31:33.155::WARN:  failed handlercollect...@3466fcd5:  
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable  
> objects
> 2009-10-16 13:31:33.155::WARN:  Error starting handlers
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable  
> objects
>   at net.liftweb.http.LiftRules$.(LiftRules.scala:231)
>
>
> Is this warning important?
>
> Thanks for your help guys. I really appreciate it.
>
> GA
>
>
>
>
> On Oct 16, 2009, at 1:17 PM, Timothy Perrett wrote:
>
>>
>> No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository.  
>> Make your repositories node look like the one I pasted and you  
>> should find your project working ones more.
>>
>> Cheers, Tim
>>
>> On 16 Oct 2009, at 11:59, GA wrote:
>>
>>> This is what it comes with my pom.xml
>>>
>>>   
>>> 
>>>   scala-tools.org
>>>   Scala-Tools Maven2 Repository
>>>   http://scala-tools.org/repo-releases
>>> 
>>>   
>>>
>>>   
>>> 
>>>   scala-tools.org
>>>   Scala-Tools Maven2 Repository
>>>   http://scala-tools.org/repo-releases
>>> 
>>>   
>>>
>>>
>>> It is ok?
>>>
>>> Cheers,
>>>
>>> GA
>>>
>>>
>>> On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:
>>>

 You must be missing the correct repository tag. Check that you  
 have:

   
 
   scala-tools
   http://scala-tools.org/repo-snapshots
 
 
   scala-tools-releases
   http://scala-tools.org/repo-releases
 
   

 Cheers, Tim

 On 16 Oct 2009, at 10:58, GA wrote:

> Thanks for the info. I downloaded all the jars again, but it did  
> not solved my problem. Now for some reason, if I initiate  
> everything from scratch even with version 1.0 it does not work  
> anymore.
>
> If I add the entry:
>
>  
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
> to the pom.xml manually, I receive the following error when I  
> run the command mvn jetty:run:
>
> INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1- 
> SNAPSHOT' in repository scala-tools.org 
> (http://scala-tools.org/repo-releases 
> )
> [INFO]  
> 
> [ERROR] BUILD ERROR
> [INFO]  
> 
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>   mvn ins

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread David Pollak
On Fri, Oct 16, 2009 at 6:07 AM, GA  wrote:

> I did it. This is the first par of my pom.xml
>
>   4.0.0
>   com.server
>   Server
>   1.1-SNAPSHOT
>   war
>   Server
>   2007
>   
> 2.7.1
>   
>
>
This is your problem.  Maven uses the version of Scala in your pom.xml to
compile and that version for the libraries, no matter what version of Scala
you have on your machine for command-line purposes.  You must change this to
2.7.5.


>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>
>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>
>
> I find something strange. Do you see the scala version 2.7.1?
>
>
> This is the scala version in my command line:
>
> Scala code runner version 2.7.5.final -- Copyright 2002-2009, LAMP/EPFL
>
>
> Cheers,
>
> GA
>
>
>
> On Oct 16, 2009, at 2:57 PM, Timothy Perrett wrote:
>
> Try creating a blank project, not a basic one... Lets see what happens
> then.
>
> Cheers, Tim
>
> On 16 Oct 2009, at 13:39, GA wrote:
>
> More errors. Shouldn't this be working right after the creation? I am
> talking about brand new projects. It is absolutely empty. It has only the
> delivered User model.
>
>
> [WARNING] Multiple versions of scala libraries detected!
> [INFO] includes = [**/*.scala,]
> [INFO] excludes = []
> [INFO] Compiling 3 source files to
> /Users/gacilu/NetBeansProjects/gaTribesServer/target/classes
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/com/tribes/ga/model/User.scala:9:
> error: wrong number of type arguments for
> net.liftweb.mapper.MetaMegaProtoUser, should be 1
> object User extends User with MetaMegaProtoUser[User, User with
> KeyedMetaMapper[Long, User]] {
>   ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/com/tribes/ga/model/User.scala:26:
> error: type mismatch;
>  found   : com.tribes.ga.model.User.type (with underlying type object
> com.tribes.ga.model.User)
>  required:
> net.liftweb.mapper.KeyedMetaMapper[Long,com.tribes.ga.model.User]
>   def getSingleton = User // what's the "meta" server
>  ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/liftweb/Boot.scala:21:
> error: overloaded method value schemify with alternatives (Boolean,(=>
> AnyRef) =>
> Unit,net.liftweb.mapper.ConnectionIdentifier,net.liftweb.mapper.BaseMetaMapper*)List[String]
>  (Boolean,(=> AnyRef) =>
> Unit,net.liftweb.mapper.BaseMetaMapper*)List[String] cannot be applied to
> (Boolean,(=> AnyRef) => Unit,com.tribes.ga.model.User.type)
> Schemifier.schemify(true, Log.infoF _, User)
>^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/liftweb/Boot.scala:23:
> error: value addTemplateBefore is not a member of object
> net.liftweb.http.LiftRules
> LiftRules.addTemplateBefore(User.templates)
>   ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/liftweb/Boot.scala:26:
> error: type mismatch;
>  found   : java.lang.String("/")
>  required: net.liftweb.sitemap.Loc.Link[net.liftweb.sitemap.NullLocParams]
> val entries = Menu(Loc("Home", "/", "Home")) :: User.sitemap
>^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/liftweb/Boot.scala:26:
> error: value sitemap is not a member of object com.tribes.ga.model.User
> val entries = Menu(Loc("Home", "/", "Home")) :: User.sitemap
>  ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/liftweb/Boot.scala:28:
> error: value requestLoans is not a member of object com.tribes.ga.model.User
> S.addAround(User.requestLoans)
>  ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/liftweb/Boot.scala:34:
> error: not found: type Can
>   def newConnection(name: ConnectionIdentifier): Can[Connection] = {
>  ^
> 8 errors found
>
> Cheers,
>
> GA
>
>
>
> On Oct 16, 2009, at 2:23 PM, Timothy Perrett wrote:
>
> Yes, the error is important.
>
> Can you try a:
>
> mvn clean jetty:run
>
> Cheers, Tim
>
> On 16 Oct 2009, at 12:40, GA wrote:
>
> Ok, now we have an improvement. I did the following:
>
> I replaced the following part of my pom.xml:
>
>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>
>
> with:
>
>   
> 
>   scala-tools
>   http://scala-tools.org/repo-snapshots
> 
> 
>   scala-tools-releases
>   http://scala-tools.org/repo-releases
> 
>   
>
> I run mvn jetty:run and there were no changes. Then added what David
> suggested yesterday:
>
> 
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
> I run mvn jetty:run again and it started downloading ja

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread David Pollak
You have to make sure that the version of Scala in your pom.xml file is
2.7.5.

On Fri, Oct 16, 2009 at 4:40 AM, GA  wrote:

> Ok, now we have an improvement. I did the following:
>
> I replaced the following part of my pom.xml:
>
>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>
>
> with:
>
>   
> 
>   scala-tools
>   http://scala-tools.org/repo-snapshots
> 
> 
>   scala-tools-releases
>   http://scala-tools.org/repo-releases
> 
>   
>
> I run mvn jetty:run and there were no changes. Then added what David
> suggested yesterday:
>
> 
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
> I run mvn jetty:run again and it started downloading jars like crazy. So
> now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive a warning when the
> server starts:
>
> 2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
> 2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if your
> webapp requires one, please configure one.
> 2009-10-16 13:31:33.154::WARN:  failed LiftFilter: java.lang.VerifyError:
> (class: net/liftweb/util/EmptyBox, method: open_$bang signature:
> ()Ljava/lang/Object;) Can only throw Throwable objects
> 2009-10-16 13:31:33.155::WARN:  failed
> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_$bang
> signature: ()Ljava/lang/Object;) Can only throw Throwable objects
> 2009-10-16 13:31:33.155::WARN:  failed contexthandlercollect...@6f1a7e7f:
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_$bang
> signature: ()Ljava/lang/Object;) Can only throw Throwable objects
> 2009-10-16 13:31:33.155::WARN:  failed handlercollect...@3466fcd5:
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_$bang
> signature: ()Ljava/lang/Object;) Can only throw Throwable objects
> 2009-10-16 13:31:33.155::WARN:  Error starting handlers
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable objects
> at net.liftweb.http.LiftRules$.(LiftRules.scala:231)
>
>
> Is this warning important?
>
> Thanks for your help guys. I really appreciate it.
>
> GA
>
>
>
>
> On Oct 16, 2009, at 1:17 PM, Timothy Perrett wrote:
>
>
> No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository. Make your
> repositories node look like the one I pasted and you should find your
> project working ones more.
>
> Cheers, Tim
>
> On 16 Oct 2009, at 11:59, GA wrote:
>
> This is what it comes with my pom.xml
>
>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>
>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>
>
> It is ok?
>
> Cheers,
>
> GA
>
>
> On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:
>
>
> You must be missing the correct repository tag. Check that you have:
>
>   
> 
>   scala-tools
>   http://scala-tools.org/repo-snapshots
> 
> 
>   scala-tools-releases
>   http://scala-tools.org/repo-releases
> 
>   
>
> Cheers, Tim
>
> On 16 Oct 2009, at 10:58, GA wrote:
>
> Thanks for the info. I downloaded all the jars again, but it did not solved
> my problem. Now for some reason, if I initiate everything from scratch even
> with version 1.0 it does not work anymore.
>
> If I add the entry:
>
>  
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
>
> to the pom.xml manually, I receive the following error when I run the
> command mvn jetty:run:
>
> INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1-SNAPSHOT' in
> repository scala-tools.org (http://scala-tools.org/repo-releases)
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>   mvn install:install-file -DgroupId=net.liftweb
> -DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
>   Alternatively, if you host your own repository you can deploy the file
> there:
>   mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift-mapper
> -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
>
>   Path to dependency:
>1) com.tribes.ga:gaTribesServer1:war:1.1-SNAPSHOT
>2) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>
> --
> 1 required artifact is missing.
>
>
> It is very strange. It was working before without problems. Any i

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
I did it. This is the first par of my pom.xml

   4.0.0
   com.server
   Server
   1.1-SNAPSHOT
   war
   Server
   2007
   
 2.7.1
   

   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   

   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   


I find something strange. Do you see the scala version 2.7.1?


This is the scala version in my command line:

Scala code runner version 2.7.5.final -- Copyright 2002-2009, LAMP/EPFL


Cheers,

GA



On Oct 16, 2009, at 2:57 PM, Timothy Perrett wrote:

> Try creating a blank project, not a basic one... Lets see what  
> happens then.
>
> Cheers, Tim
>
> On 16 Oct 2009, at 13:39, GA wrote:
>
>> More errors. Shouldn't this be working right after the creation? I  
>> am talking about brand new projects. It is absolutely empty. It has  
>> only the delivered User model.
>>
>>
>> [WARNING] Multiple versions of scala libraries detected!
>> [INFO] includes = [**/*.scala,]
>> [INFO] excludes = []
>> [INFO] Compiling 3 source files to /Users/gacilu/NetBeansProjects/ 
>> gaTribesServer/target/classes
>> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/com/ 
>> tribes/ga/model/User.scala:9: error: wrong number of type arguments  
>> for net.liftweb.mapper.MetaMegaProtoUser, should be 1
>> object User extends User with MetaMegaProtoUser[User, User with  
>> KeyedMetaMapper[Long, User]] {
>>   ^
>> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/com/ 
>> tribes/ga/model/User.scala:26: error: type mismatch;
>>  found   : com.tribes.ga.model.User.type (with underlying type  
>> object com.tribes.ga.model.User)
>>  required: net.liftweb.mapper.KeyedMetaMapper 
>> [Long,com.tribes.ga.model.User]
>>   def getSingleton = User // what's the "meta" server
>>  ^
>> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
>> bootstrap/liftweb/Boot.scala:21: error: overloaded method value  
>> schemify with alternatives (Boolean,(=> AnyRef) =>  
>> Unit 
>> ,net.liftweb.mapper.ConnectionIdentifier 
>> ,net.liftweb.mapper.BaseMetaMapper*)List[String]  (Boolean,(=>  
>> AnyRef) => Unit,net.liftweb.mapper.BaseMetaMapper*)List[String]  
>> cannot be applied to (Boolean,(=> AnyRef) =>  
>> Unit,com.tribes.ga.model.User.type)
>> Schemifier.schemify(true, Log.infoF _, User)
>>^
>> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
>> bootstrap/liftweb/Boot.scala:23: error: value addTemplateBefore is  
>> not a member of object net.liftweb.http.LiftRules
>> LiftRules.addTemplateBefore(User.templates)
>>   ^
>> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
>> bootstrap/liftweb/Boot.scala:26: error: type mismatch;
>>  found   : java.lang.String("/")
>>  required: net.liftweb.sitemap.Loc.Link 
>> [net.liftweb.sitemap.NullLocParams]
>> val entries = Menu(Loc("Home", "/", "Home")) :: User.sitemap
>>^
>> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
>> bootstrap/liftweb/Boot.scala:26: error: value sitemap is not a  
>> member of object com.tribes.ga.model.User
>> val entries = Menu(Loc("Home", "/", "Home")) :: User.sitemap
>>  ^
>> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
>> bootstrap/liftweb/Boot.scala:28: error: value requestLoans is not a  
>> member of object com.tribes.ga.model.User
>> S.addAround(User.requestLoans)
>>  ^
>> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
>> bootstrap/liftweb/Boot.scala:34: error: not found: type Can
>>   def newConnection(name: ConnectionIdentifier): Can[Connection] = {
>>  ^
>> 8 errors found
>>
>> Cheers,
>>
>> GA
>>
>>
>>
>> On Oct 16, 2009, at 2:23 PM, Timothy Perrett wrote:
>>
>>> Yes, the error is important.
>>>
>>> Can you try a:
>>>
>>> mvn clean jetty:run
>>>
>>> Cheers, Tim
>>>
>>> On 16 Oct 2009, at 12:40, GA wrote:
>>>
 Ok, now we have an improvement. I did the following:

 I replaced the following part of my pom.xml:

>>   
>> 
>>   scala-tools.org
>>   Scala-Tools Maven2 Repository
>>   http://scala-tools.org/repo-releases
>> 
>>   


 with:

   
 
   scala-tools
   http://scala-tools.org/repo-snapshots
 
 
   scala-tools-releases
   http://scala-tools.org/repo-releases
 
   

 I run mvn jetty:run and there were no changes. Then added what  
 David suggested yesterday:

 
   net.liftweb
   lift-mapper
   1.1-SNAPSHOT
 

 I run mvn jetty:run again and it started downloading jars like  
 crazy. So now I have a lift-mapper-1.1-SNA

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
Try creating a blank project, not a basic one... Lets see what happens  
then.

Cheers, Tim

On 16 Oct 2009, at 13:39, GA wrote:

> More errors. Shouldn't this be working right after the creation? I  
> am talking about brand new projects. It is absolutely empty. It has  
> only the delivered User model.
>
>
> [WARNING] Multiple versions of scala libraries detected!
> [INFO] includes = [**/*.scala,]
> [INFO] excludes = []
> [INFO] Compiling 3 source files to /Users/gacilu/NetBeansProjects/ 
> gaTribesServer/target/classes
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/com/ 
> tribes/ga/model/User.scala:9: error: wrong number of type arguments  
> for net.liftweb.mapper.MetaMegaProtoUser, should be 1
> object User extends User with MetaMegaProtoUser[User, User with  
> KeyedMetaMapper[Long, User]] {
>   ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/com/ 
> tribes/ga/model/User.scala:26: error: type mismatch;
>  found   : com.tribes.ga.model.User.type (with underlying type  
> object com.tribes.ga.model.User)
>  required: net.liftweb.mapper.KeyedMetaMapper 
> [Long,com.tribes.ga.model.User]
>   def getSingleton = User // what's the "meta" server
>  ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
> bootstrap/liftweb/Boot.scala:21: error: overloaded method value  
> schemify with alternatives (Boolean,(=> AnyRef) =>  
> Unit 
> ,net.liftweb.mapper.ConnectionIdentifier 
> ,net.liftweb.mapper.BaseMetaMapper*)List[String]  (Boolean,(=>  
> AnyRef) => Unit,net.liftweb.mapper.BaseMetaMapper*)List[String]  
> cannot be applied to (Boolean,(=> AnyRef) =>  
> Unit,com.tribes.ga.model.User.type)
> Schemifier.schemify(true, Log.infoF _, User)
>^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
> bootstrap/liftweb/Boot.scala:23: error: value addTemplateBefore is  
> not a member of object net.liftweb.http.LiftRules
> LiftRules.addTemplateBefore(User.templates)
>   ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
> bootstrap/liftweb/Boot.scala:26: error: type mismatch;
>  found   : java.lang.String("/")
>  required: net.liftweb.sitemap.Loc.Link 
> [net.liftweb.sitemap.NullLocParams]
> val entries = Menu(Loc("Home", "/", "Home")) :: User.sitemap
>^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
> bootstrap/liftweb/Boot.scala:26: error: value sitemap is not a  
> member of object com.tribes.ga.model.User
> val entries = Menu(Loc("Home", "/", "Home")) :: User.sitemap
>  ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
> bootstrap/liftweb/Boot.scala:28: error: value requestLoans is not a  
> member of object com.tribes.ga.model.User
> S.addAround(User.requestLoans)
>  ^
> /Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/ 
> bootstrap/liftweb/Boot.scala:34: error: not found: type Can
>   def newConnection(name: ConnectionIdentifier): Can[Connection] = {
>  ^
> 8 errors found
>
> Cheers,
>
> GA
>
>
>
> On Oct 16, 2009, at 2:23 PM, Timothy Perrett wrote:
>
>> Yes, the error is important.
>>
>> Can you try a:
>>
>> mvn clean jetty:run
>>
>> Cheers, Tim
>>
>> On 16 Oct 2009, at 12:40, GA wrote:
>>
>>> Ok, now we have an improvement. I did the following:
>>>
>>> I replaced the following part of my pom.xml:
>>>
>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>>>
>>>
>>> with:
>>>
>>>   
>>> 
>>>   scala-tools
>>>   http://scala-tools.org/repo-snapshots
>>> 
>>> 
>>>   scala-tools-releases
>>>   http://scala-tools.org/repo-releases
>>> 
>>>   
>>>
>>> I run mvn jetty:run and there were no changes. Then added what  
>>> David suggested yesterday:
>>>
>>> 
>>>   net.liftweb
>>>   lift-mapper
>>>   1.1-SNAPSHOT
>>> 
>>>
>>> I run mvn jetty:run again and it started downloading jars like  
>>> crazy. So now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive  
>>> a warning when the server starts:
>>>
>>> 2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
>>> 2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if  
>>> your webapp requires one, please configure one.
>>> 2009-10-16 13:31:33.154::WARN:  failed LiftFilter:  
>>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>>> Throwable objects
>>> 2009-10-16 13:31:33.155::WARN:  failed  
>>> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/ 
>>> Users/gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:  
>>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>>> open_$bang signature: ()Ljava/lang/Object;) Can only thro

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
More errors. Shouldn't this be working right after the creation? I am  
talking about brand new projects. It is absolutely empty. It has only  
the delivered User model.


[WARNING] Multiple versions of scala libraries detected!
[INFO] includes = [**/*.scala,]
[INFO] excludes = []
[INFO] Compiling 3 source files to /Users/gacilu/NetBeansProjects/ 
gaTribesServer/target/classes
/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/com/ 
tribes/ga/model/User.scala:9: error: wrong number of type arguments  
for net.liftweb.mapper.MetaMegaProtoUser, should be 1
object User extends User with MetaMegaProtoUser[User, User with  
KeyedMetaMapper[Long, User]] {
   ^
/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/com/ 
tribes/ga/model/User.scala:26: error: type mismatch;
  found   : com.tribes.ga.model.User.type (with underlying type object  
com.tribes.ga.model.User)
  required: net.liftweb.mapper.KeyedMetaMapper 
[Long,com.tribes.ga.model.User]
   def getSingleton = User // what's the "meta" server
  ^
/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/ 
liftweb/Boot.scala:21: error: overloaded method value schemify with  
alternatives (Boolean,(=> AnyRef) =>  
Unit 
,net.liftweb.mapper.ConnectionIdentifier 
,net.liftweb.mapper.BaseMetaMapper*)List[String]  (Boolean,(=>  
AnyRef) => Unit,net.liftweb.mapper.BaseMetaMapper*)List[String] cannot  
be applied to (Boolean,(=> AnyRef) =>  
Unit,com.tribes.ga.model.User.type)
 Schemifier.schemify(true, Log.infoF _, User)
^
/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/ 
liftweb/Boot.scala:23: error: value addTemplateBefore is not a member  
of object net.liftweb.http.LiftRules
 LiftRules.addTemplateBefore(User.templates)
   ^
/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/ 
liftweb/Boot.scala:26: error: type mismatch;
  found   : java.lang.String("/")
  required: net.liftweb.sitemap.Loc.Link 
[net.liftweb.sitemap.NullLocParams]
 val entries = Menu(Loc("Home", "/", "Home")) :: User.sitemap
^
/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/ 
liftweb/Boot.scala:26: error: value sitemap is not a member of object  
com.tribes.ga.model.User
 val entries = Menu(Loc("Home", "/", "Home")) :: User.sitemap
  ^
/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/ 
liftweb/Boot.scala:28: error: value requestLoans is not a member of  
object com.tribes.ga.model.User
 S.addAround(User.requestLoans)
  ^
/Users/gacilu/NetBeansProjects/gaTribesServer/src/main/scala/bootstrap/ 
liftweb/Boot.scala:34: error: not found: type Can
   def newConnection(name: ConnectionIdentifier): Can[Connection] = {
  ^
8 errors found

Cheers,

GA



On Oct 16, 2009, at 2:23 PM, Timothy Perrett wrote:

> Yes, the error is important.
>
> Can you try a:
>
> mvn clean jetty:run
>
> Cheers, Tim
>
> On 16 Oct 2009, at 12:40, GA wrote:
>
>> Ok, now we have an improvement. I did the following:
>>
>> I replaced the following part of my pom.xml:
>>
   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   
>>
>>
>> with:
>>
>>   
>> 
>>   scala-tools
>>   http://scala-tools.org/repo-snapshots
>> 
>> 
>>   scala-tools-releases
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>> I run mvn jetty:run and there were no changes. Then added what  
>> David suggested yesterday:
>>
>> 
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>> I run mvn jetty:run again and it started downloading jars like  
>> crazy. So now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive  
>> a warning when the server starts:
>>
>> 2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
>> 2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if  
>> your webapp requires one, please configure one.
>> 2009-10-16 13:31:33.154::WARN:  failed LiftFilter:  
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed  
>> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/ 
>> Users/gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:  
>> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
>> open_$bang signature: ()Ljava/lang/Object;) Can only throw  
>> Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed  
>> contexthandlercollect...@6f1a7e7f: java.lang.VerifyError: (class:  
>> net/liftweb/util/EmptyBox, method: open_$bang signature: ()Ljava/ 
>> lang/Object;) Can only throw Throwable objects
>> 2009-10-16 13:31:33.155::WARN:  failed hand

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
Yes, the error is important.

Can you try a:

mvn clean jetty:run

Cheers, Tim

On 16 Oct 2009, at 12:40, GA wrote:

> Ok, now we have an improvement. I did the following:
>
> I replaced the following part of my pom.xml:
>
>>>   
>>> 
>>>   scala-tools.org
>>>   Scala-Tools Maven2 Repository
>>>   http://scala-tools.org/repo-releases
>>> 
>>>   
>
>
> with:
>
>   
> 
>   scala-tools
>   http://scala-tools.org/repo-snapshots
> 
> 
>   scala-tools-releases
>   http://scala-tools.org/repo-releases
> 
>   
>
> I run mvn jetty:run and there were no changes. Then added what David  
> suggested yesterday:
>
> 
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
> I run mvn jetty:run again and it started downloading jars like  
> crazy. So now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive a  
> warning when the server starts:
>
> 2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
> 2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if  
> your webapp requires one, please configure one.
> 2009-10-16 13:31:33.154::WARN:  failed LiftFilter:  
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable  
> objects
> 2009-10-16 13:31:33.155::WARN:  failed  
> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/Users/ 
> gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:  
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable  
> objects
> 2009-10-16 13:31:33.155::WARN:  failed  
> contexthandlercollect...@6f1a7e7f: java.lang.VerifyError: (class:  
> net/liftweb/util/EmptyBox, method: open_$bang signature: ()Ljava/ 
> lang/Object;) Can only throw Throwable objects
> 2009-10-16 13:31:33.155::WARN:  failed handlercollect...@3466fcd5:  
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable  
> objects
> 2009-10-16 13:31:33.155::WARN:  Error starting handlers
> java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method:  
> open_$bang signature: ()Ljava/lang/Object;) Can only throw Throwable  
> objects
>   at net.liftweb.http.LiftRules$.(LiftRules.scala:231)
>
>
> Is this warning important?
>
> Thanks for your help guys. I really appreciate it.
>
> GA
>
>
>
>
> On Oct 16, 2009, at 1:17 PM, Timothy Perrett wrote:
>
>>
>> No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository.  
>> Make your repositories node look like the one I pasted and you  
>> should find your project working ones more.
>>
>> Cheers, Tim
>>
>> On 16 Oct 2009, at 11:59, GA wrote:
>>
>>> This is what it comes with my pom.xml
>>>
>>>   
>>> 
>>>   scala-tools.org
>>>   Scala-Tools Maven2 Repository
>>>   http://scala-tools.org/repo-releases
>>> 
>>>   
>>>
>>>   
>>> 
>>>   scala-tools.org
>>>   Scala-Tools Maven2 Repository
>>>   http://scala-tools.org/repo-releases
>>> 
>>>   
>>>
>>>
>>> It is ok?
>>>
>>> Cheers,
>>>
>>> GA
>>>
>>>
>>> On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:
>>>

 You must be missing the correct repository tag. Check that you  
 have:

   
 
   scala-tools
   http://scala-tools.org/repo-snapshots
 
 
   scala-tools-releases
   http://scala-tools.org/repo-releases
 
   

 Cheers, Tim

 On 16 Oct 2009, at 10:58, GA wrote:

> Thanks for the info. I downloaded all the jars again, but it did  
> not solved my problem. Now for some reason, if I initiate  
> everything from scratch even with version 1.0 it does not work  
> anymore.
>
> If I add the entry:
>
>  
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
> to the pom.xml manually, I receive the following error when I  
> run the command mvn jetty:run:
>
> INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1- 
> SNAPSHOT' in repository scala-tools.org 
> (http://scala-tools.org/repo-releases 
> )
> [INFO]  
> 
> [ERROR] BUILD ERROR
> [INFO]  
> 
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>   mvn install:install-file -DgroupId=net.liftweb - 
> DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
> Dfile=/path/to/file
>
>   Alternatively, if you host your own repository you can deploy  
> the file there:
>   mvn deploy:

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Ok, now we have an improvement. I did the following:

I replaced the following part of my pom.xml:

>>   
>> 
>>   scala-tools.org
>>   Scala-Tools Maven2 Repository
>>   http://scala-tools.org/repo-releases
>> 
>>   


with:

   
 
   scala-tools
   http://scala-tools.org/repo-snapshots
 
 
   scala-tools-releases
   http://scala-tools.org/repo-releases
 
   

I run mvn jetty:run and there were no changes. Then added what David  
suggested yesterday:

 
   net.liftweb
   lift-mapper
   1.1-SNAPSHOT
 

I run mvn jetty:run again and it started downloading jars like crazy.  
So now I have a lift-mapper-1.1-SNAPSHOT.jar, but I receive a warning  
when the server starts:

2009-10-16 13:31:32.768::INFO:  jetty-6.1.21
2009-10-16 13:31:32.908::INFO:  No Transaction manager found - if your  
webapp requires one, please configure one.
2009-10-16 13:31:33.154::WARN:  failed LiftFilter:  
java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_ 
$bang signature: ()Ljava/lang/Object;) Can only throw Throwable objects
2009-10-16 13:31:33.155::WARN:  failed  
org.mortbay.jetty.plugin.jetty6pluginwebappcont...@3549494e{/,/Users/ 
gacilu/NetBeansProjects/gaTribesServer/src/main/webapp}:  
java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_ 
$bang signature: ()Ljava/lang/Object;) Can only throw Throwable objects
2009-10-16 13:31:33.155::WARN:  failed  
contexthandlercollect...@6f1a7e7f: java.lang.VerifyError: (class: net/ 
liftweb/util/EmptyBox, method: open_$bang signature: ()Ljava/lang/ 
Object;) Can only throw Throwable objects
2009-10-16 13:31:33.155::WARN:  failed handlercollect...@3466fcd5:  
java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_ 
$bang signature: ()Ljava/lang/Object;) Can only throw Throwable objects
2009-10-16 13:31:33.155::WARN:  Error starting handlers
java.lang.VerifyError: (class: net/liftweb/util/EmptyBox, method: open_ 
$bang signature: ()Ljava/lang/Object;) Can only throw Throwable objects
at net.liftweb.http.LiftRules$.(LiftRules.scala:231)


Is this warning important?

Thanks for your help guys. I really appreciate it.

GA




On Oct 16, 2009, at 1:17 PM, Timothy Perrett wrote:

>
> No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository. Make  
> your repositories node look like the one I pasted and you should  
> find your project working ones more.
>
> Cheers, Tim
>
> On 16 Oct 2009, at 11:59, GA wrote:
>
>> This is what it comes with my pom.xml
>>
>>   
>> 
>>   scala-tools.org
>>   Scala-Tools Maven2 Repository
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>>   
>> 
>>   scala-tools.org
>>   Scala-Tools Maven2 Repository
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>>
>> It is ok?
>>
>> Cheers,
>>
>> GA
>>
>>
>> On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:
>>
>>>
>>> You must be missing the correct repository tag. Check that you have:
>>>
>>>   
>>> 
>>>   scala-tools
>>>   http://scala-tools.org/repo-snapshots
>>> 
>>> 
>>>   scala-tools-releases
>>>   http://scala-tools.org/repo-releases
>>> 
>>>   
>>>
>>> Cheers, Tim
>>>
>>> On 16 Oct 2009, at 10:58, GA wrote:
>>>
 Thanks for the info. I downloaded all the jars again, but it did  
 not solved my problem. Now for some reason, if I initiate  
 everything from scratch even with version 1.0 it does not work  
 anymore.

 If I add the entry:

  
   net.liftweb
   lift-mapper
   1.1-SNAPSHOT
 

 to the pom.xml manually, I receive the following error when I run  
 the command mvn jetty:run:

 INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1- 
 SNAPSHOT' in repository scala-tools.org 
 (http://scala-tools.org/repo-releases 
 )
 [INFO]  
 
 [ERROR] BUILD ERROR
 [INFO]  
 
 [INFO] Failed to resolve artifact.

 Missing:
 --
 1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=net.liftweb - 
 DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
 Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy  
 the file there:
   mvn deploy:deploy-file -DgroupId=net.liftweb - 
 DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
 Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

   Path to dependency:
1) com.tribes.ga:gaTribesServer1:war:1.1-SNAPSHOT
2) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT

 --
 1 require

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett

No - 1.1-SNAPSHOT is (surprisingly) in the snapshot repository. Make  
your repositories node look like the one I pasted and you should find  
your project working ones more.

Cheers, Tim

On 16 Oct 2009, at 11:59, GA wrote:

> This is what it comes with my pom.xml
>
>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>
>   
> 
>   scala-tools.org
>   Scala-Tools Maven2 Repository
>   http://scala-tools.org/repo-releases
> 
>   
>
>
> It is ok?
>
> Cheers,
>
> GA
>
>
> On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:
>
>>
>> You must be missing the correct repository tag. Check that you have:
>>
>>   
>> 
>>   scala-tools
>>   http://scala-tools.org/repo-snapshots
>> 
>> 
>>   scala-tools-releases
>>   http://scala-tools.org/repo-releases
>> 
>>   
>>
>> Cheers, Tim
>>
>> On 16 Oct 2009, at 10:58, GA wrote:
>>
>>> Thanks for the info. I downloaded all the jars again, but it did  
>>> not solved my problem. Now for some reason, if I initiate  
>>> everything from scratch even with version 1.0 it does not work  
>>> anymore.
>>>
>>> If I add the entry:
>>>
>>>  
>>>   net.liftweb
>>>   lift-mapper
>>>   1.1-SNAPSHOT
>>> 
>>>
>>> to the pom.xml manually, I receive the following error when I run  
>>> the command mvn jetty:run:
>>>
>>> INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1- 
>>> SNAPSHOT' in repository scala-tools.org 
>>> (http://scala-tools.org/repo-releases 
>>> )
>>> [INFO]  
>>> 
>>> [ERROR] BUILD ERROR
>>> [INFO]  
>>> 
>>> [INFO] Failed to resolve artifact.
>>>
>>> Missing:
>>> --
>>> 1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>>>
>>>   Try downloading the file manually from the project website.
>>>
>>>   Then, install it using the command:
>>>   mvn install:install-file -DgroupId=net.liftweb - 
>>> DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
>>> Dfile=/path/to/file
>>>
>>>   Alternatively, if you host your own repository you can deploy  
>>> the file there:
>>>   mvn deploy:deploy-file -DgroupId=net.liftweb - 
>>> DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
>>> Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>>
>>>   Path to dependency:
>>> 1) com.tribes.ga:gaTribesServer1:war:1.1-SNAPSHOT
>>> 2) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>>>
>>> --
>>> 1 required artifact is missing.
>>>
>>>
>>> It is very strange. It was working before without problems. Any  
>>> ideas?
>>>
>>> Thanks,
>>>
>>> GA
>>>
>>>
>>>
>>> On Oct 16, 2009, at 11:09 AM, Timothy Perrett wrote:
>>>
 Just remove ~/.m2

 The next time you make a maven call it'll then download all the  
 new JAR files.

 Cheers, Tim

 On 16 Oct 2009, at 09:35, GA wrote:

> Is there any way to reset maven's repository? I think there is  
> something corrupt because the behavior is really strange. I  
> think this is the cause of my error.
>
> Thanks,
>
>
> On Oct 15, 2009, at 5:52 PM, GA wrote:
>
>> It is strange. I do not have the entries that you are saying in  
>> the pom.xml file, but I do not have them in the 1.0 neither. I  
>> have also created a project with archetype-basic and I have  
>> having the same error. This is the command I am using to create  
>> the project. Is it ok?
>>
>> mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - 
>> DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1- 
>> SNAPSHOT -DremoteRepositories=http://scala-tools.org/repo- 
>> snapshots -DgroupId=com.tribes.ga -DartifactId=gaTribesServer- 
>> d0.1.1
>>
>> Thanks,
>>
>> GA
>>
>>
>> On Oct 15, 2009, at 5:35 PM, David Pollak wrote:
>>
>>> I'm not sure what's going on.  This code worked for me in a  
>>> brand new archetype-basic 1.1-SNAPSHOT project.
>>>
>>> Please make sure the following entry is in your pom.xml file:
>>>
>>>
>>> 
>>>   net.liftweb
>>>   lift-mapper
>>>   1.1-SNAPSHOT
>>> 
>>>
>>>
>>> Thanks,
>>>
>>> David
>>>
>>> On Thu, Oct 15, 2009 at 8:27 AM, GA  wrote:
>>> Here you have the complete model file.
>>>
>>> It is just a test class. The error I have is "Not found: Type  
>>> IdPK". I get it when I try to compile the file. Also NetBeans  
>>> is showing the error. The same file was working fine in Lift  
>>> 1.0.
>>>
>>> I have created a new project based on the Lift snapshot 1.1  
>>> "archetype-blank" and then copied all my files from the  
>>> previous project. The original 1.0 project was created with  
>>> the "archetype-basic", could this be

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Indrajit Raychaudhuri

Hmm, as Tim pointed out, ensure that you have another  
section for the snapshots. Looks like that's missing in your pom.xml

Put this one within  section and you'd be good to go:


   scala-tools-snapshots
   http://scala-tools.org/repo-snapshots


Cheers, Indrajit


On 16/10/09 4:29 PM, GA wrote:
> This is what it comes with my pom.xml
>
> 
> 
> scala-tools.org
> Scala-Tools Maven2 Repository
> http://scala-tools.org/repo-releases
> 
> 
>
> 
> 
> scala-tools.org
> Scala-Tools Maven2 Repository
> http://scala-tools.org/repo-releases
> 
> 
>
>
> It is ok?
>
> Cheers,
>
> GA
>
>
> On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:
>
>>
>> You must be missing the correct repository tag. Check that you have:
>>
>> 
>> 
>> scala-tools
>> http://scala-tools.org/repo-snapshots
>> 
>> 
>> scala-tools-releases
>> http://scala-tools.org/repo-releases
>> 
>> 
>>
>> Cheers, Tim
>>
>> On 16 Oct 2009, at 10:58, GA wrote:
>>
>>> Thanks for the info. I downloaded all the jars again, but it did not
>>> solved my problem. Now for some reason, if I initiate everything from
>>> scratch even with version 1.0 it does not work anymore.
>>>
>>> If I add the entry:
>>>
>>> 
>>> net.liftweb
>>> lift-mapper
>>> 1.1-SNAPSHOT
>>> 
>>>
>>> to the pom.xml manually, I receive the following error when I run the
>>> command mvn jetty:run:
>>>
>>> INFO] Unable to find resource
>>> 'net.liftweb:lift-mapper:jar:1.1-SNAPSHOT' in repository
>>> scala-tools.org 
>>> (http://scala-tools.org/repo-releases)
>>> [INFO]
>>> 
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> 
>>> [INFO] Failed to resolve artifact.
>>>
>>> Missing:
>>> --
>>> 1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>>>
>>> Try downloading the file manually from the project website.
>>>
>>> Then, install it using the command:
>>> mvn install:install-file -DgroupId=net.liftweb
>>> -DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar
>>> -Dfile=/path/to/file
>>>
>>> Alternatively, if you host your own repository you can deploy the
>>> file there:
>>> mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift-mapper
>>> -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>>> -Durl=[url] -DrepositoryId=[id]
>>>
>>> Path to dependency:
>>> 1) com.tribes.ga:gaTribesServer1:war:1.1-SNAPSHOT
>>> 2) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>>>
>>> --
>>> 1 required artifact is missing.
>>>
>>>
>>> It is very strange. It was working before without problems. Any ideas?
>>>
>>> Thanks,
>>>
>>> GA
>>>
>>>
>>>
>>> On Oct 16, 2009, at 11:09 AM, Timothy Perrett wrote:
>>>
 Just remove ~/.m2

 The next time you make a maven call it'll then download all the new
 JAR files.

 Cheers, Tim

 On 16 Oct 2009, at 09:35, GA wrote:

> Is there any way to reset maven's repository? I think there is
> something corrupt because the behavior is really strange. I think
> this is the cause of my error.
>
> Thanks,
>
>
> On Oct 15, 2009, at 5:52 PM, GA wrote:
>
>> It is strange. I do not have the entries that you are saying in
>> the pom.xml file, but I do not have them in the 1.0 neither. I
>> have also created a project with archetype-basic and I have having
>> the same error. This is the command I am using to create the
>> project. Is it ok?
>>
>> mvn archetype:generate -U -DarchetypeGroupId=net.liftweb
>> -DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1-SNAPSHOT
>> -DremoteRepositories=http://scala-tools.org/repo-snapshots
>> -DgroupId=com.tribes.ga -DartifactId=gaTribesServer-d0.1.1
>>
>> Thanks,
>>
>> GA
>>
>>
>> On Oct 15, 2009, at 5:35 PM, David Pollak wrote:
>>
>>> I'm not sure what's going on. This code worked for me in a brand
>>> new archetype-basic 1.1-SNAPSHOT project.
>>>
>>> Please make sure the following entry is in your pom.xml file:
>>>
>>>
>>> 
>>> net.liftweb
>>> lift-mapper
>>> 1.1-SNAPSHOT
>>> 
>>>
>>> Thanks,
>>>
>>> David
>>>
>>> On Thu, Oct 15, 2009 at 8:27 AM, GA >> > wrote:
>>>
>>> Here you have the complete model file.
>>>
>>> It is just a test class. The error I have is "Not found: Type
>>> IdPK". I get it when I try to compile the file. Also NetBeans
>>> is showing the error. The same file was working fine in Lift 1.0.
>>>
>>> I have created a new project based on the Lift snapshot 1.1
>>> "archetype-blank" and then copied all my files from the
>>> previous project. The original 1.0 project was created with
>>> the "archetype-basic", could this be the source of the error?
>>>
>>> Thanks,
>>>
>>>
>>> package com.tribes.ga.mo

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
This is what it comes with my pom.xml

   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   

   
 
   scala-tools.org
   Scala-Tools Maven2 Repository
   http://scala-tools.org/repo-releases
 
   


It is ok?

Cheers,

GA


On Oct 16, 2009, at 12:33 PM, Timothy Perrett wrote:

>
> You must be missing the correct repository tag. Check that you have:
>
>   
> 
>   scala-tools
>   http://scala-tools.org/repo-snapshots
> 
> 
>   scala-tools-releases
>   http://scala-tools.org/repo-releases
> 
>   
>
> Cheers, Tim
>
> On 16 Oct 2009, at 10:58, GA wrote:
>
>> Thanks for the info. I downloaded all the jars again, but it did  
>> not solved my problem. Now for some reason, if I initiate  
>> everything from scratch even with version 1.0 it does not work  
>> anymore.
>>
>> If I add the entry:
>>
>>  
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>> to the pom.xml manually, I receive the following error when I run  
>> the command mvn jetty:run:
>>
>> INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1- 
>> SNAPSHOT' in repository scala-tools.org 
>> (http://scala-tools.org/repo-releases 
>> )
>> [INFO]  
>> 
>> [ERROR] BUILD ERROR
>> [INFO]  
>> 
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> --
>> 1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>   mvn install:install-file -DgroupId=net.liftweb - 
>> DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
>> Dfile=/path/to/file
>>
>>   Alternatively, if you host your own repository you can deploy the  
>> file there:
>>   mvn deploy:deploy-file -DgroupId=net.liftweb - 
>> DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
>> Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   Path to dependency:
>>  1) com.tribes.ga:gaTribesServer1:war:1.1-SNAPSHOT
>>  2) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>>
>> --
>> 1 required artifact is missing.
>>
>>
>> It is very strange. It was working before without problems. Any  
>> ideas?
>>
>> Thanks,
>>
>> GA
>>
>>
>>
>> On Oct 16, 2009, at 11:09 AM, Timothy Perrett wrote:
>>
>>> Just remove ~/.m2
>>>
>>> The next time you make a maven call it'll then download all the  
>>> new JAR files.
>>>
>>> Cheers, Tim
>>>
>>> On 16 Oct 2009, at 09:35, GA wrote:
>>>
 Is there any way to reset maven's repository? I think there is  
 something corrupt because the behavior is really strange. I think  
 this is the cause of my error.

 Thanks,


 On Oct 15, 2009, at 5:52 PM, GA wrote:

> It is strange. I do not have the entries that you are saying in  
> the pom.xml file, but I do not have them in the 1.0 neither. I  
> have also created a project with archetype-basic and I have  
> having the same error. This is the command I am using to create  
> the project. Is it ok?
>
> mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - 
> DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1-SNAPSHOT  
> -DremoteRepositories=http://scala-tools.org/repo-snapshots - 
> DgroupId=com.tribes.ga -DartifactId=gaTribesServer-d0.1.1
>
> Thanks,
>
> GA
>
>
> On Oct 15, 2009, at 5:35 PM, David Pollak wrote:
>
>> I'm not sure what's going on.  This code worked for me in a  
>> brand new archetype-basic 1.1-SNAPSHOT project.
>>
>> Please make sure the following entry is in your pom.xml file:
>>
>>
>> 
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>>
>> Thanks,
>>
>> David
>>
>> On Thu, Oct 15, 2009 at 8:27 AM, GA  wrote:
>> Here you have the complete model file.
>>
>> It is just a test class. The error I have is "Not found: Type  
>> IdPK". I get it when I try to compile the file. Also NetBeans  
>> is showing the error. The same file was working fine in Lift 1.0.
>>
>> I have created a new project based on the Lift snapshot 1.1  
>> "archetype-blank" and then copied all my files from the  
>> previous project. The original 1.0 project was created with the  
>> "archetype-basic", could this be the source of the error?
>>
>> Thanks,
>>
>>
>> package com.tribes.ga.model
>>
>> import net.liftweb._
>> import mapper._
>> import util._
>> import scala.xml.{NodeSeq,Text}
>> import _root_.java.text.{DateFormat,SimpleDateFormat}
>>
>> class Person extends LongKeyedMapper[Person] with IdPK {
>> def getSingleton = Person
>>
>> object userName exte

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett

You must be missing the correct repository tag. Check that you have:

   
 
   scala-tools
   http://scala-tools.org/repo-snapshots
 
 
   scala-tools-releases
   http://scala-tools.org/repo-releases
 
   

Cheers, Tim

On 16 Oct 2009, at 10:58, GA wrote:

> Thanks for the info. I downloaded all the jars again, but it did not  
> solved my problem. Now for some reason, if I initiate everything  
> from scratch even with version 1.0 it does not work anymore.
>
> If I add the entry:
>
>  
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
> to the pom.xml manually, I receive the following error when I run  
> the command mvn jetty:run:
>
> INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1- 
> SNAPSHOT' in repository scala-tools.org (http://scala-tools.org/repo-releases 
> )
> [INFO]  
> 
> [ERROR] BUILD ERROR
> [INFO]  
> 
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>   mvn install:install-file -DgroupId=net.liftweb - 
> DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar - 
> Dfile=/path/to/file
>
>   Alternatively, if you host your own repository you can deploy the  
> file there:
>   mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift- 
> mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file - 
> Durl=[url] -DrepositoryId=[id]
>
>   Path to dependency:
>   1) com.tribes.ga:gaTribesServer1:war:1.1-SNAPSHOT
>   2) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT
>
> --
> 1 required artifact is missing.
>
>
> It is very strange. It was working before without problems. Any ideas?
>
> Thanks,
>
> GA
>
>
>
> On Oct 16, 2009, at 11:09 AM, Timothy Perrett wrote:
>
>> Just remove ~/.m2
>>
>> The next time you make a maven call it'll then download all the new  
>> JAR files.
>>
>> Cheers, Tim
>>
>> On 16 Oct 2009, at 09:35, GA wrote:
>>
>>> Is there any way to reset maven's repository? I think there is  
>>> something corrupt because the behavior is really strange. I think  
>>> this is the cause of my error.
>>>
>>> Thanks,
>>>
>>>
>>> On Oct 15, 2009, at 5:52 PM, GA wrote:
>>>
 It is strange. I do not have the entries that you are saying in  
 the pom.xml file, but I do not have them in the 1.0 neither. I  
 have also created a project with archetype-basic and I have  
 having the same error. This is the command I am using to create  
 the project. Is it ok?

 mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - 
 DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1-SNAPSHOT - 
 DremoteRepositories=http://scala-tools.org/repo-snapshots - 
 DgroupId=com.tribes.ga -DartifactId=gaTribesServer-d0.1.1

 Thanks,

 GA


 On Oct 15, 2009, at 5:35 PM, David Pollak wrote:

> I'm not sure what's going on.  This code worked for me in a  
> brand new archetype-basic 1.1-SNAPSHOT project.
>
> Please make sure the following entry is in your pom.xml file:
>
>
> 
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
>
> Thanks,
>
> David
>
> On Thu, Oct 15, 2009 at 8:27 AM, GA  wrote:
> Here you have the complete model file.
>
> It is just a test class. The error I have is "Not found: Type  
> IdPK". I get it when I try to compile the file. Also NetBeans is  
> showing the error. The same file was working fine in Lift 1.0.
>
> I have created a new project based on the Lift snapshot 1.1  
> "archetype-blank" and then copied all my files from the previous  
> project. The original 1.0 project was created with the  
> "archetype-basic", could this be the source of the error?
>
> Thanks,
>
>
> package com.tribes.ga.model
>
> import net.liftweb._
> import mapper._
> import util._
> import scala.xml.{NodeSeq,Text}
> import _root_.java.text.{DateFormat,SimpleDateFormat}
>
> class Person extends LongKeyedMapper[Person] with IdPK {
> def getSingleton = Person
>
> object userName extends MappedString(this, 30)
> object password extends MappedString(this, 30)
> object firstName extends MappedString(this, 30)
> object lastName extends MappedString(this, 30)
> object email extends MappedString(this, 255)
> object deviceName extends MappedString(this, 30)
> object createdOn extends MappedDateTime(this)
> object updatedOn extends MappedDateTime(this)
> object createdBy extends MappedString(this, 25)
> object updatedBy extends MappedString(this, 25)
>

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Thanks for the info. I downloaded all the jars again, but it did not  
solved my problem. Now for some reason, if I initiate everything from  
scratch even with version 1.0 it does not work anymore.

If I add the entry:

  
   net.liftweb
   lift-mapper
   1.1-SNAPSHOT
 

to the pom.xml manually, I receive the following error when I run the  
command mvn jetty:run:

INFO] Unable to find resource 'net.liftweb:lift-mapper:jar:1.1- 
SNAPSHOT' in repository scala-tools.org (http://scala-tools.org/repo-releases 
)
[INFO]  

[ERROR] BUILD ERROR
[INFO]  

[INFO] Failed to resolve artifact.

Missing:
--
1) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=net.liftweb - 
DartifactId=lift-mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/ 
path/to/file

   Alternatively, if you host your own repository you can deploy the  
file there:
   mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift- 
mapper -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file - 
Durl=[url] -DrepositoryId=[id]

   Path to dependency:
1) com.tribes.ga:gaTribesServer1:war:1.1-SNAPSHOT
2) net.liftweb:lift-mapper:jar:1.1-SNAPSHOT

--
1 required artifact is missing.


It is very strange. It was working before without problems. Any ideas?

Thanks,

GA



On Oct 16, 2009, at 11:09 AM, Timothy Perrett wrote:

> Just remove ~/.m2
>
> The next time you make a maven call it'll then download all the new  
> JAR files.
>
> Cheers, Tim
>
> On 16 Oct 2009, at 09:35, GA wrote:
>
>> Is there any way to reset maven's repository? I think there is  
>> something corrupt because the behavior is really strange. I think  
>> this is the cause of my error.
>>
>> Thanks,
>>
>>
>> On Oct 15, 2009, at 5:52 PM, GA wrote:
>>
>>> It is strange. I do not have the entries that you are saying in  
>>> the pom.xml file, but I do not have them in the 1.0 neither. I  
>>> have also created a project with archetype-basic and I have having  
>>> the same error. This is the command I am using to create the  
>>> project. Is it ok?
>>>
>>> mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - 
>>> DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1-SNAPSHOT - 
>>> DremoteRepositories=http://scala-tools.org/repo-snapshots - 
>>> DgroupId=com.tribes.ga -DartifactId=gaTribesServer-d0.1.1
>>>
>>> Thanks,
>>>
>>> GA
>>>
>>>
>>> On Oct 15, 2009, at 5:35 PM, David Pollak wrote:
>>>
 I'm not sure what's going on.  This code worked for me in a brand  
 new archetype-basic 1.1-SNAPSHOT project.

 Please make sure the following entry is in your pom.xml file:


 
   net.liftweb
   lift-mapper
   1.1-SNAPSHOT
 


 Thanks,

 David

 On Thu, Oct 15, 2009 at 8:27 AM, GA  wrote:
 Here you have the complete model file.

 It is just a test class. The error I have is "Not found: Type  
 IdPK". I get it when I try to compile the file. Also NetBeans is  
 showing the error. The same file was working fine in Lift 1.0.

 I have created a new project based on the Lift snapshot 1.1  
 "archetype-blank" and then copied all my files from the previous  
 project. The original 1.0 project was created with the "archetype- 
 basic", could this be the source of the error?

 Thanks,


 package com.tribes.ga.model

 import net.liftweb._
 import mapper._
 import util._
 import scala.xml.{NodeSeq,Text}
 import _root_.java.text.{DateFormat,SimpleDateFormat}

 class Person extends LongKeyedMapper[Person] with IdPK {
 def getSingleton = Person

 object userName extends MappedString(this, 30)
 object password extends MappedString(this, 30)
 object firstName extends MappedString(this, 30)
 object lastName extends MappedString(this, 30)
 object email extends MappedString(this, 255)
 object deviceName extends MappedString(this, 30)
 object createdOn extends MappedDateTime(this)
 object updatedOn extends MappedDateTime(this)
 object createdBy extends MappedString(this, 25)
 object updatedBy extends MappedString(this, 25)

 def toXML: NodeSeq = {
 val id = "http://www.gatribes.com/api/expense/"; + this.id
 val formatter = new  SimpleDateFormat("-MM- 
 dd'T'HH:mm:ss'Z'")

 
 {id}
 {getUserName(userName.is)}
 {firstName.is}
 {lastName.is}
 
 }

 private def getUserName(userName: String): String = {
 Person.find(By(Per

[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread Timothy Perrett
Just remove ~/.m2

The next time you make a maven call it'll then download all the new  
JAR files.

Cheers, Tim

On 16 Oct 2009, at 09:35, GA wrote:

> Is there any way to reset maven's repository? I think there is  
> something corrupt because the behavior is really strange. I think  
> this is the cause of my error.
>
> Thanks,
>
>
> On Oct 15, 2009, at 5:52 PM, GA wrote:
>
>> It is strange. I do not have the entries that you are saying in the  
>> pom.xml file, but I do not have them in the 1.0 neither. I have  
>> also created a project with archetype-basic and I have having the  
>> same error. This is the command I am using to create the project.  
>> Is it ok?
>>
>> mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - 
>> DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1-SNAPSHOT - 
>> DremoteRepositories=http://scala-tools.org/repo-snapshots - 
>> DgroupId=com.tribes.ga -DartifactId=gaTribesServer-d0.1.1
>>
>> Thanks,
>>
>> GA
>>
>>
>> On Oct 15, 2009, at 5:35 PM, David Pollak wrote:
>>
>>> I'm not sure what's going on.  This code worked for me in a brand  
>>> new archetype-basic 1.1-SNAPSHOT project.
>>>
>>> Please make sure the following entry is in your pom.xml file:
>>>
>>>
>>> 
>>>   net.liftweb
>>>   lift-mapper
>>>   1.1-SNAPSHOT
>>> 
>>>
>>>
>>> Thanks,
>>>
>>> David
>>>
>>> On Thu, Oct 15, 2009 at 8:27 AM, GA  wrote:
>>> Here you have the complete model file.
>>>
>>> It is just a test class. The error I have is "Not found: Type  
>>> IdPK". I get it when I try to compile the file. Also NetBeans is  
>>> showing the error. The same file was working fine in Lift 1.0.
>>>
>>> I have created a new project based on the Lift snapshot 1.1  
>>> "archetype-blank" and then copied all my files from the previous  
>>> project. The original 1.0 project was created with the "archetype- 
>>> basic", could this be the source of the error?
>>>
>>> Thanks,
>>>
>>>
>>> package com.tribes.ga.model
>>>
>>> import net.liftweb._
>>> import mapper._
>>> import util._
>>> import scala.xml.{NodeSeq,Text}
>>> import _root_.java.text.{DateFormat,SimpleDateFormat}
>>>
>>> class Person extends LongKeyedMapper[Person] with IdPK {
>>> def getSingleton = Person
>>>
>>> object userName extends MappedString(this, 30)
>>> object password extends MappedString(this, 30)
>>> object firstName extends MappedString(this, 30)
>>> object lastName extends MappedString(this, 30)
>>> object email extends MappedString(this, 255)
>>> object deviceName extends MappedString(this, 30)
>>> object createdOn extends MappedDateTime(this)
>>> object updatedOn extends MappedDateTime(this)
>>> object createdBy extends MappedString(this, 25)
>>> object updatedBy extends MappedString(this, 25)
>>>
>>> def toXML: NodeSeq = {
>>> val id = "http://www.gatribes.com/api/expense/"; + this.id
>>> val formatter = new  SimpleDateFormat("-MM- 
>>> dd'T'HH:mm:ss'Z'")
>>>
>>> 
>>> {id}
>>> {getUserName(userName.is)}
>>> {firstName.is}
>>> {lastName.is}
>>> 
>>> }
>>>
>>> private def getUserName(userName: String): String = {
>>> Person.find(By(Person.userName, userName)) match {
>>> case Full(a) => a.userName
>>> case _ => "No Account Name"
>>> }
>>> }
>>>
>>>
>>> }
>>>
>>> object Person extends Person with LongKeyedMetaMapper[Person]
>>>
>>>
>>>
>>> On Oct 15, 2009, at 5:04 PM, David Pollak wrote:
>>>
 Can you post an example (complete file) of something's not working?

 On Thu, Oct 15, 2009 at 3:21 AM, GA  wrote:

 Hello guys,

 I have a Lift project working perfectly in version 1.0, but when I
 moved it to Lift 1.1 I am having errors with the Modeler with the  
 type
 IdPK. Any ideas?

 Thanks,

 GA






 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics


>>>
>>>
>>>
>>>
>>>
>>>
>>> -- 
>>> Lift, the simply functional web framework http://liftweb.net
>>> Beginning Scala http://www.apress.com/book/view/1430219890
>>> Follow me: http://twitter.com/dpp
>>> Surf the harmonics
>>>
>>>
>>
>>
>>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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
-~--~~~~--~~--~--~---



[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-16 Thread GA
Is there any way to reset maven's repository? I think there is  
something corrupt because the behavior is really strange. I think this  
is the cause of my error.

Thanks,


On Oct 15, 2009, at 5:52 PM, GA wrote:

> It is strange. I do not have the entries that you are saying in the  
> pom.xml file, but I do not have them in the 1.0 neither. I have also  
> created a project with archetype-basic and I have having the same  
> error. This is the command I am using to create the project. Is it ok?
>
> mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - 
> DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1-SNAPSHOT - 
> DremoteRepositories=http://scala-tools.org/repo-snapshots - 
> DgroupId=com.tribes.ga -DartifactId=gaTribesServer-d0.1.1
>
> Thanks,
>
> GA
>
>
> On Oct 15, 2009, at 5:35 PM, David Pollak wrote:
>
>> I'm not sure what's going on.  This code worked for me in a brand  
>> new archetype-basic 1.1-SNAPSHOT project.
>>
>> Please make sure the following entry is in your pom.xml file:
>>
>>
>> 
>>   net.liftweb
>>   lift-mapper
>>   1.1-SNAPSHOT
>> 
>>
>>
>> Thanks,
>>
>> David
>>
>> On Thu, Oct 15, 2009 at 8:27 AM, GA  wrote:
>> Here you have the complete model file.
>>
>> It is just a test class. The error I have is "Not found: Type  
>> IdPK". I get it when I try to compile the file. Also NetBeans is  
>> showing the error. The same file was working fine in Lift 1.0.
>>
>> I have created a new project based on the Lift snapshot 1.1  
>> "archetype-blank" and then copied all my files from the previous  
>> project. The original 1.0 project was created with the "archetype- 
>> basic", could this be the source of the error?
>>
>> Thanks,
>>
>>
>> package com.tribes.ga.model
>>
>> import net.liftweb._
>> import mapper._
>> import util._
>> import scala.xml.{NodeSeq,Text}
>> import _root_.java.text.{DateFormat,SimpleDateFormat}
>>
>> class Person extends LongKeyedMapper[Person] with IdPK {
>> def getSingleton = Person
>>
>> object userName extends MappedString(this, 30)
>> object password extends MappedString(this, 30)
>> object firstName extends MappedString(this, 30)
>> object lastName extends MappedString(this, 30)
>> object email extends MappedString(this, 255)
>> object deviceName extends MappedString(this, 30)
>> object createdOn extends MappedDateTime(this)
>> object updatedOn extends MappedDateTime(this)
>> object createdBy extends MappedString(this, 25)
>> object updatedBy extends MappedString(this, 25)
>>
>> def toXML: NodeSeq = {
>> val id = "http://www.gatribes.com/api/expense/"; + this.id
>> val formatter = new  SimpleDateFormat("-MM- 
>> dd'T'HH:mm:ss'Z'")
>>
>> 
>> {id}
>> {getUserName(userName.is)}
>> {firstName.is}
>> {lastName.is}
>> 
>> }
>>
>> private def getUserName(userName: String): String = {
>> Person.find(By(Person.userName, userName)) match {
>> case Full(a) => a.userName
>> case _ => "No Account Name"
>> }
>> }
>>
>>
>> }
>>
>> object Person extends Person with LongKeyedMetaMapper[Person]
>>
>>
>>
>> On Oct 15, 2009, at 5:04 PM, David Pollak wrote:
>>
>>> Can you post an example (complete file) of something's not working?
>>>
>>> On Thu, Oct 15, 2009 at 3:21 AM, GA  wrote:
>>>
>>> Hello guys,
>>>
>>> I have a Lift project working perfectly in version 1.0, but when I
>>> moved it to Lift 1.1 I am having errors with the Modeler with the  
>>> type
>>> IdPK. Any ideas?
>>>
>>> Thanks,
>>>
>>> GA
>>>
>>>
>>>
>>>
>>>
>>>
>>> -- 
>>> Lift, the simply functional web framework http://liftweb.net
>>> Beginning Scala http://www.apress.com/book/view/1430219890
>>> Follow me: http://twitter.com/dpp
>>> Surf the harmonics
>>>
>>>
>>
>>
>>
>>
>>
>>
>> -- 
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Surf the harmonics
>>
>>
>
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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
-~--~~~~--~~--~--~---



[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-15 Thread GA
It is strange. I do not have the entries that you are saying in the  
pom.xml file, but I do not have them in the 1.0 neither. I have also  
created a project with archetype-basic and I have having the same  
error. This is the command I am using to create the project. Is it ok?

mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - 
DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1-SNAPSHOT - 
DremoteRepositories=http://scala-tools.org/repo-snapshots - 
DgroupId=com.tribes.ga -DartifactId=gaTribesServer-d0.1.1

Thanks,

GA


On Oct 15, 2009, at 5:35 PM, David Pollak wrote:

> I'm not sure what's going on.  This code worked for me in a brand  
> new archetype-basic 1.1-SNAPSHOT project.
>
> Please make sure the following entry is in your pom.xml file:
>
>
> 
>   net.liftweb
>   lift-mapper
>   1.1-SNAPSHOT
> 
>
>
> Thanks,
>
> David
>
> On Thu, Oct 15, 2009 at 8:27 AM, GA  wrote:
> Here you have the complete model file.
>
> It is just a test class. The error I have is "Not found: Type IdPK".  
> I get it when I try to compile the file. Also NetBeans is showing  
> the error. The same file was working fine in Lift 1.0.
>
> I have created a new project based on the Lift snapshot 1.1  
> "archetype-blank" and then copied all my files from the previous  
> project. The original 1.0 project was created with the "archetype- 
> basic", could this be the source of the error?
>
> Thanks,
>
>
> package com.tribes.ga.model
>
> import net.liftweb._
> import mapper._
> import util._
> import scala.xml.{NodeSeq,Text}
> import _root_.java.text.{DateFormat,SimpleDateFormat}
>
> class Person extends LongKeyedMapper[Person] with IdPK {
> def getSingleton = Person
>
> object userName extends MappedString(this, 30)
> object password extends MappedString(this, 30)
> object firstName extends MappedString(this, 30)
> object lastName extends MappedString(this, 30)
> object email extends MappedString(this, 255)
> object deviceName extends MappedString(this, 30)
> object createdOn extends MappedDateTime(this)
> object updatedOn extends MappedDateTime(this)
> object createdBy extends MappedString(this, 25)
> object updatedBy extends MappedString(this, 25)
>
> def toXML: NodeSeq = {
> val id = "http://www.gatribes.com/api/expense/"; + this.id
> val formatter = new  SimpleDateFormat("-MM- 
> dd'T'HH:mm:ss'Z'")
>
> 
> {id}
> {getUserName(userName.is)}
> {firstName.is}
> {lastName.is}
> 
> }
>
> private def getUserName(userName: String): String = {
> Person.find(By(Person.userName, userName)) match {
> case Full(a) => a.userName
> case _ => "No Account Name"
> }
> }
>
>
> }
>
> object Person extends Person with LongKeyedMetaMapper[Person]
>
>
>
> On Oct 15, 2009, at 5:04 PM, David Pollak wrote:
>
>> Can you post an example (complete file) of something's not working?
>>
>> On Thu, Oct 15, 2009 at 3:21 AM, GA  wrote:
>>
>> Hello guys,
>>
>> I have a Lift project working perfectly in version 1.0, but when I
>> moved it to Lift 1.1 I am having errors with the Modeler with the  
>> type
>> IdPK. Any ideas?
>>
>> Thanks,
>>
>> GA
>>
>>
>>
>>
>>
>>
>> -- 
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Surf the harmonics
>>
>>
>
>
>
>
>
>
> -- 
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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
-~--~~~~--~~--~--~---



[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-15 Thread David Pollak
I'm not sure what's going on.  This code worked for me in a brand new
archetype-basic 1.1-SNAPSHOT project.
Please make sure the following entry is in your pom.xml file:



  net.liftweb
  lift-mapper
  1.1-SNAPSHOT



Thanks,

David

On Thu, Oct 15, 2009 at 8:27 AM, GA  wrote:

> Here you have the complete model file.
>
> It is just a test class. The error I have is "Not found: Type IdPK". I get
> it when I try to compile the file. Also NetBeans is showing the error. The
> same file was working fine in Lift 1.0.
>
> I have created a new project based on the Lift snapshot 1.1
> "archetype-blank" and then copied all my files from the previous project.
> The original 1.0 project was created with the "archetype-basic", could this
> be the source of the error?
>
> Thanks,
>
>
> package com.tribes.ga.model
>
> import net.liftweb._
> import mapper._
> import util._
> import scala.xml.{NodeSeq,Text}
> import _root_.java.text.{DateFormat,SimpleDateFormat}
>
> class Person extends LongKeyedMapper[Person] with IdPK {
> def getSingleton = Person
>
> object userName extends MappedString(this, 30)
> object password extends MappedString(this, 30)
> object firstName extends MappedString(this, 30)
> object lastName extends MappedString(this, 30)
> object email extends MappedString(this, 255)
> object deviceName extends MappedString(this, 30)
> object createdOn extends MappedDateTime(this)
> object updatedOn extends MappedDateTime(this)
> object createdBy extends MappedString(this, 25)
> object updatedBy extends MappedString(this, 25)
>
> def toXML: NodeSeq = {
> val id = "http://www.gatribes.com/api/expense/"; + this.id
> val formatter = new  SimpleDateFormat("-MM-dd'T'HH:mm:ss'Z'")
>
> 
> {id}
> {getUserName(userName.is)}
> {firstName.is}
> {lastName.is}
> 
> }
>
> private def getUserName(userName: String): String = {
> Person.find(By(Person.userName, userName)) match {
> case Full(a) => a.userName
> case _ => "No Account Name"
> }
> }
>
>
> }
>
> object Person extends Person with LongKeyedMetaMapper[Person]
>
>
>
> On Oct 15, 2009, at 5:04 PM, David Pollak wrote:
>
> Can you post an example (complete file) of something's not working?
>
> On Thu, Oct 15, 2009 at 3:21 AM, GA  wrote:
>
>>
>> Hello guys,
>>
>> I have a Lift project working perfectly in version 1.0, but when I
>> moved it to Lift 1.1 I am having errors with the Modeler with the type
>> IdPK. Any ideas?
>>
>> Thanks,
>>
>> GA
>>
>>
>>
>>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
>
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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
-~--~~~~--~~--~--~---



[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-15 Thread GA
Here you have the complete model file.

It is just a test class. The error I have is "Not found: Type IdPK". I  
get it when I try to compile the file. Also NetBeans is showing the  
error. The same file was working fine in Lift 1.0.

I have created a new project based on the Lift snapshot 1.1 "archetype- 
blank" and then copied all my files from the previous project. The  
original 1.0 project was created with the "archetype-basic", could  
this be the source of the error?

Thanks,


package com.tribes.ga.model

import net.liftweb._
import mapper._
import util._
import scala.xml.{NodeSeq,Text}
import _root_.java.text.{DateFormat,SimpleDateFormat}

class Person extends LongKeyedMapper[Person] with IdPK {
 def getSingleton = Person

 object userName extends MappedString(this, 30)
 object password extends MappedString(this, 30)
 object firstName extends MappedString(this, 30)
 object lastName extends MappedString(this, 30)
 object email extends MappedString(this, 255)
 object deviceName extends MappedString(this, 30)
 object createdOn extends MappedDateTime(this)
 object updatedOn extends MappedDateTime(this)
 object createdBy extends MappedString(this, 25)
 object updatedBy extends MappedString(this, 25)

 def toXML: NodeSeq = {
 val id = "http://www.gatribes.com/api/expense/"; + this.id
 val formatter = new  SimpleDateFormat("-MM- 
dd'T'HH:mm:ss'Z'")

 
 {id}
 {getUserName(userName.is)}
 {firstName.is}
 {lastName.is}
 
 }

 private def getUserName(userName: String): String = {
 Person.find(By(Person.userName, userName)) match {
 case Full(a) => a.userName
 case _ => "No Account Name"
 }
 }


}

object Person extends Person with LongKeyedMetaMapper[Person]



On Oct 15, 2009, at 5:04 PM, David Pollak wrote:

> Can you post an example (complete file) of something's not working?
>
> On Thu, Oct 15, 2009 at 3:21 AM, GA  wrote:
>
> Hello guys,
>
> I have a Lift project working perfectly in version 1.0, but when I
> moved it to Lift 1.1 I am having errors with the Modeler with the type
> IdPK. Any ideas?
>
> Thanks,
>
> GA
>
>
>
>
>
>
> -- 
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> >


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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
-~--~~~~--~~--~--~---



[Lift] Re: error: not found: type IdPK in Lift 1.1

2009-10-15 Thread David Pollak
Can you post an example (complete file) of something's not working?

On Thu, Oct 15, 2009 at 3:21 AM, GA  wrote:

>
> Hello guys,
>
> I have a Lift project working perfectly in version 1.0, but when I
> moved it to Lift 1.1 I am having errors with the Modeler with the type
> IdPK. Any ideas?
>
> Thanks,
>
> GA
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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
-~--~~~~--~~--~--~---