Hello!

GWT 1.6.
When I run my application in hosted mode with embedded Jetty
everything is OK.
But when I use my own tomcat in "-noserver" mode I get the following
problem:
when I change some server-side classes which involve serialization the
gwt.rpc file is recompiled and it brings a lot of problems with server
redeploy. I should clarify that my application is Eclipse Dynamic Web
Project, it has Google Web App support, it is automatically compiled
to "war" folder and automatically deployed to Tomcat.

At the moment a typical situation looks like this:
1. I add a new Exception, say, StorageException to server-side code.
2. Next I refresh the app and get exceptions: "Type ... 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...". My app doesn't work. As I understand it's
because of new gwt.rpc is created, but not yet deployed.
3. Well, I refresh my "war" folder because Eclipse for some reason
doesn't see new gwt.rpc.
4. I restart tomcat.
5. I close hosted-mode container, open it once again and run my
aplication again.
6. And I get the "Type ... was not assignable to..." again :(
7. Goto step 3.

And I must rerun this cycle 2-3 times before my app begin to work
again. And everything is OK till next server-code change.

Please, could anyone tell me what I am doing wrong and why I need to:
1. refresh war folder manually at step 3;
2. restart server at step 4, though it redeploys .class files without
any problem;
3. repeat these steps 2-3 times.

When I use embedded Jetty there's no such problem, but I need AspectJ,
connection pool and some other server-side features.

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to