2010-05-27 41 views
0

成員..但我得到這個錯誤:改寫不符合我的下面<a href="http://www.assembla.com/wiki/show/liftweb/URL_Rewriting" rel="nofollow noreferrer">http://www.assembla.com/wiki/show/liftweb/URL_Rewriting</a>教程中liftweb URL rewritting一個的LiftRules

error: value rewrite is not a member of object net.liftweb.http.LiftRules 

..這實在是奇怪..和文件說,它的存在。

我正在使用IDE的思想,我已經做了一切從頭開始,使用升降機maven空白archifact。

一些更多的信息:

[INFO] ------------------------------------------------------------------------ 
[INFO] Building Joseph3 
[INFO] task-segment: [tomcat:run] 
[INFO] ------------------------------------------------------------------------ 
[INFO] Preparing tomcat:run 
[INFO] [resources:resources {execution: default-resources}] 
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! 
[INFO] Copying 0 resource 
[INFO] [yuicompressor:compress {execution: default}] 
[INFO] nb warnings: 0, nb errors: 0 
[INFO] artifact org.mortbay.jetty:jetty: checking for updates from scala-tools.org 
[INFO] artifact org.mortbay.jetty:jetty: checking for updates from central 
[INFO] [compiler:compile {execution: default-compile}] 
[INFO] Nothing to compile - all classes are up to date 
[INFO] [scala:compile {execution: default}] 
[INFO] Checking for multiple versions of scala 
[INFO] /home/dpz/Scala/Doit/Joseph3/src/main/scala:-1: info: compiling 

[INFO] Compiling 2 source files to /home/dpz/Scala/Doit/Joseph3/target/classes at 1274922123910 
[ERROR] /home/dpz/Scala/Doit/Joseph3/src/main/scala/bootstrap/liftweb/Boot.scala:16: error: value rewrite is not a member of object net.liftweb.http.LiftRules 
[INFO]  LiftRules.rewrite.prepend(NamedPF("ProductExampleRewrite") { 
[INFO]    ^
[ERROR] one error 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: 19 seconds 
[INFO] Finished at: Thu May 27 03:02:07 CEST 2010 
[INFO] Final Memory: 20M/175M 
[INFO] ------------------------------------------------------------------------ 

Process finished with exit code 1 

enter code here 
+0

您使用的是什麼版本的升降機? – 2010-05-27 04:06:05

回答

2

請用戶提升2.0-RC1。該wiki文章基於Lift 2.0。

相關問題