I did it. This is the first par of my pom.xml

   <modelVersion>4.0.0</modelVersion>
   <groupId>com.server</groupId>
   <artifactId>Server</artifactId>
   <version>1.1-SNAPSHOT</version>
   <packaging>war</packaging>
   <name>Server</name>
   <inceptionYear>2007</inceptionYear>
   <properties>
     <scala.version>2.7.1</scala.version>
   </properties>

   <repositories>
     <repository>
       <id>scala-tools.org</id>
       <name>Scala-Tools Maven2 Repository</name>
       <url>http://scala-tools.org/repo-releases</url>
     </repository>
   </repositories>

   <pluginRepositories>
     <pluginRepository>
       <id>scala-tools.org</id>
       <name>Scala-Tools Maven2 Repository</name>
       <url>http://scala-tools.org/repo-releases</url>
     </pluginRepository>
   </pluginRepositories>


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] <and> (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:
>>>>
>>>>>>   <repositories>
>>>>>>     <repository>
>>>>>>       <id>scala-tools.org</id>
>>>>>>       <name>Scala-Tools Maven2 Repository</name>
>>>>>>       <url>http://scala-tools.org/repo-releases</url>
>>>>>>     </repository>
>>>>>>   </repositories>
>>>>
>>>>
>>>> with:
>>>>
>>>>   <repositories>
>>>>     <repository>
>>>>       <id>scala-tools</id>
>>>>       <url>http://scala-tools.org/repo-snapshots</url>
>>>>     </repository>
>>>>     <repository>
>>>>       <id>scala-tools-releases</id>
>>>>       <url>http://scala-tools.org/repo-releases</url>
>>>>     </repository>
>>>>   </repositories>
>>>>
>>>> I run mvn jetty:run and there were no changes. Then added what  
>>>> David suggested yesterday:
>>>>
>>>>     <dependency>
>>>>       <groupId>net.liftweb</groupId>
>>>>       <artifactId>lift-mapper</artifactId>
>>>>       <version>1.1-SNAPSHOT</version>
>>>>     </dependency>
>>>>
>>>> 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$.<init>(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
>>>>>>
>>>>>>   <repositories>
>>>>>>     <repository>
>>>>>>       <id>scala-tools.org</id>
>>>>>>       <name>Scala-Tools Maven2 Repository</name>
>>>>>>       <url>http://scala-tools.org/repo-releases</url>
>>>>>>     </repository>
>>>>>>   </repositories>
>>>>>>
>>>>>>   <pluginRepositories>
>>>>>>     <pluginRepository>
>>>>>>       <id>scala-tools.org</id>
>>>>>>       <name>Scala-Tools Maven2 Repository</name>
>>>>>>       <url>http://scala-tools.org/repo-releases</url>
>>>>>>     </pluginRepository>
>>>>>>   </pluginRepositories>
>>>>>>
>>>>>>
>>>>>> 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:
>>>>>>>
>>>>>>>   <repositories>
>>>>>>>     <repository>
>>>>>>>       <id>scala-tools</id>
>>>>>>>       <url>http://scala-tools.org/repo-snapshots</url>
>>>>>>>     </repository>
>>>>>>>     <repository>
>>>>>>>       <id>scala-tools-releases</id>
>>>>>>>       <url>http://scala-tools.org/repo-releases</url>
>>>>>>>     </repository>
>>>>>>>   </repositories>
>>>>>>>
>>>>>>> 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:
>>>>>>>>
>>>>>>>>>>>>  <dependency>
>>>>>>>>>>>>       <groupId>net.liftweb</groupId>
>>>>>>>>>>>>       <artifactId>lift-mapper</artifactId>
>>>>>>>>>>>>       <version>1.1-SNAPSHOT</version>
>>>>>>>>>>>>     </dependency>
>>>>>>>>
>>>>>>>> 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:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>     <dependency>
>>>>>>>>>>>>       <groupId>net.liftweb</groupId>
>>>>>>>>>>>>       <artifactId>lift-mapper</artifactId>
>>>>>>>>>>>>       <version>1.1-SNAPSHOT</version>
>>>>>>>>>>>>     </dependency>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>
>>>>>>>>>>>> David
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Oct 15, 2009 at 8:27 AM, GA <my_li...@me.com>  
>>>>>>>>>>>> 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("yyyy-MM- 
>>>>>>>>>>>> dd'T'HH:mm:ss'Z'")
>>>>>>>>>>>>
>>>>>>>>>>>>         <person>
>>>>>>>>>>>>             <id>{id}</id>
>>>>>>>>>>>>             <accountname>{getUserName(userName.is)}</ 
>>>>>>>>>>>> accountname>
>>>>>>>>>>>>             <firstName>{firstName.is}</firstName>
>>>>>>>>>>>>             <lastName>{lastName.is}</lastName>
>>>>>>>>>>>>         </person>
>>>>>>>>>>>>     }
>>>>>>>>>>>>
>>>>>>>>>>>>     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 <my_li...@me.com>  
>>>>>>>>>>>>> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to