I am part of a team writing a web application with a GWT front-end and
a Spring back-end. I have been trying to design the system in layers
so that subprojects are modularized. Accordingly, I have the
following projects (and names have been changed to protect the
innocent):
Domain - Domain classes. All are java.io.Serializable (not
IsSerializable). A build script produces a domain.jar and domain-
src.jar.
DomainGwtModule - A simple project that adds the GWT xml file so the
GWT application can import the domain classes. Produces domain-
module.jar.
Actually, I had added custom serializers as part of trying to
debug things. If I can remove them, I will.
Spring - Spring classes producing services.jar, depending on
domain.jar. This project des not import any GWT libraries.
Application - The GWT application. Dpeends on all the other jar
files. This contains all the Spring xml configuration files along
with the web files and GWT xml files. It exposes the Spring services
to GWT by using the GwtRpcController described in
http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/
with the addition of using Load-Time Weaving to have the Spring
services adopt the appropriate GWT client RemoteService interfaces at
run time. It would be a shame we wrote a web service interface and
required that project to import gwt-*.jar.
Despite everything, the application fails to transport the domain
objects to and from the server. I have verified that all the gwt.rpc
files are generated and are seployed to the server. I am still told
that the system is trying to use a LegacySerializationStrategy, and
that the classes are not assignable to IsSerializable and do not have
custom serializers. I even wrote custom serializers; however, they
are in the domain-module.jar file and not in domain.jar. Could there
be a class loader issue?
We use Eclipse 3.3, Tomcat 5.5, GWT 1.5, and Spring 2.5.6.
Respectfully,
Eric Jablow
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---