title: PlayFramework beginner. Route definition error
body: <p>I have a made a simple new controller and tried to define my routes. Everything seems to be correct but I get an error. The code is taken from the Manning Play for Java.</p>
  
  <p>Products Controller:</p>
  
  <pre><code>package controllers;
  
  import play.mvc.*;
  import play.mvc.Controller;
  import play.mvc.Result;
  
  public class Products extends Controller {
  
  //list all products
  public static Result list(){
      return TODO;
  }
  
  //return empty form for adding
  public static Result newProduct(){
      return TODO;
  }
  
  //product edit form
  public static Result details(String ean){
      return TODO;
  }
  
  //save a product
  public static Result save(){
      return TODO;
  }
  
  }
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>GET     /                           controllers.HomeController.index
  
  GET     /count                      controllers.CountController.count
  
  GET     /message                    controllers.AsyncController.message
  
  
  GET     /assets/*file               controllers.Assets.versioned(path="/public", file: Asset)
  
  GET     /products                   controllers.Products.list
  GET     /products/new               controllers.Products.newProduct
  GET     /products/:ean              controllers.Products.details(ean: String)
  POST    /products/                  controllers.Products.save
  </code></pre>
  
  <p>Errors:</p>
  
  <pre><code>Compiling 6 Scala sources and 11 Java sources to /Users/andrei/Desktop/PlayFramework/target/scala-2.11/classes...
  [error] /Users/andrei/Desktop/PlayFramework/conf/routes:15: value list is not a member of controllers.Products
  [error] GET     /products                   controllers.Products.list
  [error] /Users/andrei/Desktop/PlayFramework/conf/routes:16: value newProduct is not a member of controllers.Products
  [error] GET     /products/new               controllers.Products.newProduct
  [error] /Users/andrei/Desktop/PlayFramework/conf/routes:17: value details is not a member of controllers.Products
  [error] GET     /products/:ean              controllers.Products.details(ean: String)
  [error] /Users/andrei/Desktop/PlayFramework/conf/routes:18: value save is not a member of controllers.Products
  [error] POST    /products/                  controllers.Products.save
  [error] four errors found
  </code></pre>