Sunday, May 29, 2011

Re: Error when obfuscating a gwt jar

As already said, if you obfuscate rpc related classes, gwt will not be able to find them in order to make rpc work. You can obfuscate everything else, but not rpc stuff, afaik

On Sun, May 29, 2011 at 9:59 AM, Hedi Ben Said <hedi.bensaid@gmail.com> wrote:
In my application besides the javascript that have been generated as a
result for the gwt compilation, there is also a jar file that contains
the classes of my gwt application. These classes are necessary to make
the server and client part communicate via rpc

On May 27, 11:24 am, Martin Trummer <ds.martin.trum...@gmail.com>
wrote:
> I guess, that your extra obfuscation step changes the names of all
> classes and thus the GWT serialization mechanism will not find the
> correct classes. I don't think you need toobfuscateanything, because
> GWT already obfuscates the java-script code:http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...
>
> that means, all GWT code, that the client will ever see is already
> obfuscated:
> so why would you want toobfuscatethe class files again?
>
> On May 26, 7:17 pm, Hedi Ben Said <hedi.bens...@gmail.com> wrote:
>
>
>
>
>
>
>
> > When Iobfuscatea jar of a gwt application I got the following error
> > "The response could not be deserialized".
> > By obfuscating I do not mean the compiler option of gwt. I mean
> > obfuscating the .class files contained in the jar file
>
> > Do you have any idea?
>
> > Thanks a lot

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment