2 Replies Latest reply on Mar 10, 2011 10:22 PM by Sandy Noa

    GWT with Seam in Host mode.

    Nagaraju Yadev Newbie
      Hi

      I am developing one application with seam-2.2.0 and GWT-2.0.3. I am able to deploy the application in Jboss server with ant script, but am not able to run the same application in host mode with built in jetty server. I am getting the runtime exception "No Such Component" while running in host mode. The below is full stack trace of the error.

         [WARN] Exception while dispatching incoming RPC call
      java.lang.RuntimeException: No such component: com.test.client.GreetingService
           at org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(GWTToSeamAdapter.java:68)
           at org.jboss.seam.remoting.gwt.SeamRPC.invokeAndEncodeResponse(SeamRPC.java:152)
           at org.jboss.seam.remoting.gwt.GWTService.processCall(GWTService.java:124)
           at org.jboss.seam.remoting.gwt.GWTService$1.process(GWTService.java:92)
           at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
           at org.jboss.seam.remoting.gwt.GWTService.getResource(GWTService.java:113)
           at org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:80)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
           at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
           at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
           at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
           at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
           at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
           at org.mortbay.jetty.Server.handle(Server.java:324)
           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
           at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
      Jun 10, 2010 9:50:34 AM org.jboss.seam.contexts.Contexts flushAndDestroyContexts
      SEVERE: could not discover transaction status
      [ERROR] 500 - POST /seam/resource/gwt2 (127.0.0.1) 57 bytes
         Request headers
            Host: 127.0.0.1:8888
            User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Accept-Language: en-us,en;q=0.5
            Accept-Encoding: gzip,deflate
            Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
            Keep-Alive: 300
            Connection: keep-alive
            Cookie: JSESSIONID=1vu6je0lq3gtp
            Referer: http://127.0.0.1:8888/test/hosted.html?test
            X-GWT-Permutation: HostedMode
            X-GWT-Module-Base: http://127.0.0.1:8888/test/
            Content-Type: text/x-gwt-rpc; charset=utf-8
            Content-Length: 162
            Pragma: no-cache
            Cache-Control: no-cache
         Response headers
            Expires: Thu, 01 Jan 1970 00:00:00 GMT
            Set-Cookie: JSESSIONID=argmt93d1l5l;Path=/
            Content-Type: text/plain

      Could any one let me know how to resolve this issue.

      Thanks