Play framework scala Intellij IDE action not found -
I am trying to set up a basic SCALA application with Intelis IDE (V10.5.1).
I followed the instructions
When I start the application with the IDE, it's all right: 01: 44: 20,734 INFO ~ The application 'Hello 6' has started now!
But when I try to open a page in the browser I am getting an error in the output:
application.index did not get the operation
It seems that Scala compilation is not happening for some reason. Everything is fine if I'm running the application directly from the game server. Play v1.2.2, Scala-module 0.9.1. Tried in Ubuntu 10.4 and Windows 7. ==================================== ========== ====================================== This part: application.index Looks incorrect, should not it be application.index? With Capital A Check the routes, maybe there are typo in it.
play.exceptions.ActionNotFoundException: verb application.index was not found at play.mvc.ActionInvoker.getActionMethod (ActionInvoker.java sheet85) On invocation at play.mvc.ActionInvoker.resolve (ActionInvoker.java:84). HTTP Reason (Play!) Reason: java.lang.Exception: Controller Controller. Application not found
update path file and application.scala
# home page GET / application.index # Ignore the requests favicon GET / Favicon.ico 404 # ap / public folder GET / public / staticDir: public #Catch all * / {controller} / {action} {CONTROLLED} {Action}
Import Package Controller play._ import play.mvc ._ Imports the object application controller {views views.Application._drf index = {html.index ("Your Scala application is ready! "}}}
Comments
Post a Comment