Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8325495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:27:23+00:00 2026-06-09T00:27:23+00:00

I am deploying a GWT 2.4 app on Glassfish 3.0.1. I can easily access

  • 0

I am deploying a GWT 2.4 app on Glassfish 3.0.1. I can easily access my application via http://host:PORT/appContext/
However, when I reverse proxy the application with Apache I get an exception with the following excerpt (from Glassfish logs):

Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException:
Type ‘com.ozdokmeci.basicgwtproject.shared.GroupData’ was not assignable to ‘com.google.gwt.user.client.rpc.IsSerializable’ and did not have a custom field serializer.
For security purposes, this type will not be serialized.

Implementing IsSerializable solves the problem as advised by Chi in a related question.
There are also other workarounds in the related question.

My question is what is the underlying cause of this and how come two seemingly unrelated solutions (implementing a marker interface and extending a servlet class) solve this problem? Also are there any disadvantages to both of the methods mentioned in the related question?

Note: The exception does not occur if the app is reached directly.

Note2: Class related to the exception already implements the interface Serializable, which should be equivalent to the IsSerializable as far as GWT is concerned.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:27:24+00:00Added an answer on June 9, 2026 at 12:27 am

    I had the exact same issue and when I traced through the source code I found that the directory of GWT serialization files was not being found when reverse-proxying (I think because the directory was a relative path). This is why you are getting serialization exceptions even though you have implemented IsSerializable.

    My solution in the end was to move to restful JSON for my RPC. Using JSON will allow you to reverse proxy because it doesnt need to find these Serialization files.

    Edit

    If you want to still use GWT RPC though, I have an idea of how it’s possible (though I havent implemented it myself).

    First, take a look at the GWT Help about these rpc files:
    https://developers.google.com/web-toolkit/doc/2.4/DevGuideCompilingAndDebugging#key_application_files

    You will notice it says:

    The serialization policy file must be accessible by your RPC RemoteServiceServlet via the ServletContext.getResource() call

    So you will need to override RemoteServiceServlet and re-point the location of the rpc (serialization policy) files.

    Here is one suggestion, taken from this site: http://code.google.com/p/google-web-toolkit/issues/detail?id=4817

        public class MyRemoteServiceServlet extends RemoteServiceServlet
        {
    
        ...
    
        @Override
        protected SerializationPolicy doGetSerializationPolicy(
                HttpServletRequest request, String moduleBaseURL, String strongName) {
                //get the base url from the header instead of the body this way 
                //apache reverse proxy with rewrite on the header can work
                String moduleBaseURLHdr = request.getHeader("X-GWT-Module-Base");
    
                if(moduleBaseURLHdr != null){
                        moduleBaseURL = moduleBaseURLHdr;
                }
    
                return super.doGetSerializationPolicy(request, moduleBaseURL, strongName);
        }
    
        ...
    

    In apache config add:

        ProxyPass /app/ ajp://localhost:8009/App-0.0.1-SNAPSHOT/
    
        <Location /app/>
    
        RequestHeader edit X-GWT-Module-Base ^(.*)/app/(.*)$ $1/App-0.0.1-SNAPSHOT/$2
    
        </Location>
    

    Hopefully my suggestion above at least points someone in the right direction.
    Please let us know if someone implements this and it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When deploying Rails via Passenger or Mongrel you have multiple instances of the application
When deploying my Rails app via Capistrano, the very last thing it tries to
Hi I am deploying my web application created in Gwt on the jetty. I
I've been following the tutorial on building a sample GWT Application: http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html I then
I'm developing a GWT web application and while deploying to Tomcat, I face a
Deploying on JBoss AS 7.1.0.Final. I have a very simple test app. It was
After deploying to Azure, I kept getting server errors -- the application would not
While deploying my application, I got the error message: Thread 1:Program received signal: EXC_BAD_ACCESS.
While deploying a dwr web app, i'm continuously getting this error. I dont know
I am developing an web application which can upload/download a file from client to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.