> > I actually have the general configuration you are talking about: a Tomcat > with my gwt app and the codeserver, but I'm getting the same error, > I get this error: > > *INFO: xsrf: Unable to load server-side classes used by policy: (some > classes..)* > > And in browser console : > > *http://localhost:9876/www/rpc/init <http://localhost:9876/www/rpc/init> > No 'Access-Control-Allow-Origin' header is present on the requested > resource. Origin 'http://localhost:8888 <http://localhost:8888>' is > therefore not allowed access.* > > Looks like your GWT app makes GWT-RPC requests to your code server which is totally wrong. Your GWT app should make RPC requests to your tomcat server instead. How is your RPC service defined? Have you used @RemoteServiceRelativePath on your service interface or do you use ServiceDefTarget to set the target URL of your RPC service?
Your RPC url should be GWT.getModuleBaseURL() + <servlet path of service> -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
