I decided to stop fighting with GWT and moved the module from Apache
to Tomcat. The test RPC started working once I did that.
Given your error message it seems that you use Apache to access your application via /play but your server application is deployed on context root /3dmp. The default implementation to lookup the policy file checks if /play starts with /3dmp so it can strip of the common path prefix and have a relative path on the server to loookup the file.
Because you have different paths from client and server perspective that check fails and you have to override RemoteServiceServlet.doGetSerializationPolicy() to load the file yourself.
Directly accessing the app via Tomcat or reconfiguring Apache (or the context root of your server app) to make the path stay the same would make it work without overriding the method above.
-- J.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/cbd6f925-cee7-4d93-8b32-6dcad9fb5201n%40googlegroups.com.
No comments:
Post a Comment