guw / gwt-tooling

Automatically exported from code.google.com/p/gwt-tooling
0 stars 0 forks source link

Content-type problems in RPC Servlet #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an RPC class with a single simple method
2. Compile the code and put the bin folder generated at the level of the 
page (such index.html) to load the client module (is there another way to 
include the generated js?)
3. Launch tomcat and open the browser on the page.

What is the expected output? What do you see instead?
A window.alert tells me that the module is loaded, but when invoking the 
RPC call another alert tells that "".
Follow the first part of the server log:
GRAVE: Exception while dispatching incoming RPC call
javax.servlet.ServletException: Content-Type must be 'text/x-gwt-rpc' 
with 'charset=utf-8'.
    at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
(RPCServletUtils.java:141)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
.....
....

What version of the product are you using? On what operating system?
This error occours with all the GWT-Tooling version, on Tomcat 5.5 and 
Tomcat 6 with Eclipse 3.4 and Java5. The GWT version is 1.4, because if i 
use gwt1.5 the compiler gives an out-of-memory error.

Original issue reported on code.google.com by fabrit...@gmail.com on 10 Jul 2008 at 5:06

GoogleCodeExporter commented 9 years ago
Please report issues like this on the list first. You don't need to copy folders
around, especially not the bin folder.

Original comment by eclipseguru@gmail.com on 16 Aug 2008 at 11:06

GoogleCodeExporter commented 9 years ago
What is the solution ???? 

Original comment by rajakumar.tu@gmail.com on 3 Feb 2009 at 7:49