Hi,
after updating to gwt 1.5, I'm getting this error:
2008-08-11 12:16:33.899:/:WARN: 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:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
443)
... (and so on)
I already read similar postings in this google group, but they didn't
adress excactly this error. For example
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c06fd940ba44036a/044bb472161dab43?lnk=raot
. The difference is that the error message in this discussion is
"Content Type must be text/plain" and my error message is "Content
Type must be 'text/x-gwt-rpc'". I figured the proposed solution to
replace the server libraries would work for me too. Thus I replaced
client jars and also server jars.
Nevertheless, I still get this errormessage. Maybe I forgot to update
a library somewhere. Actually, I don't believe that, as I created a
new project completely with gwt 1.5. I guessed this way gwt should use
the new libraries, but the error still keeps showing up.
I really don't know how to solve this, but maybe you professionals
here have another clue for me.
I guess for helping me, you will need some information about my setup:
For development, I'm using Cypal Studio for gwt in Eclipse. This will
compile the gwt project.
As server, I use an embedded jetty in an eclipse application. I deploy
the service servlet as well as the static content which is in the
gwtOutput directory to this.
Thanks for helping
TimTimGo