Error Cannot Find Symbol Play Framework
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn play framework cannot find symbol form more about Stack Overflow the company Business Learn more about hiring developers or error cannot find symbol class googleplayservicesclient posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow error cannot find symbol javac Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Play 2.1 Error: Cannot find symbol bug up vote
Error Cannot Find Symbol Class
3 down vote favorite 1 I have the following in my controller, public static Result index() { return ok(indexpage.render()); } my indexpage.scala.html page, @main("Test") { } yet Play 2.1 is giving me the following error: error: cannot find symbol Any ideas? EDIT: I created another view + method in my controller, had the same exact error. java playframework playframework-2.1 share|improve this question edited Sep 3 '14 at 15:10 error cannot find symbol maven rink.attendant.6 9,294133572 asked Oct 14 '13 at 20:49 thedeadlybutter 12419 So where is indexpage declared? Does Play implicitly create that for you because you've got an index.scala.html file? –Jon Skeet Oct 14 '13 at 20:52 Yes, Play looks at the html files under the views folder so when I reference indexpage it refers to that view. This normally works fine which is why I'm confused. –thedeadlybutter Oct 14 '13 at 20:56 Did you import views.html.whatever._? The problem seems to be in following: 1. You forgot the import. 2. The indexpage does not exist. 3. Some strange Play issue, so you can try play clean –serejja Oct 15 '13 at 6:38 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted Found the problem, when I cleaned up my imports I accidentally removed import views.html.*; from my controller class. Would have posted answer earlier but for some reason people with less than 10 reputation have to wait 8 hours before answering a question they made. share|improve this answer edited Sep 3 '14 at 15:10 rink.attendant.6 9,294133572 answered Oct 15 '13 at 21:05 thedeadlybutter 12419 add a comment| up vote 1 do
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this error cannot find symbol variable site About Us Learn more about Stack Overflow the company Business Learn more
Error Cannot Find Symbol Class Builder
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Error Cannot Find Symbol Method Findviewbyid(int)
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error: cannot http://stackoverflow.com/questions/19369052/play-2-1-error-cannot-find-symbol-bug find symbol, symbol class With - Play framework java up vote 1 down vote favorite I am trying to use play framework's Composing actions using Java. I am getting a compilation error. error: Cannot find symbol @With(Menus.class) ^ Can any one tell me what is the error? playframework playframework-2.0 share|improve this question edited Jun 22 '14 at 10:19 asked Jun 22 '14 at 9:49 Siddhu https://stackoverflow.com/questions/24350062/error-cannot-find-symbol-symbol-class-with-play-framework-java 129126 Are you importing play.mvc.* ? –jarandaf Jun 22 '14 at 10:11 Yeah. I fould the error. I forgot the import statement for @With. import play.mvc.With; –Siddhu Jun 22 '14 at 11:40 anyways, thanks @jaranda for the quick reply. –Siddhu Jun 22 '14 at 11:52 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged playframework playframework-2.0 or ask your own question. asked 2 years ago viewed 568 times Related 15Running evolutions on Play Framework 2.02Compilation error with play 2 framework3Play framework 2.0.x AskTimeoutException1Play Framework: Page cannot be resolved0Play Framework Netty Error with Expect 100 Continue0Error cannot start Play! app2Setting Content Type Header with Play Framework Java0Play Framework: Cannot find symbol “async”0Java play framework Dr
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
error messages are most of the time excellent, but now i have an error i can't figure out.I changed the routes and had suddenly this error.Compilation error error: cannot find symbol In C:Usersmyself estprojconf outesThe console spits this out:! @695bjelp5 - Internal server error, for request [GET /] ->sbt.PlayProject$CompilationException: Compilation error [error: cannot find symbol] at sbt.PlayProject$$anon$1$$anonfun$reload$1$$anonfun$apply$36$$anonfun$apply$37.apply(SbtPlugin.scala:514) ~[play_2.9.1.jar:na] at sbt.PlayProject$$anon$1$$anonfun$reload$1$$anonfun$apply$36$$anonfun$apply$37.apply(SbtPlugin.scala:514) ~[play_2.9.1.jar:na] at scala.Option.map(Option.scala:133) [scala-library.jar:na] at sbt.PlayProject$$anon$1$$anonfun$reload$1$$anonfun$apply$36.apply(SbtPlugin.scala:514) ~[play_2.9.1.jar:na] at sbt.PlayProject$$anon$1$$anonfun$reload$1$$anonfun$apply$36.apply(SbtPlugin.scala:511) ~[play_2.9.1.jar:na] at scala.Option.map(Option.scala:133) [scala-library.jar:na]The weird thing is, i can't get play working again. I changed the routes file to the original and i still have this error.Can anyone help me? play asked Jan 18 2012 at 18:53 in Play-Framework by Severin Kistner Facebook Google+ Twitter 4 Answers Have you tried clean? answered Jan 19 2012 at 02:48 by Guillaume Bort That did it, thanks. answered Jan 19 2012 at 15:13 by Severin Kistner Snx. It work.If you have analogy problem, just make itin root dir your play application: $ play clean answered Mar 30 2012 at 06:39 by ?????? ???????? worked for me too ;], ty man On Thursday, January 19, 2012 11:06:56 PM UTC+1, Severin Kistner wrote: That did it, thanks. answered Sep 13 2013 at 08:58 by Krzysztof Kowalski Related Discussions [play-framework] [play-2.4.x] Including Routes In A Routes File in Play-frameworkIn play 2.3.x it was possible to include routes within a routes file, like: -> /other other.routes I can't get this to work in play 2.4.x For one thing I cannot find any kind of documentation about this syntax in the routes documentation, and would be glad for any pointers of documentation. The concrete error I am getting when I use this syntax is, that it cannot find other during ...Play-2.1.3-Java "routes" Cannot Be Resolved In Eclipse in Play-frameworkI'm a beginner user of Play Framework 2.1.3 and I have just created a new Java application and I have run play eclipse to generate the eclipse project for it. I have also tested so that it works by doing aplay run. So I'm following this tutorial and there is a step where you should add this piece of code: public static Result index() { return redirect(routes.Applicat