Hi dk,
Reason is probably because you have not specifically included Student
in the interface of you RPC service (as either parameter or return
value), or annotated it with a typeArg specifying Student in the 1.4.x
style. That means GWT compiler does not know that Student instances
are being passed over RPC so it cannot included it in the "white list"
maintained in the <hash>.gwt.rpc files. Hence the error. This would
happen if you wrote for example:
List getStudents() {..};
instead of:
List<Student> getStudents() {..};
If that doesn't make sense post your RPC service interface definition
for further help.
regards
gregor
On Jan 2, 12:52 am, dk <[email protected]> wrote:
> I am trying to deploy my gwt project to tomcat but the following
> problem occurs. I tried all the suggestions in the list but still the
> same exception occurs.
>
> Why The applicaiton has no problem in hosted mode but give the
> following exception when I deploy it to tomcat.
>
> any help will be appriciated
>
> thanks
>
> note:I added the necessary files to web-inf/classes
>
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> 'com.mycompany.client.toServer.Student' was not included in the set of
> types which can be serialized by this SerializationPolicy or its Class
> object could not be loaded. For security purposes, this type will not
> be serialized.
> at
> com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
> (StandardSerializationPolicy.java:83)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
> (ServerSerializationStreamWriter.java:581)
> at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
> (AbstractSerializationStreamWriter.java:129)
> at
> com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize
> (Collection_CustomFieldSerializerBase.java:43)
> at
> com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize
> (ArrayList_CustomFieldSerializer.java:36)
> ... 32 more
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---