I have used mvp4g successfully before. Now I am trying to get it to work inside Play. There is no compilation error inside eclipse, but fails either when I run it or compiling it. the error dump is long, here is a partial listing
java.lang.ClassNotFoundException: client.presenter.UserCreatePresenter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty peOracleMediator.java:727) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty peOracleMediator.java:666) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOrac leMediator.java:469) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOra cleMediator.java:625) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOr acleMediator.java:640) at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod(TypeOracleM ediator.java:980) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMe diator.java:839) at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMed iator.java:411) at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(Typ eOracleMediatorFromSource.java:54) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(Compilation State.java:165) at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.jav a:82) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat ionStateBuilder.java:392) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio nStateBuilder.java:275) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3 25) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 512) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 495) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(Compile TaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) [ERROR] Annotation error: expected class java.lang.Class, got null Resolving client.presenter.RootPresenter Found type 'client.presenter.RootPresenter' [ERROR] Annotation error: cannot resolve client.view.RootView java.lang.ClassNotFoundException: client.view.RootView at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty peOracleMediator.java:727) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOrac leMediator.java:469) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOra cleMediator.java:625) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOr acleMediator.java:640) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMe diator.java:786) at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMed iator.java:411) at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(Typ eOracleMediatorFromSource.java:54) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(Compilation State.java:165) at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.jav a:82) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat ionStateBuilder.java:392) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio nStateBuilder.java:275) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3 25) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 512) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 495) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(Compile TaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) Resolving client.presenter.UserCreatePresenter Found type 'client.presenter.UserCreatePresenter' [ERROR] Annotation error: cannot resolve client.view.UserCreateView java.lang.ClassNotFoundException: client.view.UserCreateView at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty peOracleMediator.java:727) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOrac leMediator.java:469) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOra cleMediator.java:625) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOr acleMediator.java:640) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMe diator.java:786) at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMed iator.java:411) at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(Typ eOracleMediatorFromSource.java:54) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(Compilation State.java:165) at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.jav a:82) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat ionStateBuilder.java:392) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio nStateBuilder.java:275) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3 25) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 512) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 495) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(Compile TaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) Resolving client.presenter.UserDisplayPresenter Found type 'client.presenter.UserDisplayPresenter' [ERROR] Annotation error: cannot resolve client.view.UserDisplayView java.lang.ClassNotFoundException: client.view.UserDisplayView at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty peOracleMediator.java:727) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOrac leMediator.java:469) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOra cleMediator.java:625) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOr acleMediator.java:640) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMe diator.java:786) at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMed iator.java:411) at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(Typ eOracleMediatorFromSource.java:54) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(Compilation State.java:165) at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.jav a:82) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat ionStateBuilder.java:392) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio nStateBuilder.java:275) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3 25) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 512) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 495) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(Compile TaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) Scanning for additional dependencies: jar:file:/C:/Users/Bruce_Ho/ myGwt2App/l ib/mvp4g-1.3.1.jar!/com/mvp4g/client/Mvp4gEntryPoint.java Computing all possible rebind results for 'com.mvp4g.client.Mvp4gModule' Rebinding com.mvp4g.client.Mvp4gModule Invoking generator com.mvp4g.util.Mvp4gGenerator Generating source for com.mvp4g.client.Mvp4gModule Generating source for com.mvp4g.client.Mvp4gModule 1784 classes scanned in 4 ms. [ERROR] Generator 'com.mvp4g.util.Mvp4gGenerator' threw an except ion while rebinding 'com.mvp4g.client.Mvp4gModule' java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.javac.AnnotationProxyFactory $AnnotationProxyInvoca tionHandler.invoke(AnnotationProxyFactory.java:247) at $Proxy9.view(Unknown Source) at com.mvp4g.util.config.loader.annotation.PresenterAnnotationsLoader.lo adElementWithServices(PresenterAnnotationsLoader.java:66) at com.mvp4g.util.config.loader.annotation.PresenterAnnotationsLoader.lo adElementWithServices(PresenterAnnotationsLoader.java:34) at com.mvp4g.util.config.loader.annotation.Mvp4gAnnotationsWithServiceLo ader.loadElement(Mvp4gAnnotationsWithServiceLoader.java:50) at com.mvp4g.util.config.loader.annotation.Mvp4gAnnotationsLoader.load(M vp4gAnnotationsLoader.java:54) at com.mvp4g.util.config.Mvp4gConfiguration.loadPresenters(Mvp4gConfigur ation.java:1233) at com.mvp4g.util.config.Mvp4gConfiguration.load(Mvp4gConfiguration.java :185) at com.mvp4g.util.Mvp4gGenerator.writeClass(Mvp4gGenerator.java:158) at com.mvp4g.util.Mvp4gGenerator.createClass(Mvp4gGenerator.java:96) at com.mvp4g.util.Mvp4gGenerator.generate(Mvp4gGenerator.java: 77) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrap per.java:48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Gen eratorExtWrapper.java:60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncreme ntally(StandardGeneratorContext.java:662) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java :41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(Standar dRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOr acle.java:259) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOr acle.java:248) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleReb indAnswers(DistillerRebindPermutationOracle.java:91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesU singRebinds(WebModeCompilerFrontEnd.java:106) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process( AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile( AbstractCompiler.java:175) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile( AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.access$4 00(AbstractCompiler.java:145) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java :632) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclara tions(BasicWebModeCompiler.java:124) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDecl arations(WebModeCompilerFrontEnd.java:54) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJava ScriptCompiler.java:517) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompil er.java:35) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 541) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 495) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 407) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(Compile TaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) [ERROR] Errors in 'jar:file:/C:/Users/Bruce_Ho/myGwt2App/lib/ mvp4g-1.3.1.jar! /com/mvp4g/client/Mvp4gEntryPoint.java' [ERROR] Line 34: Failed to resolve 'com.mvp4g.client.Mvp4gModule' via def erred binding Scanning for additional dependencies: jar:file:/C:/Users/Bruce_Ho/ myGwt2App/l ib/gwt-user-2.2.0.jar!/com/google/gwt/core/client/impl/ SchedulerImpl.java [WARN] For the following type(s), generated source was never committed (di d you forget to call commit()?) [WARN] com.mvp4g.client.Mvp4gModuleImpl [ERROR] Cannot proceed due to previous errors here is the key suspect: 'object is not an instance of declaring class' it seems there are two separate path to Mvp4gModuleImpl. is that right? the other clear error message: 'java.lang.ClassNotFoundException: client.presenter.UserCreatePresenter' this is funny, because when resolving for the presenter outside the EventBus, it does find it 00:00:07.327 [SPAM] Found type 'client.presenter.RootPresenter' in another path, right after 00:00:07.311 [SPAM] Found type 'client.TestEventBus' it says 00:00:07.317 [ERROR] Annotation error: cannot resolve client.presenter.UserDisplayPresenter this again shows it is trying to resolve the presenter class thru TypeOracleMediator. I posted this on Play forum with no reply. I am hoping some one familiar with TypeOracleMediator can see what is wrong. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.