SampleApp does not work with Play 1.2.1
hhubris opened this issue · comments
I was trying to evaluate Japid for use in a new Play! based project.
I simply created a new Play project
play new japid
And added this dependency:
require:
- play
- play -> japid 0.8.3.1
And then started the SampleApp
cd modules/japid-0.8.3.1/JapidSample
play run
The home page can't find any of the Japid classes
Compilation error (In /app/controllers/Application.java around line 31)
The file /app/controllers/Application.java could not be compiled. Error raised is : JapidController cannot be resolved to a type
play.exceptions.CompilationException: JapidController cannot be resolved to a type
at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246)
at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:672)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:516)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:406)
at play.Play.start(Play.java:453)
at play.Play.detectChanges(Play.java:563)
at play.Invoker$Invocation.init(Invoker.java:186)
at Invocation.HTTP Request(Play!)
^C~ ...
Hi,
The JapidSample application does not have the dependencies properly set up. You'll need to create the dependencies.xml with the same content manually in the JapidSample/conf directory before your run it.
Oh, one more thing: please run the "play dependencies" command before you run the "play run" command in the JapidSample directory.
if you see "WARNING: Your lib/ and modules/ directories and not synced with current dependencies ", ignore it and don't run the dependencies with the --sync option.
Following your instructions fixed the problem.
Thanks