11 Replies Latest reply: Oct 3, 2011 1:41 AM by n3k0 RSS

    First try with Errai 1.3, Gwt 2.3 ... and fail :(

    n3k0 Newbie

      Good night, i have a trouble, like the title says....

      Well, the detail, is, the compile looks for a class that does not exist ExtensionsLoaderImpl.

      I go to  explain.

       

      I created a GWT project in eclipse ( by the way, i`m using jdk 1.6 ), and i copied the next libraries in /war/WEB-INF/lib path:

       

      aopalliance-1.0.jar  , dom4j-1.6.1.jar  , errai-bus-1.3.0-SNAPSHOT.jar  , errai-cdi-client-1.3.0-SNAPSHOT.jar  , errai-cdi-jetty-1.3.0-SNAPSHOT.jar

      , errai-common-1.3.0-SNAPSHOT.jar  , errai-ioc-1.3.0-SNAPSHOT.jar  , errai-javax-enterprise-1.3.0-SNAPSHOT.jar  , errai-persistence-1.3.0-SNAPSHOT.jar  , errai-tools-1.3.0-SNAPSHOT.jar  , errai-widgets-1.3.0-SNAPSHOT.jar  , google-collections-1.0.jar  , guava-r06.jar  , guice-2.0-aopalliance.jar  , guice-3.0.jar  , guice-servlet-2.0.jar  , gwt-servlet.jar  , hsqldb-1.8.0.7.jar  , javassist-3.12.1.GA.jar  , javax.inject-1.jar  , jsr250-api-1.0.jar , log4j-1.2.14.jar  , logback-classic-0.9.27.jar  , logback-core-0.9.27.jar  , msgpack-0.5.1-devel.jar  , mvel2-2.0.18-RC4.jar

      , reflections-0.9.6_jboss_errai_r2.jar , reflections.jar , slf4j-api-1.6.1.jar , slf4j-log4j12-1.5.10.jar , xml-apis-1.3.03.jar

       

      After that, i created a directory structure for my example

      And the structure is like this:

       

      com.service.errai.login.Login.gwt.xml

      com.service.errai.login.client.Login.java

      com.service.errai.login.server.TheRemoteServiceImpl.java

      com.service.errai.login.shared.TheRemoteService.java

       

      The code is very simple in all of classes and files:

       

      Login.gwt.xml

       

       

      <module>
      
          <inherits name="com.google.gwt.user.User"/>
          <inherits name="com.google.gwt.user.theme.standard.Standard"/>
          <inherits name="com.smartgwt.SmartGwt"/>
          <inherits name="org.jboss.errai.bus.ErraiBus"/>
      
          <source path="client"/>
          <source path="shared"/>
      
          <entry-point class="com.service.errai.login.client.Login"/>
      
      </module>
      

       

      Login.java

       

       

      package com.service.errai.login.client;
      
      import org.jboss.errai.bus.client.api.RemoteCallback;
      import org.jboss.errai.bus.client.api.base.MessageBuilder;
      
      import com.google.gwt.core.client.EntryPoint;
      import com.google.gwt.user.client.Window;
      import com.service.errai.login.shared.TheRemoteService;
      
      public class Login implements EntryPoint{
      
          public void onModuleLoad(){
              MessageBuilder.createCall(new RemoteCallback<Boolean>() {      
                  public void callback(Boolean isHappy) {                   
                       if (isHappy) Window.alert("Everyone is happy!");         
                  }                                                           
              }, TheRemoteService.class).isEveryoneHappy();     
          }
      }
      

       

      TheRemoteService.java

       


      package com.service.errai.login.shared;
      
      import org.jboss.errai.bus.server.annotations.Remote;
      
      @Remote
      public interface TheRemoteService {
          public boolean isEveryoneHappy();
      }
      

       

       

      TheRemoteServiceImpl.java

       


      package com.service.errai.login.server;
      
      import org.jboss.errai.bus.server.annotations.Service;
      
      import com.service.errai.login.shared.TheRemoteService;
      
      @Service("TheRemoteService")
      public class TheRemoteServiceImpl implements TheRemoteService {
      
          public boolean isEveryoneHappy() {
             return true;
          }
      }
      

       

       

       

      And that is all about the code, well, when i run the embedded Jetty server, a message appears on the Development Mode console

      The message is:

       

       

      05:46:01.381 [ERROR] [com.service.errai.login.Login] Could not load deferred binding result type 'org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl'
      
      java.lang.ClassNotFoundException: org$jboss$errai$bus$client$ext$ExtensionsLoaderImpl
          at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1054)
          at java.lang.ClassLoader.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.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)
          at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:458)
          at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
          at com.google.gwt.core.client.GWT.create(GWT.java:98)
          at org.jboss.errai.bus.client.api.builder.AbstractRemoteCallBuilder.call(AbstractRemoteCallBuilder.java:56)
          at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:122)
          at com.service.errai.login.client.Login.onModuleLoad(Login.java:13)
          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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
          at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
          at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
          at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
          at java.lang.Thread.run(Unknown Source)
      
      

       

       

      I checked all of my repository, and the class ExtensionsLoaderImpl does not exist!

       

      Thanks in advance for any guidance on this issue.

      Greetings..

        • 1. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
          Christian Sadilek Master

          ExtensionLoaderImpl is generated by Errai when your application starts up in dev mode or before your app gets compiled down to JavaScript. Do you see any additional error information (maybe when executing a full build)?

          • 2. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
            Christian Sadilek Master

            You can also pass -logLevel DEBUG to DevMode and look for errors so we can find out why ExtensionsLoaderImpl could not be generated.

            • 3. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
              n3k0 Newbie

              Well, i just have two additional things.

              In the console, when de app is compiling, it appears messages like these:

               

               

                     
              Found better fallback match for <replace-with class='com.google.gwt.core.client.impl.StringBufferImplAppend'/>
                      
              Checking rule <generate-with class='com.google.gwt.user.rebind.UserAgentGenerator'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-assignable class='com.google.gwt.user.client.UserAgentAsserter.UserAgentProperty'/>
                               
              No, the requested type was not assignable
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <generate-with class='com.google.gwt.user.rebind.UserAgentGenerator'/>
                      
              Checking rule <replace-with class='com.google.gwt.core.client.impl.CrossSiteIframeLoadingStrategy'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-type-is class='com.google.gwt.core.client.impl.AsyncFragmentLoader.LoadingStrategy'/>
                               
              Not an exact match
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <replace-with class='com.google.gwt.core.client.impl.CrossSiteIframeLoadingStrategy'/>
                      
              Checking rule <replace-with class='com.google.gwt.core.client.impl.CrossSiteLoadingStrategy'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-type-is class='com.google.gwt.core.client.impl.AsyncFragmentLoader.LoadingStrategy'/>
                               
              Not an exact match
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <replace-with class='com.google.gwt.core.client.impl.CrossSiteLoadingStrategy'/>
                      
              Checking rule <replace-with class='com.google.gwt.core.client.impl.AsyncFragmentLoader.StandardLogger'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-type-is class='com.google.gwt.core.client.impl.AsyncFragmentLoader.Logger'/>
                               
              Not an exact match
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <replace-with class='com.google.gwt.core.client.impl.AsyncFragmentLoader.StandardLogger'/>
                      
              Checking rule <replace-with class='com.google.gwt.core.client.impl.XhrLoadingStrategy'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-type-is class='com.google.gwt.core.client.impl.AsyncFragmentLoader.LoadingStrategy'/>
                               
              Not an exact match
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <replace-with class='com.google.gwt.core.client.impl.XhrLoadingStrategy'/>
                      
              Checking rule <replace-with class='com.google.gwt.core.client.impl.StackTraceCreator.CollectorEmulated'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-type-is class='com.google.gwt.core.client.impl.StackTraceCreator.Collector'/>
                               
              Not an exact match
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <replace-with class='com.google.gwt.core.client.impl.StackTraceCreator.CollectorEmulated'/>
                      
              Checking rule <replace-with class='com.google.gwt.core.client.impl.StringBufferImplArray'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-type-is class='com.google.gwt.core.client.impl.StringBufferImpl'/>
                               
              Not an exact match
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <replace-with class='com.google.gwt.core.client.impl.StringBufferImplArray'/>
                      
              Checking rule <replace-with class='com.google.gwt.logging.impl.LevelImplRegular'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-type-is class='com.google.gwt.logging.impl.LevelImplNull'/>
                               
              Not an exact match
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <replace-with class='com.google.gwt.logging.impl.LevelImplRegular'/>
                      
              Checking rule <replace-with class='com.google.gwt.logging.impl.LoggerImplRegular'/>
                         
              Checking if all subconditions are true (<all>)
                            
              <when-type-is class='com.google.gwt.logging.impl.LoggerImplNull'/>
                               
              Not an exact match
                            
              No: One or more subconditions was false
                      
              Rule did not match
                      
              Found better fallback match for <replace-with class='com.google.gwt.logging.impl.LoggerImplRegular'/>
                      
              Rebind result was com.google.gwt.i18n.client.BidiPolicy.BidiPolicyImpl
              
                 [ERROR] Cannot proceed due to previous errors
              
              

               

              I don't put all of them because are too much...

               

              And the other error message, is another one that appears in the developer console when the web navigator (ie 8) tries to open the app. this is in the first panel of the console:

               

              [DEBUG] [com.service.errai.login.Login] - Rebinding org.jboss.errai.bus.client.ext.ExtensionsLoader
                  [DEBUG] [com.service.errai.login.Login] - Checking rule <generate-with class='org.jboss.errai.bus.rebind.ExtensionProxyGenerator'/>
                      [DEBUG] [com.service.errai.login.Login] - Checking if all subconditions are true (<all>)
                          [DEBUG] [com.service.errai.login.Login] - <when-assignable class='org.jboss.errai.bus.client.ext.ExtensionsLoader'/>
                              [DEBUG] [com.service.errai.login.Login] - Yes, the requested type was assignable
                          [DEBUG] [com.service.errai.login.Login] - Yes: All subconditions were true
                  [DEBUG] [com.service.errai.login.Login] - Rule was a match and will be used
                  [DEBUG] [com.service.errai.login.Login] - Invoking generator org.jboss.errai.bus.rebind.ExtensionProxyGenerator
                      [INFO] [com.service.errai.login.Login] - Generating Extensions Bootstrapper...
                      [ERROR] [com.service.errai.login.Login] - Error generating extensions
                      [DEBUG] [com.service.errai.login.Login] - Generator returned class 'org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl'; in 1156 ms
                  [WARN] [com.service.errai.login.Login] - For the following type(s), generated source was never committed (did you forget to call commit()?)
                      [WARN] [com.service.errai.login.Login] - org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl
                  [DEBUG] [com.service.errai.login.Login] - Rebind result was org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl
              [ERROR] [com.service.errai.login.Login] - Could not load deferred binding result type 'org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl'
              

               

              and this, is the second one

               

               

              13:53:35.490 [ERROR] [com.service.errai.login.Login] Unable to load module entry point class com.service.errai.login.client.Login (see associated exception for details)
              
              java.lang.RuntimeException: Deferred binding failed for 'org.jboss.errai.bus.client.ext.ExtensionsLoader' (did you forget to inherit a required module?)
                  at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
                  at com.google.gwt.core.client.GWT.create(GWT.java:98)
                  at org.jboss.errai.bus.client.api.builder.AbstractRemoteCallBuilder.call(AbstractRemoteCallBuilder.java:56)
                  at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:122)
                  at com.service.errai.login.client.Login.onModuleLoad(Login.java:13)
                  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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                  at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
                  at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                  at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                  at java.lang.Thread.run(Unknown Source)
              Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
                  at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503)
                  at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
                  at com.google.gwt.core.client.GWT.create(GWT.java:98)
                  at org.jboss.errai.bus.client.api.builder.AbstractRemoteCallBuilder.call(AbstractRemoteCallBuilder.java:56)
                  at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:122)
                  at com.service.errai.login.client.Login.onModuleLoad(Login.java:13)
                  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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                  at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
                  at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                  at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                  at java.lang.Thread.run(Unknown Source)
              
              

               

               

              I don't have any idea, i build and deploy the errai examples, and all of them works, but i tried to build this from zero, and... well you are seeing the results, thanks in advance...

              • 4. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
                Christian Sadilek Master

                OK so this proves that ExtensionsLoaderImpl could not be generated. I think there should be some more information about this printed out.

                 

                One thing you should do is remove reflections.jar from the classpath. Just keep reflections-0.9.6_jboss_errai_r2.jar.

                • 5. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
                  n3k0 Newbie

                  I removed the reflections.jar and kept the reflections-0.9.6_jboss_errai_r2.jar as you said.

                  And remove the google-collections-1.0.jar  and add guava-r09.jar instead guava-r06.jar too.

                  One more thing, i inherited the ioc jar in the Login.gwt.xml  as follows:

                   

                   

                  <module>
                  
                      <inherits name="com.google.gwt.user.User"/>
                      <inherits name="com.google.gwt.user.theme.standard.Standard"/>
                      <inherits name="com.smartgwt.SmartGwt"/>
                  
                      <inherits name="org.jboss.errai.bus.ErraiBus"/>
                      <inherits name="org.jboss.errai.ioc.Container"/> <!-- this module-->
                  
                      <source path="client"/>
                      <source path="shared"/>
                  
                      <entry-point class="com.service.errai.login.client.Login"/>
                  
                  </module>
                  

                   

                  And... the exception is changed, in the console appears:

                   

                  15:49:36.537 [ERROR] [com.service.errai.login.Login] Could not load deferred binding result type 'org.jboss.errai.ioc.client.api.BootstrapperImpl'
                  
                  java.lang.ClassNotFoundException: org$jboss$errai$ioc$client$api$BootstrapperImpl
                      at com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1054)
                      at java.lang.ClassLoader.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.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)
                      at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:458)
                      at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
                      at com.google.gwt.core.client.GWT.create(GWT.java:98)
                      at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:31)
                      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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                      at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
                      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                      at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                      at java.lang.Thread.run(Unknown Source)
                  
                  

                   

                  And, in the Development mode console appears this.

                   

                  20:24:18.224 [ERROR] [com.service.errai.login.Login] Unable to load module entry point class org.jboss.errai.ioc.client.Container (see associated exception for details)
                  
                  java.lang.RuntimeException: Deferred binding failed for 'org.jboss.errai.ioc.client.api.Bootstrapper' (did you forget to inherit a required module?)
                      at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
                      at com.google.gwt.core.client.GWT.create(GWT.java:98)
                      at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:31)
                      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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                      at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
                      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                      at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                      at java.lang.Thread.run(Unknown Source)
                  Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
                      at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503)
                      at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
                      at com.google.gwt.core.client.GWT.create(GWT.java:98)
                      at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:31)
                      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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                      at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
                      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
                      at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                      at java.lang.Thread.run(Unknown Source)
                  
                  

                   

                  Now, the class is other, that is good news, i guess... any idea about this one?

                  The line with

                   

                   

                  java.lang.RuntimeException: Deferred binding failed for 'org.jboss.errai.ioc.client.api.Bootstrapper' (did you forget to inherit a required module?)
                  

                   

                  caught my attention ... did i forget to inherit another module? or is a errai's bug?

                   

                  One more time, thanks for the time that you take to answer me :¬)

                  • 6. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
                    Christian Sadilek Master

                    Was there a reason to upgrade guava? We are using r06 in our demos. In this case now the IOC Bootstrapper class could not be generated. What I am missing is the exceptions/stacktraces that occur at generation time. Is there nothing else printed out on your console/in your ide when you launch your app?

                    • 7. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
                      n3k0 Newbie

                      Ok, first, an apology for my late reply..

                      Second, here are the stack traces...

                       

                      First of the Developer mode console:

                       

                       

                      [DEBUG] [com.service.errai.login.Login] - Generator returned class 'org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl'; in 2016 ms
                      
                      [WARN] [com.service.errai.login.Login] - For the following type(s), generated source was never committed (did you forget to call commit()?)
                      
                      [WARN] [com.service.errai.login.Login] - org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl
                      
                      [DEBUG] [com.service.errai.login.Login] - Rebind result was org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl
                      
                      [ERROR] [com.service.errai.login.Login] - Could not load deferred binding result type 'org.jboss.errai.bus.client.ext.ExtensionsLoaderImpl'
                      [ERROR] [com.service.errai.login.Login] - Unable to load module entry point class org.jboss.errai.ioc.client.Container (see associated exception for details)
                      [ERROR] [com.service.errai.login.Login] - Failed to load module 'com.service.errai.login.Login' from user agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)' at localhost:1108
                      

                       

                      Second, when i clicked over the line:

                       

                      [ERROR] [com.service.errai.login.Login] - Failed to load module 'com.service.errai.login.Login' from user agent 'Mozilla/4.0 (compatible; MSIE 8.0;
                      

                       

                      At the bottom of the console, appears this:

                       

                       

                      java.lang.RuntimeException: Deferred binding failed for 'org.jboss.errai.bus.client.ext.ExtensionsLoader' (did you forget to inherit a required module?)
                          at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
                          at com.google.gwt.core.client.GWT.create(GWT.java:97)
                          at org.jboss.errai.bus.client.api.builder.AbstractRemoteCallBuilder.call(AbstractRemoteCallBuilder.java:56)
                          at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:122)
                          at com.service.errai.login.client.Login.onModuleLoad(Login.java:26)
                          at org.jboss.errai.ioc.client.api.BootstrapperImpl.bootstrapContainer(BootstrapperImpl.java:13)
                          at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:33)
                          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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                          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(Unknown Source)
                      Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
                          at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503)
                          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.bus.client.api.builder.AbstractRemoteCallBuilder.call(AbstractRemoteCallBuilder.java:56)
                          at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:122)
                          at com.service.errai.login.client.Login.onModuleLoad(Login.java:26)
                          at org.jboss.errai.ioc.client.api.BootstrapperImpl.bootstrapContainer(BootstrapperImpl.java:13)
                          at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:33)
                          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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                          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(Unknown Source)
                      

                       

                       

                      At last, in the console, appears the next exceptions:

                       

                       

                      01:28:56.958 [Code server for com.service.errai.login.Login from Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2) on http://127.0.0.1:8888/Login.html?gwt.codesvr=127.0.0.1:9997 @ De\4uDSH*g>ebsn*] INFO  org.reflections.Reflections - Reflections took 469 ms to scan 5 urls, producing 168 keys and 521 values 
                      not printing results...
                      java.lang.RuntimeException: Failed to load type org.jboss.errai.enterprise.client.cdi.events.BusReadyEvent
                          at org.jboss.errai.bus.rebind.BusClientConfigGenerator.loadType(BusClientConfigGenerator.java:136)
                          at org.jboss.errai.bus.rebind.BusClientConfigGenerator.generate(BusClientConfigGenerator.java:71)
                          at org.jboss.errai.bus.rebind.ExtensionProxyGenerator.generateExtensions(ExtensionProxyGenerator.java:130)
                          at org.jboss.errai.bus.rebind.ExtensionProxyGenerator.generateClass(ExtensionProxyGenerator.java:108)
                          at org.jboss.errai.bus.rebind.ExtensionProxyGenerator.generate(ExtensionProxyGenerator.java:64)
                          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.bus.client.api.builder.AbstractRemoteCallBuilder.call(AbstractRemoteCallBuilder.java:56)
                          at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:122)
                          at com.service.errai.login.client.Login.onModuleLoad(Login.java:26)
                          at org.jboss.errai.ioc.client.api.BootstrapperImpl.bootstrapContainer(BootstrapperImpl.java:13)
                          at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:33)
                          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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                          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(Unknown Source)
                      Caused by: com.google.gwt.core.ext.typeinfo.NotFoundException: org.jboss.errai.enterprise.client.cdi.events.BusReadyEvent
                          at com.google.gwt.dev.javac.typemodel.TypeOracle.getType(TypeOracle.java:588)
                          at com.google.gwt.dev.javac.typemodel.TypeOracle.getType(TypeOracle.java:70)
                          at org.jboss.errai.bus.rebind.BusClientConfigGenerator.loadType(BusClientConfigGenerator.java:133)
                          ... 29 more
                      

                       

                       

                      That's all of the errors ....

                      You're right, the exception is in the generator, not in the guava library, i add again the guava-r06.jar but, independlly of the libraries, the exception is the same in all cases... thanks for pay attention to my request..

                      • 8. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
                        Christian Sadilek Master

                        OK, so the relevant line is:

                         

                        Caused by: com.google.gwt.core.ext.typeinfo.NotFoundException:

                        org.jboss.errai.enterprise.client.cdi.events.BusReadyEvent

                         

                         

                        Make sure that the errai-cdi-client.jar is on your classpath and that the CDI module is inherited in your gwt.xml

                        <inherits name="org.jboss.errai.enterprise.CDI"/>

                         

                        • 9. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
                          n3k0 Newbie

                          With that line in my Login.gwt.xml file my example compiles... but unfortunatelly, it does not make something yet....

                           

                          Well, first, i put my last Login.gwt.xml

                           

                          <module>
                          
                              <inherits name="com.google.gwt.user.User"/>
                              <inherits name="com.google.gwt.user.theme.standard.Standard"/>
                              <inherits name="com.smartgwt.SmartGwt"/>
                              <inherits name="org.jboss.errai.bus.ErraiBus"/>
                              <inherits name="org.jboss.errai.ioc.Container"/>
                              <inherits name="org.jboss.errai.enterprise.CDI"/>  <!-- the module that you said-->
                          
                               
                              
                          </module>
                          

                           

                           

                          Login.java

                           

                           

                          package com.service.errai.login.client;
                           
                          import org.jboss.errai.bus.client.api.RemoteCallback;
                          import org.jboss.errai.bus.client.api.base.MessageBuilder;
                           
                          import com.google.gwt.core.client.EntryPoint;
                          import com.google.gwt.user.client.Window;
                          import com.service.errai.login.shared.TheRemoteService;
                           
                          public class Login implements EntryPoint{
                           
                              public void onModuleLoad(){
                                  MessageBuilder.createCall(new RemoteCallback<Boolean>() {      
                                      public void callback(Boolean isHappy) {                   
                                           if (isHappy) Window.alert("Everyone is happy!");         
                                      }                                                           
                                  }, TheRemoteService.class).isEveryoneHappy();     
                              }
                          }
                          
                          

                           

                          TheRemoteService.java

                           

                           

                          package com.service.errai.login.client.shared;
                          
                          import org.jboss.errai.bus.server.annotations.Remote;
                          
                          @Remote
                          public interface TheRemoteService {
                              public boolean isEveryoneHappy();
                          }
                          

                           

                           

                          TheRemoteServiceImpl.java

                           


                          package com.service.errai.login.server;
                          
                          import javax.inject.Inject;
                          
                          import org.jboss.errai.bus.client.framework.MessageBus;
                          import org.jboss.errai.bus.server.annotations.Service;
                          
                          import com.service.errai.login.client.shared.TheRemoteService;
                          
                          @Service
                          public class TheRemoteServiceImpl implements TheRemoteService {
                          
                              private MessageBus bus;
                          
                              @Inject
                              public TheRemoteServiceImpl( MessageBus bus ){
                                  this.setBus(bus);
                              }
                          
                              public boolean isEveryoneHappy() {
                                 return true;
                              }
                          
                              /**
                               * @return the bus
                               */
                              public MessageBus getBus() {
                                  return bus;
                              }
                          
                              /**
                               * @param bus the bus to set
                               */
                              public void setBus(MessageBus bus) {
                                  this.bus = bus;
                              }
                          }
                          

                           

                           

                           

                          In the Developer Mode console (top )appears this:

                           

                           

                          [DEBUG] [com.service.errai.login.Login] - Rebinding org.jboss.errai.bus.client.ext.ExtensionsLoader
                          [ERROR] [com.service.errai.login.Login] - Unable to load module entry point class org.jboss.errai.ioc.client.Container (see associated exception for details)
                          [ERROR] [com.service.errai.login.Login] - Failed to load module 'com.service.errai.login.Login' from user agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)' at localhost:3409
                          

                           

                          In the Developer Mode console  (below ) appears this:

                           

                           

                           [ERROR] [com.service.errai.login.Login] Unable to load module entry point class org.jboss.errai.ioc.client.Container (see associated exception for details)
                          java.lang.RuntimeException: No service definition for: com.service.errai.login.client.shared.TheRemoteService
                              at org.jboss.errai.bus.client.api.builder.AbstractRemoteCallBuilder.call(AbstractRemoteCallBuilder.java:59)
                              at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:122)
                              at com.service.errai.login.client.local.Login.onModuleLoad(Login.java:27)
                              at org.jboss.errai.ioc.client.api.BootstrapperImpl.bootstrapContainer(BootstrapperImpl.java:13)
                              at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:33)
                              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.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
                              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(Unknown Source)
                          

                           

                          The browser shows:

                           

                           

                          onModuleLoad() threw an exception
                          
                          Exception while loading module org.jboss.errai.ioc.client.Container. See Development Mode for details.
                          java.lang.reflect.InvocationTargetException 
                          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.shell.ModuleSpace.onLoad(ModuleSpace.java:396) 
                          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(Unknown Source) 
                          Caused by: java.lang.RuntimeException: No service definition for: com.service.errai.login.client.shared.TheRemoteService 
                          at org.jboss.errai.bus.client.api.builder.AbstractRemoteCallBuilder.call(AbstractRemoteCallBuilder.java:59) 
                          at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:122) 
                          at com.service.errai.login.client.local.Login.onModuleLoad(Login.java:27) 
                          at org.jboss.errai.ioc.client.api.BootstrapperImpl.bootstrapContainer(BootstrapperImpl.java:13) 
                          at org.jboss.errai.ioc.client.Container.onModuleLoad(Container.java:33) ... 9 more 
                          
                          

                           

                          The regular console not presents any exceptions messages, but informative, like this:

                           

                          03:22:43.859 [Code server for com.service.errai.login.Login from Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2) on http://127.0.0.1:8888/Login.html?gwt.codesvr=127.0.0.1:9997 @ lN+3C^yo#L,@EiY4] INFO  org.reflections.Reflections - Reflections took 328 ms to scan 5 urls, producing 169 keys and 522 values 
                          not printing results...
                          
                          03:22:45.156 [Code server for com.service.errai.login.Login from Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2) on http://127.0.0.1:8888/Login.html?gwt.codesvr=127.0.0.1:9997 @ lN+3C^yo#L,@EiY4] DEBUG o.j.e.b.r.BusClientConfigGenerator - generated marshaller: 
                          
                          

                           

                          Is something wrong with my configuration? is missing some annotation, interface/method implementation?

                          Once again, thanks for the time you spend to help me...

                          • 10. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
                            Christian Sadilek Master

                            The problem there is that you are invoking the RPC immediately in onModuleLoad(). See this thread for a description of the problem: http://community.jboss.org/thread/172499.

                             

                            Basically, the problem is that the bus might not be fully initialized at that time. So you can either use a PostInitTask or invoke the RPC call in reponse to a user activity (e.g. a button click).

                            • 11. Re: First try with Errai 1.3, Gwt 2.3 ... and fail :(
                              n3k0 Newbie

                              Thanks for the link, i rewrote the file Login.java,  it looks like this:

                               

                               

                              package com.service.errai.login.client.local;
                              
                              import javax.annotation.PostConstruct;
                              import javax.inject.Inject;
                              
                              import org.jboss.errai.bus.client.api.RemoteCallback;
                              import org.jboss.errai.bus.client.api.base.MessageBuilder;
                              
                              import com.google.gwt.user.client.Window;
                              import com.service.errai.login.client.shared.TheRemoteService;
                              
                              import org.jboss.errai.bus.client.framework.ClientMessageBus;
                              import org.jboss.errai.bus.client.framework.MessageBus;
                              import org.jboss.errai.ioc.client.api.EntryPoint;
                              
                              @EntryPoint
                              public class Login {
                              
                                  private MessageBus bus;
                              
                                  @Inject
                                   public Login(MessageBus bus) {
                                      this.setBus(bus);
                                   }
                              
                                  @PostConstruct
                                  public void onModuleLoad(){
                                      ((ClientMessageBus) bus).addPostInitTask(new Runnable() {
                                             public void run() {
                                                 MessageBuilder.createCall(new RemoteCallback<Boolean>() {      
                                                     public void callback(Boolean isHappy) {                   
                                                         if (isHappy) Window.alert("Everyone is happy!");         
                                                     }                                                           
                                                 }, TheRemoteService.class).isEveryoneHappy();
                                             }
                                      });
                                  }
                              
                                  /**
                                   * @return the bus
                                   */
                                  public MessageBus getBus() {
                                      return bus;
                                  }
                              
                                  /**
                                   * @param bus the bus to set
                                   */
                                  public void setBus(MessageBus bus) {
                                      this.bus = bus;
                                  }
                              }
                              

                               

                              The other files are the same.

                               

                              And now, everyone is happy!!! thanks so much for your guindance  :¬)

                               

                              Here a pic:

                              http://min.us/lbhgz7UJJ00XCc