Saturday, July 5, 2014

Re: Upgrade from 240 to 261 causes Serialization errors in all my Enum

You gave me the tip I needed to fix. My problem was a outdated gwt-servlet.jar in WEB-INF/lib directory.
I've removed it, and put the get-servlet in TOMCAT/lib directory.
But now, when I run the app at startup I run the following code:

public static void setFormatter(Formatter formatter) {
    if(GWT.isClient()) {
      GWT.log("Inesperado: chamou setFormatter de fora de aplicação Cliente.");
    }

    currentFormatter = formatter;
  }

(this is a boostrap to configure a factory that runs either in Client and Server side, and choose a J2SE standard formatter or a GWT formatter accordingly).
and it is throwing the following error:

java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge


Do I need additional JAR files in server side in order this is able to run?
I'm able to find the GWTBridge file in the gwt-servlet.jar file.

Regards,

Edson

On Saturday, July 5, 2014 7:52:29 PM UTC-3, Jens wrote:
You don't need to implement Serializable.

I bet you missed to upgrade gwt-servlet.jar on your server.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment