Again, thanks for the quick response -- finally got it!  Here's what I
did and what ended up being the problem (maybe an obvious one, but
wasn't to me since I'm new to scala/lift):

1. Ran 'git pull' then 'git reset --hard'
2. Ran 'mvn clean install' from liftweb root
3. Several projects built fine, but I got a compile failure building
the examples.  The full maven output is listed below.
4. I thought, "Hmmm.  This build obviously works for the Lift guys.
What is possibly different about their environment?  Scala!"  For
giggles downloaded Scala 2.7.7 and put in my path.
5. Re-ran 'mvn clean install' from the root and everything worked.

So for noobs such as myself, the following things were needed in
addition to Maven:
1. increase the default Maven heap size.  This is pretty easy, but I
also use Maven all the time.  For someone new to Maven, this might not
be obvious: export MAVEN_OPTS=-Xmx1024m
2. Download Scala 2.7.7 and put it in the path.  This is not obvious
because the build sort of works without it (I guess the Maven scala
plugin does the compilation?).

Again, good response time on the help.  That is important -- I'm
evaluating Grails, Roo, and Lift as potential options for a project.
I'm a Java dev, so Grails/Roo is easy.  I like what I've seen so far
from Lift, but I'll also probably have a lot of dumb questions since
I'm new to scala, so it is important to have a responsive community
and that seems like that's what you've got.

Just for reference, here's the Maven output prior to putting scala in
the path:

[INFO]
------------------------------------------------------------------------
[INFO] Building Lift Example
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: default-enforce}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/JoelC/work/projects/
lift/liftweb/lift-examples/example/src/main/resources
[INFO] [scala:compile {execution: scala-compile}]
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[INFO] Compiling 2 source files to /Users/JoelC/work/projects/lift/
liftweb/lift-examples/example/target/classes
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:47: error: not found: value
definedLocale
    LiftRules.localeCalculator = r => definedLocale.openOr
(LiftRules.defaultLocaleCalculator(r))
                                      ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:51: error: not found: value User
      Schemifier.schemify(true, Log.infoF _, User, WikiEntry, Person)
                                             ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:54: error: not found: value
WebServices
    WebServices.init()
    ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:56: error: not found: value
XmlServer
    XmlServer.init()
    ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:60: error: not found: value
LoginStuff
        if !LoginStuff.is && page.head != "validate" =>
            ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:65: error: not found: value
Template
          (Map("Template" -> Template,
                             ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:73: error: not found: value
RuntimeStats
    LiftRules.snippetDispatch.append(Map("runtime_stats" ->
RuntimeStats))
                                                            ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:97: error: not found: value
ThingBuilder
    ThingBuilder.boot()
    ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:167: error: not found: value
WikiStuff
      Menu(WikiStuff) ::
           ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:279: error: not found: value
RuntimeStats
          RuntimeStats.lastUpdate = timeNow
          ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:280: error: not found: value
RuntimeStats
          RuntimeStats.totalMem = rt.totalMemory
          ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:281: error: not found: value
RuntimeStats
          RuntimeStats.freeMem = rt.freeMemory
          ^
/Users/JoelC/work/projects/lift/liftweb/lift-examples/example/src/main/
scala/bootstrap/liftweb/Boot.scala:282: error: not found: value
RuntimeStats
          RuntimeStats.sessions = sessions.size
          ^
13 errors found
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited
with an error: 1(Exit value: 1)

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 minutes 16 seconds
[INFO] Finished at: Fri Nov 27 12:37:38 EST 2009
[INFO] Final Memory: 98M/184M
[INFO]
------------------------------------------------------------------------


For reference, here's the output:

On Nov 25, 1:52 pm, David Pollak <feeder.of.the.be...@gmail.com>
wrote:
> On Wed, Nov 25, 2009 at 10:36 AM, Jcon <javarad...@gmail.com> wrote:
> > Thanks for the quick response.  I'm still having the same error after
> > trying the following:
>
> > 1. upgrade to maven 2.2 as suggested
> > 2. ran 'mvn install' in the lift-examples directory again.  Same error
> > (tests failing, although I think the root cause is actually
> > ClassNotFoundException bootstrap.liftweb.Boot)
>
> What kind of machine are you running on?
>
> Please build from the root liftweb directory
>
> Also, please do a git reset --hard to make sure everything is as it was when
> it came from GitHub
>

--

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.


Reply via email to