kamalasv / struts2gwtplugin

Automatically exported from code.google.com/p/struts2gwtplugin
Apache License 2.0
0 stars 0 forks source link

Hi, will you make a plugin version work with the GWT 1.6? #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tested the Struts2GWTDemo-v0.2 and changed the gwt-servlet version from 
1.4.10 to 1.6.4. 
I added the gwt-user 1.6.4 to the pom and made an exclusion like this : 

<dependency>
    <groupId>com.googlecode.struts2gwtplugin</groupId>
    <artifactId>struts2gwtplugin</artifactId>
    <version>0.2.1</version>
    <exclusions>
        <exclusion>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
        </exclusion>
    </exclusions>
</dependency>

But it does not work. I get this error :
javax.servlet.ServletException: Content-Type was 'text/plain; charset=utf-
8'. Expected 'text/x-gwt-rpc'.

The application works with version 1.4.x not 1.6.x .
Is there a hack to make the plugin work with gwt 1.6? 

Original issue reported on code.google.com by bakan...@gmail.com on 25 May 2009 at 8:08

GoogleCodeExporter commented 9 years ago
I used the plugin successfully with GWT 1.7.
Originally I came across the 
 "javax.servlet.ServletException: Content-Type was 'text/plain; charset=utf-8'.
Expected 'text/x-gwt-rpc'."  error as well when I ran the    Struts2GWTDemo, 
but only
because the demo already had the GWT code compiled with an earlier version.

As soon as I GWT-compiled Struts2GWTDemo with 1.7 as well, all worked fine.

Original comment by markus....@gmail.com on 17 Aug 2009 at 11:33