[Lift] Re: SQL dumping in log?
Looks good to me ... and they have Apache license ;) Br's, Marius On Jul 23, 11:33 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Well, I'm looking at the code in DB and what we may have to do is write wrappers for Statement and PreparedStatement that would allow us to do the logging. The functions in DB mostly take user-provided functions like PreparedStatement = T, so there's no way to get at the parameters that are being provided directly. Let me noodle on this and see what I can do. We already have a SuperConnection, so I don't see a problem with a LoggingStatement and LoggingPreparedStatement. This seems common enough that there may already be a library of wrappers that we could use out there. Derek On Thu, Jul 23, 2009 at 1:23 PM, marius d. marius.dan...@gmail.com wrote: Looking a the code looks to me that the query is just a toString call for a Statement reference which won't yield what we'd expect. Just spoke with Derek about this. He'll take a look on it and eventually add this support soon enough. Br's, Marius On Jul 23, 10:01 pm, Jon jon.klei...@usit.uio.no wrote: On Jul 23, 8:56 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: marius d. marius.dan...@gmail.com writes: I'm not sure if that logs the statements with the actual values. Does it ? Strange, just tried it because I definitely remember seeing values being logged, but turns out not all statements have values logged and it seem just queries are logged. /Jeppe I tried this: DB.addLogFunc((query, len) = Log.info(The query: +query+ took +len + milliseconds)) ... and only got things like this: INFO - The query: b8450018-0122-a854-9ce5-00cde658 took 47 milliseconds Not exactly what I was interested in. ;-) /Jon --~--~-~--~~~---~--~~ 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] Did something change with the Lift repos lately?
Hi, I'm building our releases with Gradle (which uses Ivy for dependency management) and this has been working fine until a few days ago (Coincidentally, I think after Hudson was restarted which means that before July 9th things were working fine) Now it fails with this error: io problem while parsing ivy file: http://scala-tools.org/repo-snapshots/net/liftweb/lift/1.1-SNAPSHOT/lift-1.1-SNAPSHOT.pom: Resetting to invalid mark io problem while parsing ivy file: http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT.pom: Impossible to load parent for file:/Users/jeppe/.gradle/cache/net.liftweb/lift-webkit/ivy-1.1-SNAPSHOT.xml.original. Parent=net.liftweb#lift;1.1-SNAPSHOT module not found: net.liftweb#lift-webkit;1.1-SNAPSHOT This is probably an Ivy problem since upgrading Ivy resolves the issue. Unfortunately this version of Ivy doesn't work with the version of Gradle I'm using. So just wondering, did anything change in the way the snapshot repo is being generated? /Jeppe --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
Jeppe, I recently explored SBT and was really impressed by how far they have come - you can use it today, they have a lift example on their wiki. When they add code-generation (a la archetypes) then I'll make some SBT plugins for lift as its a pretty sweet all-scala system. Good luck Cheers, Tim On 24/07/2009 10:23, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, We're currently using Gradle to build our Lift app. I've used Gradle previously on a Java project and really liked it. Unfortunately, it's Scala support is just a patch against an older version, which doesn't work with the latest releases. So before I jump in and try to hack some Scala support for Gradle, I thought I would ask here. So what are good build tools for a Lift project? Maven and ant are not an option :-) Some requirements are: - Extendable which probably implies some kind of scripting support in the build file (we have all our deployment and release automation scripted) - Dependency management (ability to read Maven repos) - Multiplatform - (OS X, Windows, Linux) - Hudson integration - Ability to package war, run jetty etc. - Run specs/tests - Ability to either call Java libraries or have good libs for integration with AWS (EC2, S3 etc) - For now this is a Scala only project. I've briefly looked at buildr but didn't get it to run on OS X. Another option might be sbt, but unsure how that works? Suggestions? /Jeppe --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
Timothy Perrett timo...@getintheloop.eu writes: Jeppe, I recently explored SBT and was really impressed by how far they have come - you can use it today, they have a lift example on their wiki. How easy is it to do system automation stuff in SBT? I.e. create archives, scp them somewhere, run remote ssh commands etc? Can you use ant commands as a last resort? /Jeppe --~--~-~--~~~---~--~~ 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: todo app., Oracle: Invalid column type
Hi Derek, For me this sounds fine, but then I'm still a Lift and Scala newbie. I think the best way is just to try it. ;-) Whenever you have something that I can try, let me know. /Jon On Jul 23, 10:02 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: OK, I think that this is happening because when we use the JDBC setObject call, we explicitly send the type. As far as I can tell the Oracle driver doesn't like java.sql.Types.BOOLEAN *at all*, so I'm trying to determine the best way to compensate. I'm not sure how common something like this might be, so it might be nice to allow the net.liftweb.mapper.Driver class to provide a partial function that allows the vendor-specific driver to remap the type. I would add something like: abstract class DriverType ... { def columnTypeRemapper : PartialFunction[Int,Int] = { case x = x } } and then in the Oracle Driver: object OracleDriver extends ... { override def columnTypeRemapper = { case java.sql.Types.BOOLEAN = java.sql.Types.INTEGER } ... } Thoughts? Derek --~--~-~--~~~---~--~~ 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: SQL dumping in log?
You might want to look at how p6spy do things. From memory they supply a proxy jdbc driver that delegates to the actual driver to do the work. -- Ewan On Jul 23, 9:33 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Well, I'm looking at the code in DB and what we may have to do is write wrappers for Statement and PreparedStatement that would allow us to do the logging. The functions in DB mostly take user-provided functions like PreparedStatement = T, so there's no way to get at the parameters that are being provided directly. Let me noodle on this and see what I can do. We already have a SuperConnection, so I don't see a problem with a LoggingStatement and LoggingPreparedStatement. This seems common enough that there may already be a library of wrappers that we could use out there. Derek On Thu, Jul 23, 2009 at 1:23 PM, marius d. marius.dan...@gmail.com wrote: Looking a the code looks to me that the query is just a toString call for a Statement reference which won't yield what we'd expect. Just spoke with Derek about this. He'll take a look on it and eventually add this support soon enough. Br's, Marius On Jul 23, 10:01 pm, Jon jon.klei...@usit.uio.no wrote: On Jul 23, 8:56 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: marius d. marius.dan...@gmail.com writes: I'm not sure if that logs the statements with the actual values. Does it ? Strange, just tried it because I definitely remember seeing values being logged, but turns out not all statements have values logged and it seem just queries are logged. /Jeppe I tried this: DB.addLogFunc((query, len) = Log.info(The query: +query+ took +len + milliseconds)) ... and only got things like this: INFO - The query: b8450018-0122-a854-9ce5-00cde658 took 47 milliseconds Not exactly what I was interested in. ;-) /Jon --~--~-~--~~~---~--~~ 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: SQL dumping in log?
Logging works ok with MySQL but not Derby as I discovered when moving to MySQL when playing with stax. -- Ewan On Jul 23, 11:27 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Jon jon.klei...@usit.uio.no writes: On Jul 23, 8:56 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: marius d. marius.dan...@gmail.com writes: I'm not sure if that logs the statements with the actual values. Does it ? Strange, just tried it because I definitely remember seeing values being logged, but turns out not all statements have values logged and it seem just queries are logged. /Jeppe I tried this: DB.addLogFunc((query, len) = Log.info(The query: +query+ took +len + milliseconds)) ... and only got things like this: INFO - The query: b8450018-0122-a854-9ce5-00cde658 took 47 milliseconds Not exactly what I was interested in. ;-) Strange...On 1.1-SNAPSHOT I use essentially the same and get this: DB.addLogFunc ((q, t) = Log.info(Query(+t+): +q)) INFO - Query(46): SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.uniqueid, users.superuser, users.validated FROM users WHERE email = demou...@xx.yy INFO - Query(66): SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.uniqueid, users.superuser, users.validated FROM users WHERE email = ? /Jeppe --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
They have a pretty extensive plugin architecture so its my understanding you can just write scala to do whatever you want... http://code.google.com/p/simple-build-tool/wiki/SbtPlugins Checkout n8han's dbDispath - it uses SBT so might give you more of a feel how it can work: http://databinder.net/dispatch/About Cheers, Tim On 24/07/2009 10:57, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: How easy is it to do system automation stuff in SBT? I.e. create archives, scp them somewhere, run remote ssh commands etc? Can you use ant commands as a last resort? --~--~-~--~~~---~--~~ 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: SQL dumping in log?
With Lift 1.0 and my tiny test app. against Oracle, and this: DB.addLogFunc ((q, t) = Log.info(Query(+t+): +q)) ... I get this: INFO - Query(73): oracle.jdbc.driver.t4cpreparedstatem...@10b868 INFO - Query(241): oracle.jdbc.driver.t4cpreparedstatem...@10b868 INFO - Service request (GET) /showPersons took 1418 Milliseconds /Jon On Jul 24, 12:27 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: ... Strange...On 1.1-SNAPSHOT I use essentially the same and get this: DB.addLogFunc ((q, t) = Log.info(Query(+t+): +q)) INFO - Query(46): SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.uniqueid, users.superuser, users.validated FROM users WHERE email = demou...@xx.yy INFO - Query(66): SELECT users.id, users.firstname, users.lastname, users.email, users.locale, users.timezone, users.password_pw, users.password_slt, users.account_id, users.uniqueid, users.superuser, users.validated FROM users WHERE email = ? /Jeppe --~--~-~--~~~---~--~~ 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: SQL dumping in log?
Jon jon.klei...@usit.uio.no writes: With Lift 1.0 and my tiny test app. against Oracle, and this: DB.addLogFunc ((q, t) = Log.info(Query(+t+): +q)) ... I get this: INFO - Query(73): oracle.jdbc.driver.t4cpreparedstatem...@10b868 INFO - Query(241): oracle.jdbc.driver.t4cpreparedstatem...@10b868 INFO - Service request (GET) /showPersons took 1418 Milliseconds /Jon Don't know if this is a difference between Lift 1.0 and 1.1 or between JDBC drivers. My guess is it's the latter. I'm using Postgres /Jeppe --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
I hate pom.xml and prefer something like rake,scala code best. On Jul 24, 5:23 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, We're currently using Gradle to build our Lift app. I've used Gradle previously on a Java project and really liked it. Unfortunately, it's Scala support is just a patch against an older version, which doesn't work with the latest releases. So before I jump in and try to hack some Scala support for Gradle, I thought I would ask here. So what are good build tools for a Lift project? Maven and ant are not an option :-) Some requirements are: - Extendable which probably implies some kind of scripting support in the build file (we have all our deployment and release automation scripted) - Dependency management (ability to read Maven repos) - Multiplatform - (OS X, Windows, Linux) - Hudson integration - Ability to package war, run jetty etc. - Run specs/tests - Ability to either call Java libraries or have good libs for integration with AWS (EC2, S3 etc) - For now this is a Scala only project. I've briefly looked at buildr but didn't get it to run on OS X. Another option might be sbt, but unsure how that works? Suggestions? /Jeppe --~--~-~--~~~---~--~~ 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: Did something change with the Lift repos lately?
Jeppe, Nothing has changed. Josh was noodling with upgrading to the latest version of Hudson, but I don't believe he's actually upgraded. Thanks, David On Fri, Jul 24, 2009 at 1:59 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I'm building our releases with Gradle (which uses Ivy for dependency management) and this has been working fine until a few days ago (Coincidentally, I think after Hudson was restarted which means that before July 9th things were working fine) Now it fails with this error: io problem while parsing ivy file: http://scala-tools.org/repo-snapshots/net/liftweb/lift/1.1-SNAPSHOT/lift-1.1-SNAPSHOT.pom: Resetting to invalid mark io problem while parsing ivy file: http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT.pom: Impossible to load parent for file:/Users/jeppe/.gradle/cache/net.liftweb/lift-webkit/ivy-1.1-SNAPSHOT.xml.original. Parent=net.liftweb#lift;1.1-SNAPSHOT module not found: net.liftweb#lift-webkit;1.1-SNAPSHOT This is probably an Ivy problem since upgrading Ivy resolves the issue. Unfortunately this version of Ivy doesn't work with the version of Gradle I'm using. So just wondering, did anything change in the way the snapshot repo is being generated? /Jeppe -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
if what you dislike in pom, it's the xml (like me) try yaml ( http://wiki.github.com/mrdon/maven-yamlpom-plugin) ;) On Fri, Jul 24, 2009 at 14:10, night_stalker usur...@gmail.com wrote: I hate pom.xml and prefer something like rake,scala code best. On Jul 24, 5:23 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, We're currently using Gradle to build our Lift app. I've used Gradle previously on a Java project and really liked it. Unfortunately, it's Scala support is just a patch against an older version, which doesn't work with the latest releases. So before I jump in and try to hack some Scala support for Gradle, I thought I would ask here. So what are good build tools for a Lift project? Maven and ant are not an option :-) Some requirements are: - Extendable which probably implies some kind of scripting support in the build file (we have all our deployment and release automation scripted) - Dependency management (ability to read Maven repos) - Multiplatform - (OS X, Windows, Linux) - Hudson integration - Ability to package war, run jetty etc. - Run specs/tests - Ability to either call Java libraries or have good libs for integration with AWS (EC2, S3 etc) - For now this is a Scala only project. I've briefly looked at buildr but didn't get it to run on OS X. Another option might be sbt, but unsure how that works? Suggestions? /Jeppe --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
Wow great tip david! Its for reasons like this that you are the maven master ;-) Cheers, Tim On 24/07/2009 13:39, David Bernard david.bernard...@gmail.com wrote: if what you dislike in pom, it's the xml (like me) try yaml (http://wiki.github.com/mrdon/maven-yamlpom-plugin) ;) --~--~-~--~~~---~--~~ 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: todo app., Oracle: Invalid column type
If I built a special branch to test this out would you be OK with pulling and building that yourself? Otherwise I can build it and send you the jars. Thanks, Derek On Thu, Jul 23, 2009 at 11:24 PM, Jon jon.klei...@usit.uio.no wrote: Hi Derek, For me this sounds fine, but then I'm still a Lift and Scala newbie. I think the best way is just to try it. ;-) Whenever you have something that I can try, let me know. /Jon On Jul 23, 10:02 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: OK, I think that this is happening because when we use the JDBC setObject call, we explicitly send the type. As far as I can tell the Oracle driver doesn't like java.sql.Types.BOOLEAN *at all*, so I'm trying to determine the best way to compensate. I'm not sure how common something like this might be, so it might be nice to allow the net.liftweb.mapper.Driver class to provide a partial function that allows the vendor-specific driver to remap the type. I would add something like: abstract class DriverType ... { def columnTypeRemapper : PartialFunction[Int,Int] = { case x = x } } and then in the Oracle Driver: object OracleDriver extends ... { override def columnTypeRemapper = { case java.sql.Types.BOOLEAN = java.sql.Types.INTEGER } ... } Thoughts? Derek --~--~-~--~~~---~--~~ 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: SQL dumping in log?
It's JDBC drivers. Essentially, we're calling toString on the PreparedStatement object. Different vendors do different things, since there's nothing in the spec about toString behavior. The advantage to using something like log4jdbc (or p6spy, haven't looked at that one) is that they will log the exact data that's being sent and received from the DB with zero changes to your code. Derek On Fri, Jul 24, 2009 at 5:46 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Jon jon.klei...@usit.uio.no writes: With Lift 1.0 and my tiny test app. against Oracle, and this: DB.addLogFunc ((q, t) = Log.info(Query(+t+): +q)) ... I get this: INFO - Query(73): oracle.jdbc.driver.t4cpreparedstatem...@10b868 INFO - Query(241): oracle.jdbc.driver.t4cpreparedstatem...@10b868 INFO - Service request (GET) /showPersons took 1418 Milliseconds /Jon Don't know if this is a difference between Lift 1.0 and 1.1 or between JDBC drivers. My guess is it's the latter. I'm using Postgres /Jeppe --~--~-~--~~~---~--~~ 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: todo app., Oracle: Invalid column type
I should be able to do the pulling and building myself, but a few directions on how to do it will be necessary. The pulling/building I can try quite soon, but the actual testing may have to wait a few days. (I'll let you know.) /Jon On Jul 24, 3:41 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: If I built a special branch to test this out would you be OK with pulling and building that yourself? Otherwise I can build it and send you the jars. Thanks, Derek On Thu, Jul 23, 2009 at 11:24 PM, Jon jon.klei...@usit.uio.no wrote: Hi Derek, For me this sounds fine, but then I'm still a Lift and Scala newbie. I think the best way is just to try it. ;-) Whenever you have something that I can try, let me know. /Jon On Jul 23, 10:02 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: OK, I think that this is happening because when we use the JDBC setObject call, we explicitly send the type. As far as I can tell the Oracle driver doesn't like java.sql.Types.BOOLEAN *at all*, so I'm trying to determine the best way to compensate. I'm not sure how common something like this might be, so it might be nice to allow the net.liftweb.mapper.Driver class to provide a partial function that allows the vendor-specific driver to remap the type. I would add something like: abstract class DriverType ... { def columnTypeRemapper : PartialFunction[Int,Int] = { case x = x } } and then in the Oracle Driver: object OracleDriver extends ... { override def columnTypeRemapper = { case java.sql.Types.BOOLEAN = java.sql.Types.INTEGER } ... } Thoughts? Derek --~--~-~--~~~---~--~~ 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: JavaRebel has expired
http://groups.google.com/group/liftweb/browse_thread/thread/ca49bc9657726c36/535b8db8c794f6ac?hl=enlnk=gstq=javarebel#535b8db8c794f6ac On Jul 24, 11:04 am, ess friedrich.es...@gmail.com wrote: Well, if I start maven, I get the following expired-message mvn archetype:create -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=1.0 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=net.liftweb.hello -DartifactId=hello-lift ## ZeroTurnaround JavaRebel 1.2.2 (200812021546) (c) Copyright Webmedia, Ltd, 2007, 2008. All rights reserved. YOUR JAVAREBEL LIMITED LICENSE HAS EXPIRED! This product is licensed to Scala Community until July 1, 2009 for unlimited number of developer seats on site. With the following restrictions: For use with Scala only ## --~--~-~--~~~---~--~~ 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: JavaRebel has expired
Thanks Ty, you beat me too it. I've sent new installers for DPP to put up onto scala-tools, when he does that, this issue will go away forever. Thanks Tim On Jul 24, 4:05 pm, TylerWeir tyler.w...@gmail.com wrote: http://groups.google.com/group/liftweb/browse_thread/thread/ca49bc965... On Jul 24, 11:04 am, ess friedrich.es...@gmail.com wrote: Well, if I start maven, I get the following expired-message mvn archetype:create -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=1.0 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=net.liftweb.hello -DartifactId=hello-lift ## ZeroTurnaround JavaRebel 1.2.2 (200812021546) (c) Copyright Webmedia, Ltd, 2007, 2008. All rights reserved. YOUR JAVAREBEL LIMITED LICENSE HAS EXPIRED! This product is licensed to Scala Community until July 1, 2009 for unlimited number of developer seats on site. With the following restrictions: For use with Scala only ## --~--~-~--~~~---~--~~ 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] JavaRebel has expired
Well, if I start maven, I get the following expired-message mvn archetype:create -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=1.0\ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=net.liftweb.hello -DartifactId=hello-lift ## ZeroTurnaround JavaRebel 1.2.2 (200812021546) (c) Copyright Webmedia, Ltd, 2007, 2008. All rights reserved. YOUR JAVAREBEL LIMITED LICENSE HAS EXPIRED! This product is licensed to Scala Community until July 1, 2009 for unlimited number of developer seats on site. With the following restrictions: For use with Scala only ## --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
I haven't tried running buildr on OSX, but did you try using buildr with jruby instead of ruby? Buildr with CRuby has to rely on a C library rjb, which I wouldn't trust to work as well as jruby and from what I've seen only reliably works with Java 1.5. The latest JRuby just added nailgun support too, which, though I haven't tried it, is supposed to reduce the start time of JRuby significantly enough to make it viable for rapid command line use. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Lift + Scala 2.8 (Was: Re: [Lift] Re: Is there any eclipse setup that actually works for lift?)
No, sorry. I haven't spent any more time on this. --j On Thu, Jul 23, 2009 at 10:13 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Any update on this? On Mon, Jun 22, 2009 at 10:55 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jun 22, 2009 at 7:51 PM, Jorge Ortiz jorge.or...@gmail.comwrote: I just spent all afternoon trying to get stuff to compile with Scala 2.8. Since Lift depends on Specs, and Specs depends on Scalacheck, I started trying to port Scalacheck to 2.8 so I could port Specs to 2.8 so I could port Lift. It was unable to get Scalacheck to compile due to bugs which cause the compiler to choke and throw an exception. Apparently both paulp and Iulian have tried to compile Scalacheck with 2.8 before and failed. Giving up on Specs and Scalacheck, I decided to try to compile Lift (sans tests) with 2.8. After fixing some of the breaking changes that 2.8 introduces, I again ran into compiler troubles. In principle, with a lot of sleuthing I could figure out what code is causing the compiler to choke and give the compiler more type hints or whatever. Unfortunately this requires more work than I can put in today. Conclusion: 2.8 is basically unusable right now. (I'll check in my progress to GitHub later tonight or tomorrow.) Thanks for your hard work! --j On Mon, Jun 22, 2009 at 11:35 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jun 22, 2009 at 11:25 AM, Ellis ellis.whiteh...@gmail.comwrote: Hello David, Thanks for your reply. Do you know whether lift *should* work with scala 2.8 when we pull it from the maven repositories? Lift currently only works with Scala 2.7.4. You can use Eclipse and 2.7.5 to edit Lift files, but Lift must be deployed against 2.7.4. We will have a branch of Lift (Jorge... you got this running yet) building against 2.8, but it will be experimental. I have experienced a fair number of suboptimalities with Lift and Eclipse in the last 3 weeks with the 2.7.5 stable plugin. I have had success recently with NetBeans, IntelliJ, and emacs. If so, then I'll try deleting my ~/.m2 as Tim suggested. Thanks, Ellis On Jun 22, 8:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Ellis, Miles will be back online in a few days, but I suspect that the answer is that the 2.8 plugin is the new generation and the 2.7.5 stuff is going to have bugs. :-( Sorry. David On Mon, Jun 22, 2009 at 11:08 AM, Ellis ellis.whiteh...@gmail.com wrote: Hello everyone, Does anyone have a setup for eclipse that works like it should? By like it should, I mostly mean that the scala plugin doesn't crash regularly AND it works with lift/maven. If so, which versions of which plugins are you using? The nightly build of the scala plugin seems to work better than 2.7.4/2.7.5 in some ways, but I couldn't get it working with lift/ maven due to signature differences between the scala libraries. Best regards, Ellis -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Lift + Scala 2.8 (Was: Re: [Lift] Re: Is there any eclipse setup that actually works for lift?)
The reason I asked is that paulp recently said he was going to try again to get scalacheck to work. - Jorge Ortizjorge.or...@gmail.com wrote: No, sorry. I haven't spent any more time on this. --j On Thu, Jul 23, 2009 at 10:13 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Any update on this? On Mon, Jun 22, 2009 at 10:55 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jun 22, 2009 at 7:51 PM, Jorge Ortiz jorge.or...@gmail.comwrote: I just spent all afternoon trying to get stuff to compile with Scala 2.8. Since Lift depends on Specs, and Specs depends on Scalacheck, I started trying to port Scalacheck to 2.8 so I could port Specs to 2.8 so I could port Lift. It was unable to get Scalacheck to compile due to bugs which cause the compiler to choke and throw an exception. Apparently both paulp and Iulian have tried to compile Scalacheck with 2.8 before and failed. Giving up on Specs and Scalacheck, I decided to try to compile Lift (sans tests) with 2.8. After fixing some of the breaking changes that 2.8 introduces, I again ran into compiler troubles. In principle, with a lot of sleuthing I could figure out what code is causing the compiler to choke and give the compiler more type hints or whatever. Unfortunately this requires more work than I can put in today. Conclusion: 2.8 is basically unusable right now. (I'll check in my progress to GitHub later tonight or tomorrow.) Thanks for your hard work! --j On Mon, Jun 22, 2009 at 11:35 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jun 22, 2009 at 11:25 AM, Ellis ellis.whiteh...@gmail.comwrote: Hello David, Thanks for your reply. Do you know whether lift *should* work with scala 2.8 when we pull it from the maven repositories? Lift currently only works with Scala 2.7.4. You can use Eclipse and 2.7.5 to edit Lift files, but Lift must be deployed against 2.7.4. We will have a branch of Lift (Jorge... you got this running yet) building against 2.8, but it will be experimental. I have experienced a fair number of suboptimalities with Lift and Eclipse in the last 3 weeks with the 2.7.5 stable plugin. I have had success recently with NetBeans, IntelliJ, and emacs. If so, then I'll try deleting my ~/.m2 as Tim suggested. Thanks, Ellis On Jun 22, 8:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Ellis, Miles will be back online in a few days, but I suspect that the answer is that the 2.8 plugin is the new generation and the 2.7.5 stuff is going to have bugs. :-( Sorry. David On Mon, Jun 22, 2009 at 11:08 AM, Ellis ellis.whiteh...@gmail.com wrote: Hello everyone, Does anyone have a setup for eclipse that works like it should? By like it should, I mostly mean that the scala plugin doesn't crash regularly AND it works with lift/maven. If so, which versions of which plugins are you using? The nightly build of the scala plugin seems to work better than 2.7.4/2.7.5 in some ways, but I couldn't get it working with lift/ maven due to signature differences between the scala libraries. Best regards, Ellis -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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] Realtime integration of YUI and jQuery Widgets
I've just read the following on Dave Pollak's Blog: YUI and jQuery are Lift's out-of-the-box libraries; my question now is: Are all those YUI and jQuery Widgets integrated with Lift's realtime capabilities ? Which means: - They can be bound to data changing in realtime - They update their display automatically to changes occurring in the data they are bound to - Data Editing operations with such data-bound data is automatically synchronized with the bound data ... --~--~-~--~~~---~--~~ 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: Realtime integration of YUI and jQuery Widgets
On Jul 24, 11:02 pm, verlsnake kaitisch...@kaitischler.name wrote: I've just read the following on Dave Pollak's Blog: YUI and jQuery are Lift's out-of-the-box libraries; my question now is: Are all those YUI and jQuery Widgets integrated with Lift's realtime capabilities ? No not at all. For YUI we just provide the minimum support so that Lift application (ajax, comet etc) would work correctly. For JQuery we provide lots of abstractions as JsCmd, JsExp etc.We integrate some JQuery widgets as lift widgets by lift-widgets project. However you can virtually use any JQuery or YUI widget in your lift app. Which means: - They can be bound to data changing in realtime What do you mean by real time here? - They update their display automatically to changes occurring in the data they are bound to Please take a look on lift-widgets project. - Data Editing operations with such data-bound data is automatically synchronized with the bound data ... Please take a look on lift-widgets project. However please provide some concrete examples and see how we can help you. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---