2 Replies Latest reply on Sep 15, 2012 9:54 AM by Markus Michaels

    More errors when starting errai project from eclipse with jetty in devmode

    Markus Michaels Newbie

      When starting errai from eclipse with jetty in devmode, i get the following errors:

       

      This one:

       

       

      10:26:34.656 [ERROR] [MySample] Annotation error: cannot resolve org.jboss.tools.gwt.kitchensink.client.shared.Member
      java.lang.ClassNotFoundException: org.jboss.tools.gwt.kitchensink.client.shared.Member
          at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
          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.DevModeBase$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:110)
          at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:197)
          at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
          at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
          at java.lang.Thread.run(Thread.java:722)
      
      
      

       

      And this

       

       

      
      java.lang.RuntimeException: a new annotation has been introduced (org.jboss.tools.gwt.kitchensink.client.shared.Authenticated); you cannot currently introduce new annotations in devmode. Please restart.
          at org.jboss.errai.codegen.meta.impl.gwt.GWTUtil.populateMetaClassFactoryFromTypeOracle(GWTUtil.java:158)
          at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:219)
          at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
          at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
          at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
          at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
          at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
          at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
          at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585)
          at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)
          at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
          at com.google.gwt.core.client.GWT.create(GWT.java:97)
          at org.jboss.errai.marshalling.client.api.MarshallerFramework.<clinit>(MarshallerFramework.java:42)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:264)
          at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)
          at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:363)
          at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
          at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
          at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
          at java.lang.Thread.run(Thread.java:722)
      
      

       

      This confuses me, since i added the classes output folder to my run configuration. I have checked, the Member class is there. The annotation error is probably because in gwt you cannot have runtime reflection. But how can i address this problem?

       

      Thanks for any help.

       

      Regards,

      Markus