5 Replies Latest reply on Jul 4, 2012 10:41 AM by csa

    Errai in GWT built-in development mode

    throwable

      Hi,

       

      I try to use Errai in a "lightweight" manner:

           - without JBoss dependencies or other J2EE server

           - run in a standard GWT development mode (embedded Jetty that goes with Eclipse plugin)

           - compile without Maven with standard Eclipse GWT plugin

       

      Application compiles and starts. But it fails when trying a RPC call:

      java.lang.RuntimeException: There are no proxy providers registered yet.

                at org.jboss.errai.bus.client.framework.RemoteServiceProxyFactory.getRemoteProxy(RemoteServiceProxyFactory.java:37)

                at org.jboss.errai.bus.client.api.builder.DefaultRemoteCallBuilder.call(DefaultRemoteCallBuilder.java:60)

                at org.jboss.errai.bus.client.api.builder.DefaultRemoteCallBuilder.call(DefaultRemoteCallBuilder.java:56)

                at org.jboss.errai.bus.client.api.base.MessageBuilder.createCall(MessageBuilder.java:187)

       

      It seems that server components were not registered by injector. Is is possible to use Errai with this configuration?

       

      gwt.xml:

          <inherits name="org.jboss.errai.common.ErraiCommon"/>

          <inherits name="org.jboss.errai.bus.ErraiBus"/>

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

          <inherits name="org.jboss.errai.ioc.Container" />

       

      web.xml:

          <servlet>

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

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

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

          </servlet>

          <servlet-mapping>

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

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

          </servlet-mapping>

       

      RPC interface annotated with @Remote and server implementation with @Service.

      Errai 2.0.1.final.

       

      Salu2,

      Antón