/ / Play फ्रेमवर्क 2.1 पर अपाचे शिरो को एकीकृत करना - अपाचे, चौखटे, प्लेफ्रामवर्क-2.1, शेरो

प्ले फ्रेमवर्क 2.1 पर अपाचे शिरो को एकीकृत करना - अपाचे, फ्रेमवर्क, प्लेफ्रेमवर्क-2.1, शिरो

मैं एपाचे शेरो को प्ले फ्रेमवर्क 2.1 में एकीकृत करने की कोशिश कर रहा हूं मैं एक ओपन सोर्स प्रोजेक्ट का उपयोग कर रहा हूं (https://github.com/wsargent/play-shiro) कि समर्थन फ्रेम ढाँचा 2.0

मैंने "इस एप्लिकेशन को प्ले 2.0 से 2.1 में माइग्रेट करने की कोशिश की, लेकिन जब मैं प्रोजेक्ट संकलित करता हूं तो मुझे ये त्रुटियां मिलती रहती हैं ...

क्या किसी को पता है कि इस त्रुटियों को कैसे संभालना है?

[play-shiro] $ compile
[info] Updating {file:/Users/shai/Documents/Projects/opensource/play-shiro/}play-shiro...
[info] Done updating.
[info] Compiling 13 Scala sources and 1 Java source to /Users/shai/Documents/Projects/opensource/play-shiro/target/scala-2.10/classes...
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/login.scala.html:0: not found: type Flash
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/login.scala.html:1: not found: type Flash
[error] @(form: Form[(String,String)])(implicit flash: Flash)
[error]                                               ^
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/controllers/Login.scala:36: type mismatch;
[error]  found   : play.api.data.Form[(String, String)]
[error]  required: play.data.Form[(String, String)]
[error]     Ok(html.login(loginForm))
[error]                   ^
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/controllers/Login.scala:44: type mismatch;
[error]  found   : play.api.data.Form[(String, String)]
[error]  required: play.data.Form[(String, String)]
[error]       formWithErrors => { BadRequest(html.login(formWithErrors)) },
[error]                                                 ^
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/register.scala.html:0: not found: type Flash
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/register.scala.html:1: not found: type Flash
[error] @(form: Form[(String,String)])(implicit flash: Flash)
[error]                                               ^
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/controllers/Register.scala:30: type mismatch;
[error]  found   : play.api.data.Form[(String, String)]
[error]  required: play.data.Form[(String, String)]
[error]     Ok(html.register(registerForm))
[error]                      ^
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/controllers/Register.scala:37: type mismatch;
[error]  found   : play.api.data.Form[(String, String)]
[error]  required: play.data.Form[(String, String)]
[error]           BadRequest(html.login(formWithErrors))
[error]                                 ^
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/login.scala.html:19: value map is not a member of play.data.validation.ValidationError
[error]             @form.globalError.map { error =>
[error]                               ^
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/login.scala.html:53: not found: type Flash
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/login.scala.html:55: not found: type Flash
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/register.scala.html:18: value map is not a member of play.data.validation.ValidationError
[error]   @form.globalError.map { error =>
[error]                     ^
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/register.scala.html:51: not found: type Flash
[error] /Users/shai/Documents/Projects/opensource/play-shiro/app/views/register.scala.html:53: not found: type Flash
[error] 14 errors found
[error] (compile:compile) Compilation failed
[error] Total time: 3 s, completed Apr 17, 2013 7:00:42 PM
[play-shiro] $

उत्तर:

जवाब के लिए 3 № 1

मैंने कोड को 2.1 में अपग्रेड कर दिया है, लेकिन कृपया, इसके बजाय Play Authenticate या SecureSocial का उपयोग करने पर विचार करें। यह कोड कभी भी उत्पादन की गुणवत्ता के लिए नहीं था।


जवाब के लिए 0 № 2

Play से अपग्रेड के बाद! 2.0 खेलने के लिए! २.१, क्या आपने निम्न आज्ञाएँ चलाई हैं?

play clean
play clean-files
play compile

यह आमतौर पर उन संकलन मुद्दों का कारण है।

यदि समस्या बनी रहती है, तो एक नज़र डालें माइग्रेशन गाइड यह जांचने के लिए कि क्या आपने वास्तव में सभी आवश्यक कदमों का पालन किया है।