5 Replies Latest reply on Sep 12, 2011 1:56 PM by Christian Sadilek

    errai-codegen not shipped in RC1 or continuous-integration build

    Alvin McMurdy Newbie

      There is no errai-codegen jar in either the 1.3.0-CR1 zipfile ("Latest Releases")

      or the "Latest Build" zipfile.  Is that intentional, or an oversight?

       

      (Also, the "Latest Build" of Errai SE Edition has switched names since last Thursday,

      from "errai-distribution-2.0-SNAPSHOT.zip" to "errai-distribution-1.3.0-SNAPSHOT.zip",

      which seems odd.  The EE6 Edition is still "2.0-SNAPSHOT".)

        • 1. Re: errai-codegen not shipped in RC1 or continuous-integration build
          Christian Sadilek Master

          Yes, that's intentional. As of 1.3 the codegen framework is part of the errai-ioc.jar.

          • 2. Re: errai-codegen not shipped in RC1 or continuous-integration build
            Alvin McMurdy Newbie

            Ah... I see that now (digging deeper in the ioc jar).

             

            Any clues why I am seeing the following error message?

                 [java]    Scanning for additional dependencies: jar:file:/home/me/errai-2.0-SNAPSHOT/lib/errai-ioc-2.0-SNAPSHOT.jar!/org/jboss/errai/ioc/client/Container.java
                 [java]       Computing all possible rebind results for 'org.jboss.errai.ioc.client.api.Bootstrapper'
                 [java]          Rebinding org.jboss.errai.ioc.client.api.Bootstrapper
                 [java]             Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator
                 [java]                will scan in package: taskman
                 [java]                Generating Extensions Bootstrapper...
                 [java] java.lang.NoClassDefFoundError: org/jboss/errai/codegen/framework/builder/BlockBuilder
                 [java]     at org.jboss.errai.ioc.rebind.IOCGenerator.generateIOCBootstrapClass(IOCGenerator.java:128)
                 [java]     at org.jboss.errai.ioc.rebind.IOCGenerator.generate(IOCGenerator.java:102)
                 [java]     at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
                 [java]     at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
                 [java]     at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
                 [java]     at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
                 [java]     at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
                 [java]     at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
                 [java]     at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
                 [java]     at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
                 [java]     at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
                 [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
                 [java]     at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
                 [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
                 [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
                 [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
                 [java]     at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
                 [java]     at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
                 [java]     at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
                 [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
                 [java]     at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
                 [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
                 [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
                 [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
                 [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:232)
                 [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:198)
                 [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
                 [java]     at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
                 [java]     at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
                 [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:177)
                 [java] Caused by: java.lang.ClassNotFoundException: org.jboss.errai.codegen.framework.builder.BlockBuilder
                 [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
                 [java]     at java.security.AccessController.doPrivileged(Native Method)
                 [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
                 [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
                 [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
                 [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
            
            • 3. Re: errai-codegen not shipped in RC1 or continuous-integration build
              Alvin McMurdy Newbie

              (Also, for what it's worth, I'm attempting to try-out errai in an existing GWT project, which already

              uses either eclipse's magic for hosted-mode builds or ant for compiled-to-js builds --- so I'm avoiding

              any use of mvn.)

              • 4. Re: errai-codegen not shipped in RC1 or continuous-integration build
                Alvin McMurdy Newbie

                Ah-ha... the problem goes away if I use 1.3.0.CR1 (instead of a 2.0-SNAPSHOT from last Thursday).

                 

                And my frankenstein hack of the "HelloWorld" example into my existing GWT project works now.

                 

                I'm going to continue experimenting now; sorry for the chatter.  (If I may have uncovered a legitimate

                problem with the 2.0-SNAPSHOT build, I'll be happy to try to provide more information.)

                • 5. Re: errai-codegen not shipped in RC1 or continuous-integration build
                  Christian Sadilek Master

                  Yes, you will see this problem when using errai-ioc 2.0 without having errai-codgen on the classpath. With errai-ioc 1.3 you don't need the errai-codegen jar.