Search code examples
javagwterrai

What is the basic setting needed to make GWT work with Errai bus


I get this error:

HTTP ERROR: 503

SERVICE_UNAVAILABLE
RequestURI=/index.jsp

Powered by jetty://

When adding this to the 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>

<context-param>
    <param-name>errai.properties</param-name>
    <param-value>/WEB-INF/errai.properties</param-value>
</context-param>

When this setting is removed, my Errai gwt application works fine, except that it shows Errai bus error on the client, however I need to make Errai bus work.


Solution

  • I wish this helps you

    video-gwt-and-errai-ui-quickstart