http://wiki.liftweb.net/index.php/HowTo_start_a_new_liftwebapp
On Jul 21, 3:56 pm, David Pollak <[email protected]> wrote: > Please point to the URL where you found the book. It's some seriously old > stuff... almost a year out of date. > > On Tue, Jul 21, 2009 at 10:30 PM, Jeff McKenna <[email protected]>wrote: > > > > > > > I am just running the liftwebapp tutorial and am running into a > > confusion. > > In section 2.1 a mechanism to extend the sitemap by changing a line in > > Boot.scala > > val entries = Menu(Loc("Home", "/", "Home")) :: Menu(Loc("Test", "/ > > test", "Test Page")) :: User.sitemap > > > When I do this, I get the following error when I run 'mvn jetty:run' > > ....... > > [INFO] [scala:compile {execution: default}] > > [INFO] Checking for multiple versions of scala > > [INFO] Compiling 1 source files to /Users/jmckenna/Lift/hello-lift/ > > target/classes > > [INFO] use java command with args in file forced : false > > /Users/jmckenna/Lift/hello-lift/src/main/scala/bootstrap/liftweb/ > > Boot.scala:28: error: type mismatch; > > found : java.lang.String("/test") > > required: net.liftweb.sitemap.Loc.Link > > [net.liftweb.sitemap.NullLocParams] > > Menu(Loc("Test", "/test", "Test Page")) :: User.sitemap > > ^ > > one error found > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD FAILURE > > ....... > > I kind of hope that tutorials work. :-) I tried a bunch of different > > ways to concatenate the menus but nothing seems to fix things up. I > > used List(...) in place of the strings and removed the compilation > > errors. But the site does not see the test directory. The error is: > > The Requested URL /test/ was not found on this server > > Any suggestions? > > Jeff > > -- > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
