Remove the lift-core dependency and separately specify lift-webkit, lift-common
and lift-util. That should resolve your issue... its probally a problem with
the transitive dependencies in maven.
Cheers, Tim
On 5 Jan 2010, at 22:17, Ross Mellgren wrote:
It looks like you probably have some
How would that dependency tag look? Right now it looks like this:
dependency
groupIdnet.liftweb/groupId
artifactIdlift-core/artifactId
version1.1-M8/version
/dependency
On Jan 6, 10:06 am, Timothy Perrett timo...@getintheloop.eu wrote:
Remove the lift-core dependency and
Mads,
Since you are using mapper, having dependency on lift-mapper should
suffice. Other dependencies would be pulled in transitively.
So having this dependency tag should do.
dependency
groupIdnet.liftweb/groupId
artifactIdlift-mapper/artifactId
version1.1-M8/version
/dependency
Again, I really appreciate you guys helping me out :)
@Indrajit I just tried with the dependency you declared as the only
lift related dependency. I get the following error.
dependency
groupIdnet.liftweb/groupId
artifactIdlift-mapper/artifactId
version1.1-M8/version
/dependency
[INFO]
Mads,
Can you please send me the pom.xml?
Cheers, Indrajit
On 06/01/10 4:50 PM, Mads Hartmann wrote:
Again, I really appreciate you guys helping me out :)
@Indrajit I just tried with the dependency you declared as the only
lift related dependency. I get the following error.
dependency
Sure thing, here it is:
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://
www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdscalableKvidr/groupId
Mads Hartmann mads...@gmail.com writes:
Again, I really appreciate you guys helping me out :)
@Indrajit I just tried with the dependency you declared as the only
lift related dependency. I get the following error.
dependency
groupIdnet.liftweb/groupId
artifactIdlift-mapper/artifactId
Aha! It almost compiles now. There's just one last error:
[INFO] Compiling 8 source files to /Users/Mads/Projects/scalableKvidr2/
target/classes at 1262780161026
[ERROR] /Users/Mads/Projects/scalableKvidr2/src/main/scala/bootstrap/
liftweb/Boot.scala:61: error: type mismatch;
[INFO] found :
Ok, few points:
1. Full, Box etc. have a different package location now. Ensure import
net.liftweb.common._ wherever you have Full, Box etc.
2. scala.version should be 2.7.7
scala.version2.7.7/scala.version
3. scala-library dependency is redundant. You can remove that.
4. This shouldn't
And the boot file looks like this:
package bootstrap.liftweb
import _root_.net.liftweb.util._
import _root_.net.liftweb.http._
import _root_.net.liftweb.sitemap._
import _root_.net.liftweb.sitemap.Loc._
import Helpers._
import _root_.net.liftweb.mapper.{DB, ConnectionManager, Schemifier,
@Indrajit Raychaudhuri, I've applied your changes
On Jan 6, 1:22 pm, Mads Hartmann mads...@gmail.com wrote:
And the boot file looks like this:
package bootstrap.liftweb
import _root_.net.liftweb.util._
import _root_.net.liftweb.http._
import _root_.net.liftweb.sitemap._
import
It compiles and works now! :)
Thanks a lot for your help everyone
On Jan 6, 1:29 pm, Mads Hartmann mads...@gmail.com wrote:
@Indrajit Raychaudhuri, I've applied your changes
On Jan 6, 1:22 pm, Mads Hartmann mads...@gmail.com wrote:
And the boot file looks like this:
package
Lift uses the SQL IN statement rather than joins. This has a negative
impact for users of MySQL and Derby.
Try:
TagUser.findAll(By(TagUser.tag, this), In(TagUser.user, User.id,
OrderBy(User.followers_count, Descending), MaxRows[User](10)))
On Mon, Jan 4, 2010 at 11:10 PM, Mads Hartmann
Sure thing, it's quite long though :)
Just one thing, i added the following for it to compile (I want to
return List[User] not List[TagUser] : .map(_.user.obj.open_!)
So in all it looks like this
def getTopUsers(in: Int) :List[User] = {
TagUser.findAll(By(TagUser.tag, this.id),
I've got this in my pom.xml
dependency
groupIdnet.liftweb/groupId
artifactIdlift-core/artifactId
version1.0/version
/dependency
On Jan 5, 8:54 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Tue, Jan 5, 2010 at 11:51 AM, Mads Hartmann mads...@gmail.com wrote:
On Tue, Jan 5, 2010 at 12:10 PM, Mads Hartmann mads...@gmail.com wrote:
I've got this in my pom.xml
dependency
groupIdnet.liftweb/groupId
artifactIdlift-core/artifactId
version1.0/version
/dependency
Ah hah!
I'd strongly recommend you upgrade to Lift 1.1-M8. It's
It looks like you probably have some other dependencies somewhere or
old jars pointing to the old lift version.
Please first try mvn clean jetty:run, and if that doesn't work, run
mvn dependency:tree to try and find where the other version of lift-
webkit is coming from. If you're still
My ultimate goal would be to only pull out the top x users. I'm
currently using the following code to achieve this:
TagUser.findAll(By(TagUser.tag, this.id)).map(_.user.obj.open_!)
.sort(_.followers_count.is _.followers_count.is)
.take(x)
But im concerned that this creates
18 matches
Mail list logo