Thursday, October 9, 2014

Re: Compiling from command line - Annotation errors

If Error SDM compile: 
   Finding entry point classes
      [ERROR] Unable to find type 'com.company.project.client.YourGWTApp'
         [ERROR] Hint: Check that the type name 'com.ajna4taiga.recycling.client.RecyclingEntryPoint' is really what you meant
         [ERROR] Hint: Check that your classpath includes all required source roots
[ERROR] Compiler returned false

add classpath  run configuration for SDM
User Entries
Advance (button)
Advance folder (add src direcotry of your YourGWTApp project)
Applay Save run configuration

if bellow error
Compiling module com.company.project.YourGWTApp
   Resolving com.ajna4taiga.recycling.client.AppPlaceHistoryMapper
      Found type 'com.company.project.client.AppPlaceHistoryMapper'
         [ERROR] Annotation error: cannot resolve com.company.project.client.places.HomePlace$HomePlaceTokenizer
         
You should add in your run coniguration for your SDM 
add your GWT project in classpath 
User Entries
button Add Project
pa check YourGWTApp project   

On Tuesday, October 9, 2012 3:57:34 AM UTC+2, Jy wrote:
Hello,

I'm trying to automate the process of deploying new gwt code by automating the compile process.  I've google around a ton and can't seem to find any solutions.  It's funny because it compiles no problem in Eclipse, but trying to compile on the command line has been a pain.  The errors I keep getting are essentially like so:

Compiling module com.proximate.proximate
   Resolving com.proximate.client.AppPlaceHistoryMapper
      Found type 'com.proximate.client.AppPlaceHistoryMapper'
         [ERROR] Annotation error: cannot resolve com.proximate.client.place.Home$Tokenizer
java.lang.ClassNotFoundException: com.proximate.client.place.Home$Tokenizer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:750)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:689)
        at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:498)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:648)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:663)
        at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:809)
        at com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMediator.java:439)
        at com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(TypeOracleMediatorFromSource.java:52)
        at com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:164)
        at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.java:82)
        at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:450)
        at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:370)
        at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:360)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:252)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
        at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
        at com.google.gwt.dev.Compiler.run(Compiler.java:232)
        at com.google.gwt.dev.Compiler.run(Compiler.java:198)
        at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
        at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
        at com.google.gwt.dev.Compiler.main(Compiler.java:177)
         [ERROR] Annotation error: expected class java.lang.Class, got null
         [ERROR] Annotation error: cannot resolve com.proximate.client.place.Marketplace$Tokenizer







Please help someone!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment