Note that there are some explanatory texts on larger screens.

plurals
  1. POPlay framework scala Intellij IDE action not found
    primarykey
    data
    text
    <p>I'm trying to setup basic play scala application with Intellij IDE (v 10.5.1).</p> <p>I followed the instructions <a href="http://www.jamesward.com/2011/07/28/setup-play-framework-with-scala-in-intellij" rel="nofollow">http://www.jamesward.com/2011/07/28/setup-play-framework-with-scala-in-intellij</a></p> <p>When I start the application from the IDE everything is OK: 01:44:20,734 INFO ~ Application 'hello6' is now started !</p> <p>But when I try to open a page in browser I'm getting the error in the output:</p> <p>application.index action not found</p> <p><em>Action not found Action application.index could not be found. Error raised is Controller controllers.application not found</em></p> <pre><code>play.exceptions.ActionNotFoundException: Action application.index not found at play.mvc.ActionInvoker.getActionMethod(ActionInvoker.java:585) at play.mvc.ActionInvoker.resolve(ActionInvoker.java:84) at Invocation.HTTP Request(Play!) Caused by: java.lang.Exception: Controller controllers.application not found </code></pre> <p>Looks like scala compilation just not happening for some reason. Everything works good if I'm running the application directly from play server.</p> <p>Play v1.2.2, scala-module 0.9.1. Tried in Ubuntu 10.4 and Windows 7.</p> <h1>Updated adding routes file and Application.scala</h1> <pre><code># Home page GET / Application.index # Ignore favicon requests GET /favicon.ico 404 # Map static resources from the /app/public folder to the /public path GET /public/ staticDir:public # Catch all * /{controller}/{action} {controller}.{action} </code></pre> <p>============================================================================</p> <pre><code>package controllers import play._ import play.mvc._ object Application extends Controller { import views.Application._ def index = { html.index("Your Scala application is ready!") } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload