5 Replies Latest reply on Dec 28, 2016 10:34 AM by Max Barkley

    RuntimeException: There are no proxy providers registered

    Mathieu Moloney Newbie

      I can't get any RPC / Rest calls to work, this error occurs during the call to  :

       

          @PageShown

          void onPageShown() {              

              MessageBuilder.createCall((final Result result) -> {

                  Window.alert("Result received : " + result.toString());

              }, ResultService.class).getResult(number);

          }

      .

      Remote service interface :

       

          @Remote

          public interface ResultService {

             

              Result getResult(final int number);

          }

      .

      Remote service implementation :

       

          @Service

          public class ResultServiceImpl implements ResultService {

             

              @Override

              public Result getResult(final int number) {

                  final Result result= new Result();

                  result.setNumber();

                  return result;

              }

          }

      .

      And the DTO

       

          @Portable

          public class Result implements Serializable {

             

              private Integer number;

         

              public Integer getNumber() {

                  return number;

              }

         

              public void setNumber(Integer number) {

                  this.number = number;

              }

          }

       

       

      Note that I do not have errai-weld-integration.jar on the classpath, so I have included in web.xml :

      I think weld-integration is not compatible with v4.0.0.6Beta, I am using errai-cdi-server which seems to make no difference, I still need to declare the servlet in web.xml

       

         <servlet>

              <servlet-name>ErraiServlet</servlet-name>

              <servlet-class>org.jboss.errai.bus.server.servlet.DefaultBlockingServlet</servlet-class>

              <init-param>

                  <param-name>auto-discover-services</param-name>

                  <param-value>true</param-value>

              </init-param>

              <load-on-startup>1</load-on-startup>

          </servlet>

       

          <servlet-mapping>

              <servlet-name>ErraiServlet</servlet-name>

              <url-pattern>*.erraiBus</url-pattern>

          </servlet-mapping>

       

       

         21:54:13 INFO [ClientMessageBus] sending handshake message to remote bus ErraiConsoleLogHandler.java:83

          21:54:14 INFO [ClientMessageBusImpl$ProtocolCommandProcessor] my queue session id: 76bdafb05de7da7fa1b813b094cf9a603a7687d383be8adce610f546c5ae2f

      • The method onPageShown() fails systematically with :

          @ Impl.java:77

              ErraiConsoleLogHandler.java:87 java.lang.RuntimeException: There are no proxy providers registered.

              at Unknown.mC_g$(gwt-0.js@8:15844)

              at Unknown.SC_g$(gwt-0.js@9:16086)

              at Unknown.$C_g$(gwt-0.js@9:16133)

              at Unknown.pxh_g$(gwt-0.js@18:69213)

              at Unknown.dih_g$(gwt-0.js@32:64112)

              at Unknown.cih_g$(gwt-0.js@15:64107)

              at Unknown.ohh_g$(gwt-0.js@33:63833)

              at Unknown.Hoj_g$(gwt-0.js@10:95034)

              at Unknown.Moj_g$(gwt-0.js@17:92018)

              at Unknown.xnj_g$(gwt-0.js@8:92069)

              at Unknown.UTi_g$(gwt-0.js@8:92010)

              at Unknown.ZQi_g$(gwt-0.js@44:91116)

              at Unknown.nni_g$(gwt-0.js@29:83698)

              at Unknown.mni_g$(gwt-0.js@8:83678)

              at Unknown.Eki_g$(gwt-0.js@17:83434)

              at Unknown.Pmi_g$(gwt-0.js@235:83547)

              at Unknown.VQi_g$(gwt-0.js@20:91079)

              at Unknown.RSi_g$(gwt-0.js@24:91654)

              at Unknown.Jnj_g$(gwt-0.js@16:92298)

              at Unknown.Inj_g$(gwt-0.js@8:92267)

              at Unknown.CQi_g$(gwt-0.js@27:90932)

              at Unknown.uQi_g$(gwt-0.js@12:90715)

              at Unknown.eRi_g$(gwt-0.js@24:91166)

              at Unknown.Eki_g$(gwt-0.js@17:83434)

              at Unknown.WTi_g$(gwt-0.js@258:92073)

              at Unknown.xQi_g$(gwt-0.js@30:90886)

              at Unknown.yQi_g$(gwt-0.js@8:90899)

              at Unknown.JQi_g$(gwt-0.js@27:90985)

              at Unknown.mMd_g$(gwt-0.js@16:24218)

              at Unknown.nMd_g$(gwt-0.js@8:24214)

              at Unknown.mCd_g$(gwt-0.js@8:23070)

              at Unknown.LMd_g$(gwt-0.js@14:24331)

              at Unknown.WMd_g$(gwt-0.js@9:24429)

              at Unknown.aNd_g$(gwt-0.js@8:24502)

              at Unknown.DMd_g$(gwt-0.js@24:24280)

              at Unknown.lwe_g$(gwt-0.js@22:34875)

              at Unknown.oMd_g$(gwt-0.js@17:24182)

              at Unknown.mwe_g$(gwt-0.js@3:34879)

              at Unknown.cwe_g$(gwt-0.js@29:34818)

              at Unknown.Fcc_g$(gwt-0.js@28:17186)

              at Unknown.Icc_g$(gwt-0.js@16:17242)

              at Unknown.anonymous(gwt-0.js@14:17222)

       

      I am building a Java SE application with an embedded Jetty server and my own Weld implementation :

       

              <dependency>

                  <groupId>org.jboss.errai</groupId>

                  <artifactId>errai-javaee-all</artifactId>

                  <version>4.0.0.Beta6</version>

              </dependency>

              <dependency>

                  <groupId>org.jboss.errai</groupId>

                  <artifactId>errai-cdi-server</artifactId>

                  <version>4.0.0.Beta6</version>

              </dependency>

              <dependency>

                  <groupId>org.jboss.weld.se</groupId>

                  <artifactId>weld-se</artifactId>

                  <version>2.4.0.Final</version>

              </dependency>

        • 1. Re: RuntimeException: There are no proxy providers registered
          Max Barkley Expert

          Hi Mathieu,

           

          In my experience there are two things that can cause this issue. The first possibility is that a remote proxy has not been generated for @Remote interface. You can check for this by running super devmode and opening the app in chrome: use the chrome dev tools source tab and search for the RpcProxyLoaderImpl. If the RpcProxyLoaderImpl does not contain an inner class that extends your @Remote interface or you cannot find the RpcProxyLoaderImpl type, then there was a problem generating the @Remote interface. Usually this issue is fixed by clearing your GWT code server cache in SDM (launch SDM, go to the codeserver URL in a browser, navigate to your app, click the "clear cache" button).

           

          The other possibility is that your @PageShown method is invoked before the proxies are registered. This shouldn't happen, but I have recently observed this behaviour in a demo. You can test for this by changing your @PageShown to an @AfterInitialization.

           

          Cheers.

          • 2. Re: RuntimeException: There are no proxy providers registered
            Mathieu Moloney Newbie

            Hi Max,

             

            It seems that I had some serious build issues, they're resolved now.

             

            I think the reason for my troubles is that the output directory is outside the ${basedir}. The org.jboss.errai.cdi.* and org.jboss.errai.marshalling.* classes were not created (or only created in the temp directory and never copied to /WEB-INF/classes. The compiler output is below :

             

            Is there any way to configure the output directory ?

             

               Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'

                  Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                     Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                        Generating Marshallers Bootstrapper...

            16:08:09.608 [main] INFO  o.j.errai.common.rebind.CacheUtil - clearing all generation caches...

            16:08:10.871 [Thread-13] INFO  o.j.errai.reflections.Reflections - Reflections took 676 ms to scan 15 urls, producing 551 keys and 3599 values [using 2 cores]

            16:08:10.908 [main] INFO  o.j.e.config.rebind.AsyncGenerators - discovered async generator org.jboss.errai.ui.rebind.TranslationServiceGenerator; for type: org.jboss.errai.ui.client.local.spi.TranslationService

            16:08:10.909 [main] INFO  o.j.e.config.rebind.AsyncGenerators - discovered async generator org.jboss.errai.enterprise.rebind.EventQualifierSerializerGenerator; for type: org.jboss.errai.enterprise.client.cdi.EventQualifierSerializer

            16:08:10.910 [main] INFO  o.j.e.config.rebind.AsyncGenerators - discovered async generator org.jboss.errai.bus.rebind.RpcProxyLoaderGenerator; for type: org.jboss.errai.bus.client.framework.RpcProxyLoader

            16:08:10.911 [main] INFO  o.j.e.config.rebind.AsyncGenerators - discovered async generator org.jboss.errai.marshalling.rebind.MarshallersGenerator; for type: org.jboss.errai.marshalling.client.api.MarshallerFactory

            16:08:10.915 [main] INFO  o.j.e.config.rebind.AsyncGenerators - discovered async generator org.jboss.errai.ui.nav.rebind.NavigationGraphGenerator; for type: org.jboss.errai.ui.nav.client.local.spi.NavigationGraph

            16:08:10.917 [main] INFO  o.j.e.config.rebind.AsyncGenerators - discovered async generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator; for type: org.jboss.errai.ioc.client.Bootstrapper

            16:08:10.918 [main] INFO  o.j.e.config.rebind.AsyncGenerators - discovered async generator org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator; for type: org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader

            16:08:10.927 [main] INFO  o.j.e.config.rebind.AsyncGenerators - discovered async generator org.jboss.errai.databinding.rebind.BindableProxyLoaderGenerator; for type: org.jboss.errai.databinding.client.BindableProxyLoader

            16:08:10.929 [pool-4-thread-1] INFO  o.j.e.c.r.AbstractAsyncGenerator - Running generator org.jboss.errai.ui.nav.rebind.NavigationGraphGenerator

            16:08:10.936 [pool-4-thread-2] INFO  o.j.e.c.r.AbstractAsyncGenerator - Running generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

            16:08:10.938 [pool-4-thread-3] INFO  o.j.e.c.r.AbstractAsyncGenerator - Running generator org.jboss.errai.bus.rebind.RpcProxyLoaderGenerator

            16:08:10.938 [pool-4-thread-3] INFO  o.j.e.b.r.RpcProxyLoaderGenerator - generating RPC proxy loader class...

            16:08:10.939 [pool-4-thread-4] INFO  o.j.e.c.r.AbstractAsyncGenerator - Running generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

            16:08:10.943 [pool-4-thread-2] INFO  o.j.e.i.r.i.b.IOCBootstrapGenerator - generating IOC bootstrapping class...

                        Checking ErraiApp.properties for configured types ...

            16:08:10.994 [pool-4-thread-4] INFO  o.j.e.m.r.MarshallerGeneratorFactory - generating marshaller factory class for server...

            16:08:11.256 [pool-4-thread-3] INFO  o.j.e.b.r.RpcProxyLoaderGenerator - generated RPC proxy loader class in 308ms.

            16:08:11.257 [pool-4-thread-3] INFO  o.j.e.c.r.AbstractAsyncGenerator - Running generator org.jboss.errai.databinding.rebind.BindableProxyLoaderGenerator

            16:08:11.408 [pool-4-thread-3] INFO  o.j.e.c.r.AbstractAsyncGenerator - Running generator org.jboss.errai.ui.rebind.TranslationServiceGenerator

            16:08:11.418 [pool-4-thread-3] INFO  o.j.e.u.r.TranslationServiceGenerator - Preparing to scan for i18n bundle files.

            16:08:11.501 [pool-4-thread-3] INFO  o.j.errai.reflections.Reflections - Reflections took 81 ms to scan 15 urls, producing 0 keys and 0 values

            16:08:11.517 [pool-4-thread-1] INFO  o.j.e.c.r.AbstractAsyncGenerator - Running generator org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator

            16:08:11.597 [pool-4-thread-1] INFO  o.j.e.c.r.AbstractAsyncGenerator - Running generator org.jboss.errai.enterprise.rebind.EventQualifierSerializerGenerator

            16:08:11.598 [pool-4-thread-1] INFO  o.j.e.e.r.EventQualifierSerializerGenerator - Generating org.jboss.errai.cdi.EventQualifierSerializerImpl...

            16:08:11.680 [pool-4-thread-1] INFO  o.j.e.e.r.EventQualifierSerializerGenerator - Generating class file for server.

            16:08:11.685 [pool-4-thread-1] INFO  o.j.e.e.r.EventQualifierSerializerGenerator - No output directory set. Attempting to discover target directory and write class file.

            16:08:11.687 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Searching candidate output directories...

            16:08:11.690 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target/classes/' as an output path...

            16:08:11.691 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target\classes because it does not exist

            16:08:11.691 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target/war/WEB-INF/classes/' as an output path...

            16:08:11.691 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target\war\WEB-INF\classes because it does not exist

            16:08:11.691 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\src/main/webapp/WEB-INF/classes/' as an output path...

            16:08:11.691 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\src\main\webapp\WEB-INF\classes because it does not exist

            16:08:11.691 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\WEB-INF/classes/' as an output path...

            16:08:11.691 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\WEB-INF\classes because it does not exist

            16:08:11.691 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\war/WEB-INF/classes/' as an output path...

            16:08:11.692 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\war\WEB-INF\classes because it does not exist

            16:08:11.692 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\web/WEB-INF/classes/' as an output path...

            16:08:11.693 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\web\WEB-INF\classes because it does not exist

            16:08:11.937 [pool-4-thread-4] INFO  o.j.e.m.r.MarshallerGeneratorFactory - generated marshaller factory class in 943ms.

            16:08:11.937 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Searching candidate output directories...

            16:08:11.938 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target/classes/' as an output path...

            16:08:11.938 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target\classes because it does not exist

            16:08:11.938 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target/war/WEB-INF/classes/' as an output path...

            16:08:11.938 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target\war\WEB-INF\classes because it does not exist

            16:08:11.939 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\src/main/webapp/WEB-INF/classes/' as an output path...

            16:08:11.941 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\src\main\webapp\WEB-INF\classes because it does not exist

            16:08:11.943 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\WEB-INF/classes/' as an output path...

            16:08:11.944 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\WEB-INF\classes because it does not exist

            16:08:11.945 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\war/WEB-INF/classes/' as an output path...

            16:08:11.945 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\war\WEB-INF\classes because it does not exist

            16:08:11.946 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\web/WEB-INF/classes/' as an output path...

            16:08:11.946 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\web\WEB-INF\classes because it does not exist

            16:08:11.978 [pool-4-thread-1] INFO  o.j.e.codegen.util.ClassChangeUtil - Searching for class: org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl

            16:08:11.986 [pool-4-thread-1] INFO  o.j.e.codegen.util.ClassChangeUtil - Could not find URL for org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl. Attempting to load with context class loader.

            16:08:11.986 [pool-4-thread-1] WARN  o.j.e.codegen.util.ClassChangeUtil - Could not load org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl class.

            16:08:11.990 [pool-4-thread-1] WARN  ErraiMarshalling - using dynamic marshallers. dynamic marshallers are designed for development mode testing, and ideally should not be used in production. *

            16:08:12.440 [pool-4-thread-4] WARN  o.j.e.m.r.util.OutputDirectoryUtil -  ** NO ROOTS FOUND!

            16:08:12.443 [pool-4-thread-4] WARN  o.j.e.common.metadata.RebindUtils - could not determine module location, using CWD

            16:08:12.444 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\target/classes/' as an output path...

            16:08:12.444 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target\classes because it does not exist

            16:08:12.444 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\war/WEB-INF/classes/' as an output path...

            16:08:12.444 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\war\WEB-INF\classes because it does not exist

            16:08:12.445 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\target/war/WEB-INF/classes/' as an output path...

            16:08:12.445 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target\war\WEB-INF\classes because it does not exist

            16:08:12.446 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\web/WEB-INF/classes/' as an output path...

            16:08:12.446 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\web\WEB-INF\classes because it does not exist

            16:08:12.446 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\src/main/webapp/WEB-INF/classes/' as an output path...

            16:08:12.446 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\src\main\webapp\WEB-INF\classes because it does not exist

            16:08:12.448 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\WEB-INF/classes/' as an output path...

            16:08:12.449 [pool-4-thread-4] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\WEB-INF\classes because it does not exist

            16:08:12.450 [pool-4-thread-4] WARN  o.j.e.m.r.util.OutputDirectoryUtil -    A target output could not be resolved through configuration or auto-detection!

               Your deployment may be missing required class files.

            16:08:12.451 [pool-4-thread-4] INFO  o.j.e.m.r.MarshallerGeneratorFactory - generating marshaller factory class for client...

            16:08:12.493 [pool-4-thread-1] WARN  o.j.e.m.r.util.OutputDirectoryUtil -  ** NO ROOTS FOUND!

            16:08:12.495 [pool-4-thread-1] WARN  o.j.e.common.metadata.RebindUtils - could not determine module location, using CWD

            16:08:12.495 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\target/classes/' as an output path...

            16:08:12.496 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target\classes because it does not exist

            16:08:12.496 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\war/WEB-INF/classes/' as an output path...

            16:08:12.497 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\war\WEB-INF\classes because it does not exist

            16:08:12.497 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\target/war/WEB-INF/classes/' as an output path...

            16:08:12.498 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\target\war\WEB-INF\classes because it does not exist

            16:08:12.498 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\web/WEB-INF/classes/' as an output path...

            16:08:12.498 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\web\WEB-INF\classes because it does not exist

            16:08:12.498 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\src/main/webapp/WEB-INF/classes/' as an output path...

            16:08:12.498 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\src\main\webapp\WEB-INF\classes because it does not exist

            16:08:12.498 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil - Considering 'C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision/\WEB-INF/classes/' as an output path...

            16:08:12.498 [pool-4-thread-1] INFO  o.j.e.m.r.util.OutputDirectoryUtil -    Rejecting C:\Users\mjmen\Documents\NetBeansProjects\Supervision2\Supervision\WEB-INF\classes because it does not exist

            16:08:12.498 [pool-4-thread-1] WARN  o.j.e.m.r.util.OutputDirectoryUtil -    A target output could not be resolved through configuration or auto-detection!

               Your deployment may be missing required class files.

            16:08:13.333 [pool-4-thread-4] INFO  o.j.e.m.r.MarshallerGeneratorFactory - generated marshaller factory class in 873ms.

                  Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                     Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                        Generating Marshallers Bootstrapper...

                  Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                     Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                        Generating Marshallers Bootstrapper...

                  Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                     Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                        Generating Marshallers Bootstrapper...

                  Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                     Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                        Generating Marshallers Bootstrapper...

               Computing all possible rebind results for 'org.jboss.errai.ioc.client.container.IOCEnvironment'

                  Rebinding org.jboss.errai.ioc.client.container.IOCEnvironment

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCEnvironmentGenerator

                        Generating Extensions Bootstrapper...

                  Rebinding org.jboss.errai.ioc.client.container.IOCEnvironment

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCEnvironmentGenerator

                        Generating Extensions Bootstrapper...

                  Rebinding org.jboss.errai.ioc.client.container.IOCEnvironment

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCEnvironmentGenerator

                        Generating Extensions Bootstrapper...

                  Rebinding org.jboss.errai.ioc.client.container.IOCEnvironment

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCEnvironmentGenerator

                        Generating Extensions Bootstrapper...

                  Rebinding org.jboss.errai.ioc.client.container.IOCEnvironment

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCEnvironmentGenerator

                        Generating Extensions Bootstrapper...

               Computing all possible rebind results for 'org.jboss.errai.ioc.client.Bootstrapper'

                  Rebinding org.jboss.errai.ioc.client.Bootstrapper

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

                        generating ioc bootstrapping code...

            16:08:16.619 [pool-4-thread-2] INFO  o.j.e.i.r.i.b.IOCProcessor - Reachability strategy set to Annotated

            16:08:16.787 [pool-4-thread-2] INFO  o.j.e.i.r.i.b.IOCBootstrapGenerator - generated IOC bootstrapping class in 5844ms

                  Rebinding org.jboss.errai.ioc.client.Bootstrapper

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

                        generating ioc bootstrapping code...

                  Rebinding org.jboss.errai.ioc.client.Bootstrapper

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

                        generating ioc bootstrapping code...

                  Rebinding org.jboss.errai.ioc.client.Bootstrapper

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

                        generating ioc bootstrapping code...

                  Rebinding org.jboss.errai.ioc.client.Bootstrapper

                     Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

                        generating ioc bootstrapping code...

            16:08:17.781 [main] INFO  o.j.e.i.r.i.b.QualifierEqualityFactoryGenerator - Generating QualifierEqualityFactory...

            16:08:17.807 [main] INFO  o.j.e.i.r.i.b.QualifierEqualityFactoryGenerator - Generated QualifierEqualityFactory in 26ms

            16:08:18.235 [main] WARN  o.j.e.u.r.TemplatedCodeDecorator - The @Templated class, sotec.supervision.automate.webservices.gwt.client.inverter.InverterList, extends Composite. This will not be supported in future versions.

            16:08:18.382 [main] INFO  o.j.e.e.r.NonGwtEventQualifierSerializerGenerator - Attempting to load org.jboss.errai.cdi.EventQualifierSerializerImpl

            16:08:18.382 [main] INFO  o.j.e.codegen.util.ClassChangeUtil - Searching for class: org.jboss.errai.cdi.EventQualifierSerializerImpl

            16:08:18.383 [main] INFO  o.j.e.codegen.util.ClassChangeUtil - Could not find URL for org.jboss.errai.cdi.EventQualifierSerializerImpl. Attempting to load with context class loader.

            16:08:18.384 [main] WARN  o.j.e.codegen.util.ClassChangeUtil - Could not load org.jboss.errai.cdi.EventQualifierSerializerImpl class.

            16:08:18.384 [main] WARN  o.j.e.e.r.NonGwtEventQualifierSerializerGenerator - No org.jboss.errai.cdi.EventQualifierSerializerImpl found on the classpath. Attempting to generate and load.

            16:08:18.385 [main] INFO  o.j.e.e.r.NonGwtEventQualifierSerializerGenerator - Generating source for org.jboss.errai.cdi.EventQualifierSerializerImpl...

            16:08:18.391 [main] INFO  o.j.e.e.r.NonGwtEventQualifierSerializerGenerator - Successfully generated source for org.jboss.errai.cdi.EventQualifierSerializerImpl

            16:08:18.391 [main] INFO  o.j.e.e.r.NonGwtEventQualifierSerializerGenerator - Attempting to compile and load org.jboss.errai.cdi.EventQualifierSerializerImpl

            16:08:18.391 [main] INFO  o.j.e.codegen.util.ClassChangeUtil - Compiling and loading org.jboss.errai.cdi.EventQualifierSerializerImpl from source...

            16:08:18.392 [main] INFO  o.j.e.codegen.util.ClassChangeUtil - Using temporary directory for source and class files: C:\Users\mjmen\AppData\Local\Temp\mjmen\errai\414b255fa1c5ad50d6cd2d77c1c4d8f7f422b750\errai.gen\classes\org\jboss\errai\cdi

            16:08:18.396 [main] INFO  o.j.e.codegen.util.ClassChangeUtil - Writing source file C:\Users\mjmen\AppData\Local\Temp\mjmen\errai\414b255fa1c5ad50d6cd2d77c1c4d8f7f422b750\errai.gen\classes\org\jboss\errai\cdi\EventQualifierSerializerImpl.java...

            16:08:18.398 [main] INFO  o.j.e.codegen.util.ClassChangeUtil - Compiling org.jboss.errai.cdi.EventQualifierSerializerImpl in source file C:\Users\mjmen\AppData\Local\Temp\mjmen\errai\414b255fa1c5ad50d6cd2d77c1c4d8f7f422b750\errai.gen\classes\org\jboss\errai\cdi\EventQualifierSerializerImpl.java...

            16:08:18.942 [main] INFO  o.j.e.codegen.util.ClassChangeUtil - Loading compiled class at C:\Users\mjmen\AppData\Local\Temp\mjmen\errai\414b255fa1c5ad50d6cd2d77c1c4d8f7f422b750\errai.gen\classes\org\jboss\errai\cdi\org\jboss\errai\cdi\EventQualifierSerializerImpl.class...

            16:08:18.944 [main] INFO  o.j.e.e.r.NonGwtEventQualifierSerializerGenerator - Successfully generated and loaded org.jboss.errai.cdi.EventQualifierSerializerImpl

            16:08:18.949 [main] WARN  o.j.e.u.r.TemplatedCodeDecorator - The @Templated class, sotec.supervision.automate.webservices.gwt.client.inverter.InverterView, extends Composite. This will not be supported in future versions.

            16:08:19.202 [main] WARN  o.j.e.u.r.TemplatedCodeDecorator - The @Templated class, sotec.supervision.automate.webservices.gwt.client.inverter.InverterTable, extends Composite. This will not be supported in future versions.

            16:08:19.256 [main] WARN  o.j.e.u.r.TemplatedCodeDecorator - The @Templated class, sotec.supervision.automate.webservices.gwt.client.NavigationPane, extends Composite. This will not be supported in future versions.

            16:08:19.290 [main] WARN  o.j.e.u.r.TemplatedCodeDecorator - The @Templated class, sotec.supervision.automate.webservices.gwt.client.HomePage, extends Composite. This will not be supported in future versions.

               Compiling 5 permutations

                  Compiling permutation 0...

                  Process output

                     Compiling

                        Compiling permutation 1...

                  Process output

                     Compiling

                        Compiling permutation 2...

                  Process output

                     Compiling

                        Compiling permutation 3...

                  Compiling permutation 4...

               Compile of permutations succeeded

               Compilation succeeded -- 91,316s

            Linking into C:\Users\mjmen\Automate\webapp\gwt

               Link succeeded

               Linking succeeded -- 1,237s

             

            The build configuration below does not build correctly, it only works if the output directories are under ${basedir}/target/etc

             

            <build>

                    <outputDirectory>${user.home}/Automate/webapp/WEB-INF/classes</outputDirectory>

                    <plugins>

                        <plugin>

                            <artifactId>maven-resources-plugin</artifactId>

                            <version>3.0.1</version>

                            <executions>

                                <execution>

                                    <id>copy-resources</id>

                                    <!-- here the phase you need -->

                                    <phase>validate</phase>

                                    <goals>

                                        <goal>copy-resources</goal>

                                    </goals>

                                    <configuration>

                                        <outputDirectory>${user.home}/Automate/webapp</outputDirectory>

                                        <resources>        

                                            <resource>

                                                <directory>src/main/resources/webapp</directory>

                                                <filtering>false</filtering>

                                            </resource>

                                        </resources>            

                                    </configuration>          

                                </execution>

                            </executions>

                        </plugin>

                        <plugin>

                            <groupId>org.codehaus.mojo</groupId>

                            <artifactId>gwt-maven-plugin</artifactId>

                            <version>2.8.0</version>

                            <executions>

                                <execution>

                                    <goals>

                                        <goal>compile</goal>

                                    </goals>

                                </execution>

                            </executions>

                            <configuration>

                                <module>sotec.supervision.automate.webservices.gwt.GwtModule</module>

                                <webappDirectory>${user.home}/Automate/webapp</webappDirectory>

                                <runTarget>index.html</runTarget>

                                <hostedWebapp>${auser.home}/Automate/webapp</hostedWebapp>

                                <runTarget>index.html</runTarget>

                                <extraJvmArgs>-Xmx896M -Xms896m</extraJvmArgs>

                            </configuration>

                        </plugin>

                        <plugin>

                            <groupId>org.apache.maven.plugins</groupId>

                            <artifactId>maven-dependency-plugin</artifactId>

                            <version>2.10</version>

                            <executions>

                                <execution>

                                    <id>copy-dependencies</id>

                                    <phase>package</phase>

                                    <goals>

                                        <goal>copy-dependencies</goal>

                                    </goals>

                                    <configuration>

                                        <outputDirectory>${user.home}/Automate/webapp/WEB-INF/lib</outputDirectory>

                                        <overWriteIfNewer>true</overWriteIfNewer>

                                    </configuration>

                                </execution>

                            </executions>

                        </plugin>

                    </plugins>

                </build>

            • 3. Re: RuntimeException: There are no proxy providers registered
              Max Barkley Expert

              Hi Mathieu,

               

              You can use this system property to explicitly declare the directory where Errai should emit generated class files: errai.server.classOutput

               

              Cheers.

              • 4. Re: RuntimeException: There are no proxy providers registered
                Mathieu Moloney Newbie

                Hi,

                 

                I cannot get this to work, classes are always compiled to ${basedir}/target/classes

                 

                I have also tried using errai.marshalling.server.classOutput instead...

                 

                 

                 

                I have tried setting maven properties :

                 

                    <properties>

                        <errai.server.classOutput>${basedir}/target/classes/war/WEB-INF/classes</errai.server.classOutput>

                    </properties>

                 

                 

                 

                Or GWT compiler properties :


                  
                <systemProperties>
                      
                <property>
                          
                <name>errai.server.classOutput</name>
                          
                <value>${basedir}/target/classes/war/WEB-INF/classes</value>
                      
                </property>
                  
                </systemProperties>

                 

                 

                 

                Or Maven properties-plugin :

                 

                            <plugin>

                                <groupId>org.codehaus.mojo</groupId>

                                <artifactId>properties-maven-plugin</artifactId>

                                <version>1.0.0</version>

                                <executions>

                                    <execution>

                                        <goals>

                                            <goal>set-system-properties</goal>

                                        </goals>

                                        <configuration>

                                            <properties>

                                                <property>

                                                    <name>errai.server.classOutput</name>

                                                    <value>${basedir}/target/classes/war/WEB-INF/classes</value>

                                                </property>

                                            </properties>

                                        </configuration>

                                    </execution>

                                </executions>

                            </plugin>

                • 5. Re: RuntimeException: There are no proxy providers registered
                  Max Barkley Expert

                  Hi Mathieu,

                   

                  I just verified that setting the property in the errai-tutorial works. I added "-Derrai.server.classOutput=$PATH" to the "extraJvmArgs" tag for the gwt-maven-plugin configuration. Maybe setting the property this way will work for you?

                   

                  Cheers.