java - Play framework + Ebean: [error] ... not found: type Finder -


i developed java application in play 2.0 , trying deploy aws. first trying run same way did on local computer. copied play sources virtual ec2 server (ubuntu 12.04), exported play classpath, , copied project. when run play compile, following error

[info] loading project definition /home/ubuntu/play-2.0/samples/java/test-crud/project [info] set current project computer-database (in build file:/home/ubuntu/play-2.0/samples/java/test-crud/) [info] updating {file:/home/ubuntu/play-2.0/samples/java/test-crud/}computer-database... [info] done updating.                                                                   [info] compiling 21 scala sources , 16 java sources /home/ubuntu/play-2.0/samples  /java/test-crud/target/scala-2.9.1/classes... [error] /home/ubuntu/play-2.0/samples/java/test-crud/app/models/dealership.java:32: not found: type finder [error]     public static finder<long,dealership> find = new finder<long,dealership>(long.class, dealership.class);  [error]                   ^ [error] 1 error found [error] {file:/home/ubuntu/play-2.0/samples/java/test-crud/}computer-database/compile:compile: compilation failed [error] total time: 117 s, completed apr 21, 2014 3:48:33 

the application built on crud example ebean. when try compile sample application in play, not have troubles. why compiler have issues finder?

this has been happening me sporadically, times compiles, not.

i fixed changing finder more specific model.finder.

your line becomes:

public static model.finder<long,dealership> find = new model.finder<long,dealership>(long.class, dealership.class); 

Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -