Thank you for your response. I tried to launch the application, by navigating the browser to
http://localhost:8080/mgmtWebProject/mgmt/LoadControlPlaneNodesServiceImpl and I received an error, which said that doGet is not supported. That's why I added the doGet method. How can I send POST requests? Edo. On Jan 27, 6:11 pm, Isaac Truett <[email protected]> wrote: > It doesn't sound like there's anything wrong with your deployment, it sounds > like you're trying to do something invalid. Why are you sending GET requests > to an RPC servlet? > > On Tue, Jan 27, 2009 at 5:11 AM, Edo <[email protected]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
