[Lift] Solr (or external API), curl, scala dispatch library, Quartz scheduling questions

2010-01-25 Thread Strom
Hey all,
I'm planning on using solr for a web project that I'm doing, and I was
wondering if anyone had experience with using Solr or communicating
with another external xml api? I've got a few questions.

1. What is the most straightforward way to POST to an external url?
I'm going to be sending Solr server XML commands to index and commit
data for search within my app, and I've seen people discuss Scala's
Dispatch library, but I'm not exactly sure what its strengths are or
if I should use it over apache http library or curl.

2. Would it be safe to say that this use case (sending POSTs to an
external URL asynchronously) is a good thing for Lift's actors to
handle? I'm very green to the concept of actors, so I'm trying to find
when it's best to use them.

3. I'm planning on doing a monthly rebuild of the index (or possibly
some other timespan tbd), and I've read that Quartz is good for
scheduling. Is there documentation I can read for information on how
to integrate this Java library (or any java library for that matter)
into my lift app and use it?

Thanks!
Strom

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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: Welcome Jeppe to the Lift committers

2010-01-25 Thread Marius
Welcome Jeppe !

On Jan 25, 9:26 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
 On Fri, Jan 22, 2010 at 5:25 PM, David Pollak

 feeder.of.the.be...@gmail.com wrote:
  Folks,

  Please join me in welcoming Jeppe as a Lift Committer.  He's been helping
  people on the Lift list and contributing his thoughts to the Lift community
  for a while... now it's time for him to contribute code to Lift.
  Hooorraaayyy!

 Thanks. It has been a great pleasure working with the Lift community
 for the past months. You rock! Hopefully, I'll be able to give
 something back now :-)

 Initially, I'll have a look 
 athttp://github.com/dpp/liftweb/issues#issue/155since it will shave a
 few lines off my project.

 Afterwards, I need (in my dayjob) better form handling, so I'll
 probably see if there's a way to unify the Mapper/Record/Wizard/*
 stuff into something a little more composable.

 Another Idea I've been thinking about (mostly because it could be fun)
 is better handling of semi static resources (mostly css  javascript)
 in order to minimize the number of requests while still getting the
 latest version

 /Jeppe

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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: Welcome Jeppe to the Lift committers

2010-01-25 Thread Mads Hartmann
Velkommen til Jeppe
Even though you've been part of the Lift community longer than me I'll
welcome you anyway ;)

Mads

On Jan 25, 9:47 am, Marius marius.dan...@gmail.com wrote:
 Welcome Jeppe !

 On Jan 25, 9:26 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:



  On Fri, Jan 22, 2010 at 5:25 PM, David Pollak

  feeder.of.the.be...@gmail.com wrote:
   Folks,

   Please join me in welcoming Jeppe as a Lift Committer.  He's been helping
   people on the Lift list and contributing his thoughts to the Lift 
   community
   for a while... now it's time for him to contribute code to Lift.
   Hooorraaayyy!

  Thanks. It has been a great pleasure working with the Lift community
  for the past months. You rock! Hopefully, I'll be able to give
  something back now :-)

  Initially, I'll have a look 
  athttp://github.com/dpp/liftweb/issues#issue/155sinceit will shave a
  few lines off my project.

  Afterwards, I need (in my dayjob) better form handling, so I'll
  probably see if there's a way to unify the Mapper/Record/Wizard/*
  stuff into something a little more composable.

  Another Idea I've been thinking about (mostly because it could be fun)
  is better handling of semi static resources (mostly css  javascript)
  in order to minimize the number of requests while still getting the
  latest version

  /Jeppe

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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] Best way to integrate custom lift version in workflow?

2010-01-25 Thread Jeppe Nejsum Madsen
Hi,

Now that I'm able to commit code into Lift (evil grin :-) I would like
to adapt a workflow that works for me. I think I'll be more productive
if I can hack Lift together alongside my project and not have to
switch context all the time.

I've previously added some of the lift modules (e.g mapper) to my
eclipse workspace when I needed to try out something and this seem to
work for local development.

But I need the changes I make to Lift to be picked up by my
colleagues, our CI server etc before they make it into Lift master. I
see two ways to solve this:

1) I build Lift locally and stuff the jars into a maven repo
somewhere. Problem: This maven repo should be globally accessible on
the net somewhere. Can you host a maven repo on github? Can Lift be
deployed there?

2) I add the Lift modules of interest to our own repo (which is in
svn) and include it in our build. This may be a little awkward when
changing Lift branches etc. but it looks doable...

Any hints or suggestions?

/Jeppe

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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] showing user form on home page

2010-01-25 Thread brotherhb hamdan
On Sun, Jan 24, 2010 at 2:00 AM, harmanjd harma...@gmail.com wrote:
 I am using the MetaMegaProtoUser user (from the basic archetype) and
 would like to change the home page to show the user form on the home
 page if the user isn't logged in.

 So the logic should be -

 if user logged in -  show link to preferences
 else -  show login form


 I've looked at the code in in MetaMegaProtoUser and found the
 loginXhtml and login functions and I tried doing this in the
 index.html page just to show the form..

 lift:user.login/

 Which didn't work.  That is as far as I got.  I guess I don't
 understand the snippet stuff that well. :)


 What approach should I take to acheive my goal here?
 Can the login method be used to display the form (it seems to be used
 on the user_mgt/login page) on other pages?


 Thanks,
 James


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



-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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] Best way to integrate custom lift version in workflow?

2010-01-25 Thread Indrajit Raychaudhuri

Jeppe,

How about:

-- Fork http://github.com/dpp/liftweb to 
http://github.com/jeppenejsum/liftweb and maintaining on your own with 
frequent git pull dpp master


-- Deploy your artifacts to an internal server (all that you need is an 
http server where you can 'deploy' the artifact via webdav/ssh etc.)


-- Use mirror settings for scala-tools.org 
(http://maven.apache.org/guides/mini/guide-mirror-settings.html) 
pointing to the intenal server set up above OR keep a modified 
resources/lift-parent/pom.xml in your forked repo 
(http://github.com/jeppenejsum/liftweb) with customized server location.


Cheers, Indrajit

On 25/01/10 4:27 PM, Jeppe Nejsum Madsen wrote:

Hi,

Now that I'm able to commit code into Lift (evil grin :-) I would like
to adapt a workflow that works for me. I think I'll be more productive
if I can hack Lift together alongside my project and not have to
switch context all the time.

I've previously added some of the lift modules (e.g mapper) to my
eclipse workspace when I needed to try out something and this seem to
work for local development.

But I need the changes I make to Lift to be picked up by my
colleagues, our CI server etc before they make it into Lift master. I
see two ways to solve this:

1) I build Lift locally and stuff the jars into a maven repo
somewhere. Problem: This maven repo should be globally accessible on
the net somewhere. Can you host a maven repo on github? Can Lift be
deployed there?

2) I add the Lift modules of interest to our own repo (which is in
svn) and include it in our build. This may be a little awkward when
changing Lift branches etc. but it looks doable...

Any hints or suggestions?

/Jeppe



--
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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] HTML table links

2010-01-25 Thread Lukasz Kuczera
Hi Folks.
I'm Lift newbe so please be patient :)
I've tried to implement table in master-detail fashion. In template I
have something like:

table cellpadding=7px title=User summary
thFirst Name/th
thLast Name/th
thHours Summary/th
thWage/th
lift:Users.list
tr onmouseover=this.bgColor='#ee';
onmouseout=this.bgColor='#FF';
onclick=window.location 
='URL_TO_USER_DETAILS';
tdu:fname //td
tdu:lname //td
tdu:hours //td
tdu:money //td
/tr
/lift:Users.list
/table

What I want to achieve is that users clicks on table row and gets
redirected to details about selected row (user in this case). I would
like to implement this in View First pattern so i thought about
replacing 'onclick' attribute inside Users.list method but I don't
know the easy way to do this. The naive way would be using regular
expressions, but i've got feeling that i'm reinventing wheel here.
Please help.

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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] Best way to integrate custom lift version in workflow?

2010-01-25 Thread Jeppe Nejsum Madsen
On Mon, Jan 25, 2010 at 4:17 PM, Indrajit Raychaudhuri
indraj...@gmail.com wrote:

 -- Deploy your artifacts to an internal server (all that you need is an http
 server where you can 'deploy' the artifact via webdav/ssh etc.)

This is the step I would like to avoid :-) We don't currently have any
internal servers, everything is hosted somewhere else. It seems like
overkill to start a new EC2 instance just to be able to host a maven
repo.

I found this, which seems like it may work:

http://technital.blogspot.com/2007/11/maven-repository-on-s3.html

/Jeppe

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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] Best way to integrate custom lift version in workflow?

2010-01-25 Thread David Pollak
This seems like a job for a start-up like MavenHub... custom Maven/Nexus
hosting in the sky.

On Mon, Jan 25, 2010 at 7:56 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:

 On Mon, Jan 25, 2010 at 4:17 PM, Indrajit Raychaudhuri
 indraj...@gmail.com wrote:

  -- Deploy your artifacts to an internal server (all that you need is an
 http
  server where you can 'deploy' the artifact via webdav/ssh etc.)

 This is the step I would like to avoid :-) We don't currently have any
 internal servers, everything is hosted somewhere else. It seems like
 overkill to start a new EC2 instance just to be able to host a maven
 repo.

 I found this, which seems like it may work:

 http://technital.blogspot.com/2007/11/maven-repository-on-s3.html

 /Jeppe

 --
 You received this message because you are subscribed to the Google Groups
 Lift group.
 To post to this group, send email to lift...@googlegroups.com.
 To unsubscribe from this group, send email to
 liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/liftweb?hl=en.




-- 
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 lift...@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] HTML table links

2010-01-25 Thread Adam Warski
Hello,

   table cellpadding=7px title=User summary
   thFirst Name/th
   thLast Name/th
   thHours Summary/th
   thWage/th
   lift:Users.list
   tr onmouseover=this.bgColor='#ee';
 onmouseout=this.bgColor='#FF';
   onclick=window.location 
 ='URL_TO_USER_DETAILS';
   tdu:fname //td
   tdu:lname //td
   tdu:hours //td
   tdu:money //td
   /tr
   /lift:Users.list
   /table
 
 What I want to achieve is that users clicks on table row and gets
 redirected to details about selected row (user in this case). I would
 like to implement this in View First pattern so i thought about
 replacing 'onclick' attribute inside Users.list method but I don't
 know the easy way to do this. The naive way would be using regular
 expressions, but i've got feeling that i'm reinventing wheel here.
 Please help.

There are several ways to do it.

I think the easiest one is to bind the view link to a SHtml.link, something 
like:

users.flatMap { user =
bind(..., ..., view - link(view.html, () = SelectedUser(user), 
Text(View user)) }

where view.html is a template where you can view the user, SelectedUser is a 
RequestVar that holds the selection after you've clicked.
You will also need to add the view.html to your sitemap.

If you want a persistent URL for viewing users, you can add a rewrite rule.

The use-case you are writing about is quite well described in the lift book 
(available in pdf for free), so I would also recommend looking there.

-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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: What happens between 7000 and 8000 requests?

2010-01-25 Thread Stefan Koenig
Yes indeed. I have an plus of ~317%. Thanks again.

On Jan 21, 3:34 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
 On Thu, Jan 21, 2010 at 6:25 AM, Stefan Koenig koeni...@gmail.com wrote:
  First of all thanks for the replies. Your comments made a lot of
  sense, so I tested again using a cookie jsessionid and voilà no
  problems anymore even running more than 100,000 requests in a row now.
  Also the failed requests are gone.

 And is Lift still much faster?







  Thanks again.
  Stefan Koenig

  On Jan 21, 5:16 am, Derek Williams de...@nebvin.ca wrote:
   Okay, I tried it out. jsessionid is sometimes 12 or 13 characters long
   which is why the document length is changing. Those failures due to
   length are probably safe to ignore.

   On Wed, Jan 20, 2010 at 6:00 PM, Derek Williams de...@nebvin.ca wrote:
I could be wrong here, but I think the failed requests might be due to
  the
jsessionid that jetty adds onto the links, they may be different sizes.
  I am
away from my computer right now and can't test it though.

   --
   Derek Williams

  --
  You received this message because you are subscribed to the Google Groups
  Lift group.
  To post to this group, send email to lift...@googlegroups.com.
  To unsubscribe from this group, send email to
  liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com 
  
  .
  For more options, visit this group at
 http://groups.google.com/group/liftweb?hl=en.

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://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 lift...@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] Best way to integrate custom lift version in workflow?

2010-01-25 Thread David Bernard
Jeppe, in your case, the repository could simply be :
* a SMB/ftp/file system shared directory
* a directory staticly served by a http server
* or a (not so complicate) nexus server with default configuration.

On Mon, Jan 25, 2010 at 16:59, David Pollak
feeder.of.the.be...@gmail.com wrote:
 This seems like a job for a start-up like MavenHub... custom Maven/Nexus
 hosting in the sky.

Strange that Sonatype don't provide this service.


/davidB


 On Mon, Jan 25, 2010 at 7:56 AM, Jeppe Nejsum Madsen je...@ingolfs.dk
 wrote:

 On Mon, Jan 25, 2010 at 4:17 PM, Indrajit Raychaudhuri
 indraj...@gmail.com wrote:

  -- Deploy your artifacts to an internal server (all that you need is an
  http
  server where you can 'deploy' the artifact via webdav/ssh etc.)

 This is the step I would like to avoid :-) We don't currently have any
 internal servers, everything is hosted somewhere else. It seems like
 overkill to start a new EC2 instance just to be able to host a maven
 repo.

 I found this, which seems like it may work:

 http://technital.blogspot.com/2007/11/maven-repository-on-s3.html

 /Jeppe

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


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

2010-01-25 Thread Naftoli Gugenheim
I built a local branch and tried building based on it, and got an error.
Here's the output:


Cc:\dev\workspace\lrbcol-liftmvn -o -e clean compile
+ Error stacktraces are turned on.
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in your
local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO]

[INFO] Building lrbcol
[INFO]task-segment: [clean, compile]
[INFO]

[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory c:\dev\workspace\lrbcol-lift\target
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: null:framework:pom:null

Reason: Cannot find parent: net.liftweb:lift-parent for project:
null:framework:pom:null for project null:framework:pom
:null


[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
dependency information: Unable to read the metada
ta file for artifact 'net.liftweb:lift-mapper:jar': Cannot find parent:
net.liftweb:lift-parent for project: null:frame
work:pom:null for project null:framework:pom:null
  net.liftweb:lift-mapper:jar:2.0-SNAPSHOT

from the specified remote repositories:
  scala-tools.org (http://scala-tools.org/repo-releases),
  central (http://repo1.maven.org/maven2),
  scala-tools.org.snapshots (http://scala-tools.org/repo-snapshots)

Path to dependency:
1) org.lrbcol:lrbcol-disp:war:1.0-SNAPSHOT


at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:5
56)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.ja
va:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
Unable to get dependency information: Unable
 to read the metadata file for artifact 'net.liftweb:lift-mapper:jar':
Cannot find parent: net.liftweb:lift-parent for
project: null:framework:pom:null for project null:framework:pom:null
  net.liftweb:lift-mapper:jar:2.0-SNAPSHOT

from the specified remote repositories:
  scala-tools.org (http://scala-tools.org/repo-releases),
  central (http://repo1.maven.org/maven2),
  scala-tools.org.snapshots (http://scala-tools.org/repo-snapshots)

Path to dependency:
1) org.lrbcol:lrbcol-disp:war:1.0-SNAPSHOT


at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:430)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:74)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:
316)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:
304)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1499)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:442)
at

[Lift] Re: maven error

2010-01-25 Thread Naftoli Gugenheim
Thanks Tyler! I guess building locally didn't provide enough info so
removing -o worked.

On Mon, Jan 25, 2010 at 7:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:

 I built a local branch and tried building based on it, and got an error.
 Here's the output:


 Cc:\dev\workspace\lrbcol-liftmvn -o -e clean compile
 + Error stacktraces are turned on.
 [INFO]
 NOTE: Maven is executing in offline mode. Any artifacts not already in your
 local
 repository will be inaccessible.

 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building lrbcol
 [INFO]task-segment: [clean, compile]
 [INFO]
 
 [INFO] [clean:clean {execution: default-clean}]
 [INFO] Deleting directory c:\dev\workspace\lrbcol-lift\target
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 2 resources
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:framework:pom:null

 Reason: Cannot find parent: net.liftweb:lift-parent for project:
 null:framework:pom:null for project null:framework:pom
 :null


 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
 dependency information: Unable to read the metada
 ta file for artifact 'net.liftweb:lift-mapper:jar': Cannot find parent:
 net.liftweb:lift-parent for project: null:frame
 work:pom:null for project null:framework:pom:null
   net.liftweb:lift-mapper:jar:2.0-SNAPSHOT

 from the specified remote repositories:
   scala-tools.org (http://scala-tools.org/repo-releases),
   central (http://repo1.maven.org/maven2),
   scala-tools.org.snapshots (http://scala-tools.org/repo-snapshots)

 Path to dependency:
 1) org.lrbcol:lrbcol-disp:war:1.0-SNAPSHOT


 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:5
 56)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.ja
 va:387)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
 at
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
 Unable to get dependency information: Unable
  to read the metadata file for artifact 'net.liftweb:lift-mapper:jar':
 Cannot find parent: net.liftweb:lift-parent for
 project: null:framework:pom:null for project null:framework:pom:null
   net.liftweb:lift-mapper:jar:2.0-SNAPSHOT

 from the specified remote repositories:
   scala-tools.org (http://scala-tools.org/repo-releases),
   central (http://repo1.maven.org/maven2),
   scala-tools.org.snapshots (http://scala-tools.org/repo-snapshots)

 Path to dependency:
 1) org.lrbcol:lrbcol-disp:war:1.0-SNAPSHOT


 at
 org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:430)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:74)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:
 316)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:
 304)
 at
 

[Lift] Re: Solr (or external API), curl, scala dispatch library, Quartz scheduling questions

2010-01-25 Thread Strom
Wiki article for how to POST to an external XML API.

http://wiki.github.com/dpp/liftweb/how-to-post-xml-to-an-external-url-with-databinder-dispatch

On Jan 25, 1:47 pm, Strom strommo...@gmail.com wrote:
 Ok thanks!

 For those of you looking to do add Databinder's dispatch to your Lift
 project, you should add these to your pom.xml:

 within repositories...
     repository
       idnet.databinder/id
       urlhttp://databinder.net/repo/url
       snapshots /
     /repository

 within dependencies...
     dependency
       groupIdnet.databinder/groupId
       artifactIddispatch-http_2.7.7/artifactId
       version0.6.6/version
     /dependency

 Of course, please replace 2.7.7 in the dependency above with your
 version of scala, and 0.6.6 with whatever version of Dispatch you
 plan to use. You can browse their repository online (http://
 databinder.net/repo/) and see what's most up to date if you're into
 that.

 Strom

 On Jan 25, 12:28 pm, Strom strommo...@gmail.com wrote:

  One more simple question. How do I go about incorporating Quartz or
  Dispatch into my current lift project? Is it as simple as adding
  dependencies to my pom.xml, or do I have to download the files and put
  them in my netbeans project? n00b...

  Thanks,
  Strom

  On Jan 25, 11:30 am, Strom strommo...@gmail.com wrote:

   Thank you David and Ewan. Very helpful!

   Strom

   On Jan 25, 10:51 am, Ewan ehar...@gmail.com wrote:

I used apache camel (6 months ago or so) to send/receive the requests
then parsed the xml response.  Works fine.

-- Ewan

On Jan 25, 8:41 am, Strom strommo...@gmail.com wrote:

 Hey all,
 I'm planning on using solr for a web project that I'm doing, and I was
 wondering if anyone had experience with using Solr or communicating
 with another external xml api? I've got a few questions.

 1. What is the most straightforward way to POST to an external url?
 I'm going to be sending Solr server XML commands to index and commit
 data for search within my app, and I've seen people discuss Scala's
 Dispatch library, but I'm not exactly sure what its strengths are or
 if I should use it over apache http library or curl.

 2. Would it be safe to say that this use case (sending POSTs to an
 external URL asynchronously) is a good thing for Lift's actors to
 handle? I'm very green to the concept of actors, so I'm trying to find
 when it's best to use them.

 3. I'm planning on doing a monthly rebuild of the index (or possibly
 some other timespan tbd), and I've read that Quartz is good for
 scheduling. Is there documentation I can read for information on how
 to integrate this Java library (or any java library for that matter)
 into my lift app and use it?

 Thanks!
 Strom

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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] Re: Solr (or external API), curl, scala dispatch library, Quartz scheduling questions

2010-01-25 Thread David Pollak
On Mon, Jan 25, 2010 at 7:53 PM, Strom strommo...@gmail.com wrote:

 Wiki article for how to POST to an external XML API.


Thank you for your contribution!




 http://wiki.github.com/dpp/liftweb/how-to-post-xml-to-an-external-url-with-databinder-dispatch

 On Jan 25, 1:47 pm, Strom strommo...@gmail.com wrote:
  Ok thanks!
 
  For those of you looking to do add Databinder's dispatch to your Lift
  project, you should add these to your pom.xml:
 
  within repositories...
  repository
idnet.databinder/id
urlhttp://databinder.net/repo/url
snapshots /
  /repository
 
  within dependencies...
  dependency
groupIdnet.databinder/groupId
artifactIddispatch-http_2.7.7/artifactId
version0.6.6/version
  /dependency
 
  Of course, please replace 2.7.7 in the dependency above with your
  version of scala, and 0.6.6 with whatever version of Dispatch you
  plan to use. You can browse their repository online (http://
  databinder.net/repo/) and see what's most up to date if you're into
  that.
 
  Strom
 
  On Jan 25, 12:28 pm, Strom strommo...@gmail.com wrote:
 
   One more simple question. How do I go about incorporating Quartz or
   Dispatch into my current lift project? Is it as simple as adding
   dependencies to my pom.xml, or do I have to download the files and put
   them in my netbeans project? n00b...
 
   Thanks,
   Strom
 
   On Jan 25, 11:30 am, Strom strommo...@gmail.com wrote:
 
Thank you David and Ewan. Very helpful!
 
Strom
 
On Jan 25, 10:51 am, Ewan ehar...@gmail.com wrote:
 
 I used apache camel (6 months ago or so) to send/receive the
 requests
 then parsed the xml response.  Works fine.
 
 -- Ewan
 
 On Jan 25, 8:41 am, Strom strommo...@gmail.com wrote:
 
  Hey all,
  I'm planning on using solr for a web project that I'm doing, and
 I was
  wondering if anyone had experience with using Solr or
 communicating
  with another external xml api? I've got a few questions.
 
  1. What is the most straightforward way to POST to an external
 url?
  I'm going to be sending Solr server XML commands to index and
 commit
  data for search within my app, and I've seen people discuss
 Scala's
  Dispatch library, but I'm not exactly sure what its strengths are
 or
  if I should use it over apache http library or curl.
 
  2. Would it be safe to say that this use case (sending POSTs to
 an
  external URL asynchronously) is a good thing for Lift's actors to
  handle? I'm very green to the concept of actors, so I'm trying to
 find
  when it's best to use them.
 
  3. I'm planning on doing a monthly rebuild of the index (or
 possibly
  some other timespan tbd), and I've read that Quartz is good for
  scheduling. Is there documentation I can read for information on
 how
  to integrate this Java library (or any java library for that
 matter)
  into my lift app and use it?
 
  Thanks!
  Strom

 --
 You received this message because you are subscribed to the Google Groups
 Lift group.
 To post to this group, send email to lift...@googlegroups.com.
 To unsubscribe from this group, send email to
 liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/liftweb?hl=en.




-- 
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 lift...@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] FIXME comet type Full(xxx) name Full(yyy) timeout

2010-01-25 Thread aw
Mega weird!  Randomly I seem to be running into a problem with my
Comet code.  My xhtml doesn't render properly, and if I view source I
see this:

!--FIXME comet type Full(JournalClient) name Full(Other) timeout--

Uhm...  What does this mean?  What exactly is timing out?  Any idea
why it would be random?

(Note that if I wait a few minutes, the page works fine.  (No code
changes!)  This kind of stability (or lack thereof) is not going to
win me points...)

Help please!

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

2010-01-25 Thread aw
 Can you define freeze?  Is that the Java process stops for a short period
 of time (~1 second)?  A long period of time (many minutes)?  Until you
 restart the Java process?  What does the CPU utilization look like?  Is the
 freezing for a single client/browser or all of them?

Freeze in terms of minutes.  But sorry, I haven't timed it yet.

I just posted a symptom here:  
http://groups.google.com/group/liftweb/browse_thread/thread/1d91ce365ed22216#

I decided to drill into my issue in more detail to try and find an
error message, stack trace, memory issue, CPU consumption -- anything
that might give me a hint.  Alas, the closest thing I have is the
FIXME comet timeout message.

I'd like to add that the code works some of the time (so I know that I
don't have a syntax error).  When it doesn't work, it is seemingly
random.  Not necessarily failing due to high load.  And actually, I am
the only one hitting the server (with perhaps two browser windows at
the most) right now.  So, it isn't like I have hundreds of users...


Is anybody actually using Tomcat and Comet together with Lift?  Or is
this oil and water?

Note that I am not using APR.  I don't think I am using NIO.  And I do
have compression turned on.  But that shouldn't matter, right?

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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: FIXME comet type Full(xxx) name Full(yyy) timeout

2010-01-25 Thread Marius
For some reason your comet does not respond in about 26 seconds with a
rendering message (AnswerRender) and this is when the Comet snippet
wants to render out stuff.

Can you send a minimalistic app where you can reproduce this so we can
try it ?

Br's,
Marius

On Jan 26, 8:57 am, aw anth...@whitford.com wrote:
 Mega weird!  Randomly I seem to be running into a problem with my
 Comet code.  My xhtml doesn't render properly, and if I view source I
 see this:

 !--FIXME comet type Full(JournalClient) name Full(Other) timeout--

 Uhm...  What does this mean?  What exactly is timing out?  Any idea
 why it would be random?

 (Note that if I wait a few minutes, the page works fine.  (No code
 changes!)  This kind of stability (or lack thereof) is not going to
 win me points...)

 Help please!

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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] Re: HTML table links

2010-01-25 Thread Adam Warski
Hello,

 Could you please point me, I can't find it.

if you mean the lift book, it's here:
http://groups.google.com/group/the-lift-book

-- 
Adam

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