I have developed a little program for myself. After testing and finishing it locally I now wanted to put it on my server.
I get this error:
Compilation error The file /app/controllers/Links.java could not be compiled. Error raised is : Secure cannot be resolved to a type
It is thrown at this line:
@With(Secure.class)
In the Class Links I have:
import play.mvc.With;
import controllers.*;
@With(Secure.class)
public class Links extends CRUD {
}
I have installed play 1.2.2 on my server. Play is running probably. I type in the terminal "play start appname" and opened serverIp:9010 to see this error. If I type "play precompile appname" everything seems to work.
In the subfolder /modules of the app I have two text files, one "crud" and one "secure" which point to the modules location on the server. I also have defined the modules in dependencies.yml like this:
require:
- play
- crud
- secure
In the application.conf I have a Production definition for my server with the proper Server-ID like this:
%server1.application.mode=PROD
Any idea why this isn't working?
application.conf? - davin