1 Reply Latest reply on Nov 8, 2007 1:31 AM by robjellinghaus

    Please help: setting up GWT in hosted mode with Seam 2.0

    kingcu

      I tried to run GWT in host mode (I need this for debugging GWT code), but got the following exception:

      java.lang.NullPointerException
       org.jboss.seam.servlet.SeamResourceServlet.loadResourceProviders(SeamResourceServlet.java:43)
       org.jboss.seam.servlet.SeamResourceServlet.init(SeamResourceServlet.java:35)
       com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java:882)
       com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:238)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


      Any help/advice is appreciated.

        • 1. Re: Please help: setting up GWT in hosted mode with Seam 2.0
          robjellinghaus

          You want to run your GWT hosted mode with the "-noserver" flag. By default the GWT hosted mode has its own little embedded webserver. This is really only useful for loading static resources.

          What you really want is to run GWT hosted mode with just your GWT client code, so that your GWT hosted client is communicating with your regular app server. That's what the "-noserver" flag is -- it shuts down the embedded server and sets you up to load directly from your app server. You can Google for it in the GWT groups.

          http://unrealities.com/seamgwt has a target for doing just that, though it's only with Tomcat and only on Seam 1.2 at the moment.

          Cheers!
          Rob