Hi Niels,

Niels Mayer wrote:
> I decided to see what happened if i ran xwiki-watch on xe1.8rc2. I followed
> these
> instructions:
> http://watch.xwiki.org/xwiki/bin/view/Main/Installation#HXWikiWatchoveranexistingwiki

these instructions are for xwiki enterprise 1.5. What changed is the GWT 
version 
used (1.4.61 in the 1.5 and 1.5.3 in 1.8 rc2).
> 
> any suggestions on how I can get past this error. Is this a type I need to
> add to my tomcat conf? It seems like it should be a simple fix, what
> changed?
> http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_RPCContentTypeTextPlainsays:
> 
>> In GWT 1.5, the RPC content type was switched from "text/plain" to
>> "text/x-gwt-rpc".
>>
>> If you receive this exception, then your server is still using a GWT 1.4
>> gwt-servlet.jar.
>> Workaround
>>
>> Update your server to use the GWT 1.5 gwt-servlet.jar.

Not always, this error is from an incompatibility between the client and the 
server. In your case, you're trying to run a client compiled with 1.4.61 on a 
1.5.3 server, therefore the error. What you would need is to compile watch 
client for gwt 1.5.3 yourself, but this is also a bit tricky since the client 
code needs slight changes in order for that to work.

I should find the time, soon enough, to update xwiki-watch to match the last xe 
version, and also release such a version.
In the mean time, have a modified .xar here 
http://watch.xwiki.org/xwiki/bin/download/Main/Installation/xwiki%2Dwatch%2D1.1%2Dgwt%2D1.5.3.xar
 
which contains a 1.5.3 compiled client.

Happy watching,
Anca Luca

>>
> So do I need a GWT 1.5 gwt-servlet.jar instead of these:
> 
>> -rw-r--r-- 1 root root  4086 2008-09-11 14:46
>> xwiki-watch-gwt-client-1.1-milestone-1.jar
>> -rw-r--r-- 1 root root 16367 2008-09-11 14:46
>> xwiki-watch-gwt-server-1.1-milestone-1.jar

no, this is not the case. See above.

>>
> in order to get rid of this message:
> .....................................................
> 2009-03-19 16:54:38,129 [] [TP-Processor2] ERROR
> [localhost].[/xwiki]            - Exception while dispatching incoming RPC
> call
> javax.servlet.ServletException: Content-Type was 'text/plain;
> charset=utf-8'. Expected 'text/x-gwt-rpc'.
>     at
> com.google.gwt.user.server.rpc.RPCServletUtils.checkContentType(RPCServletUtils.java:318)
>     at
> com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java:135)
>     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 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:269)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at
> com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
>     at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
>     at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
>     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
>     at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
>     at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
>     at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
>     at java.lang.Thread.run(Thread.java:619)
> 
> Niels
> http://nielsmayer.com
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to