Hello,
I'm new to GWT, and this is the first application I'm trying to
develop.

First time I deployed my application to tomcat and tried to run it, I
received a message that doGet is not supported,
So I added a class that extends RemoteServiceServlet, and implements
the doGet by delegating it to doPost:

@Override
  public void doGet(HttpServletRequest request,
      HttpServletResponse response){
        request.getContentLength();
        doPost(request, response);
  }


I redeployed the application, and when I tried running it, I received
the following exception:

SEVERE: Exception while dispatching incoming RPC call
javax.servlet.ServletException: Content-Length must be specified
        at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
(RPCServletUtils.java:131)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent
(RemoteServiceServlet.java:335)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:77)
        at
com.traffix.mgmtconsole.server.services.OpenbloxManagementService.doGet
(OpenbloxManagementService.java:56)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)



Do I really need to implement the doGet method in my classes?
Is there a way I can avoid it?
How can I fix the above exception?

Thank you for your help.
Edo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to