GWT / AppEngine RPC接口正在吞噬我!我得到这样的错误:
INFO: javax.servlet.ServletContext log: UserService: ERROR: The serialization policy file '/55585D0849A4549E3FCE91B33725B02F.gwt.rpc' was not found; did you forget to include it in this deployment?
每次我启动Devserver时。我已经在appengine-web.xml中正确地设置了public-root (除了.gwt.rpc文件之外,应用程序的其余部分都可以正常运行)。
<static-files>
<include path="**" />
<include path="**.nocache.*" expiration="0s" />
<include path="**.rpc" expiration="0s" />
<include path="**.cache.*" expiration="365d" />
</static-files>
<resource-files>
<include path="**.gwt.rpc" />
</resource-files>我做错了什么?请帮帮我!
发布于 2011-10-19 19:34:49
经过一些实验后,我得出了以下结论:
.rpc文件包含在appengine部署(appengine-web.xml文件)中,并且要注意缓存问题!(例如,序列化策略中的更改)public-root中使用appengine-web.xml标记:将welcome file (例如index.html)放在/目录的war中,并为GWT进行相应的更改以查找其文件url-pattern标记以指向与d17关联的war servlet内的GWT生成目录(即web hooks),不要更改servlet因此,惟一需要对GWT生成的文件夹有所了解的地方是web.xml。当然,GWT项目的welcome-file也必须进行调整。
希望这对某些人有帮助
发布于 2012-09-26 10:57:39
我在部署的GAE服务器上也遇到了同样的问题,直到我为资源文件部分添加了rpc include,错误才消失。这是我最终得到的结论:
<resource-files>
<include path="/resources/**" />
<include path="**.gwt.rpc"/>
</resource-files>
<static-files>
<include path="**" />
<include path="**.nocache.*" expiration="0s" />
<include path="**.cache.*" expiration="365d" />
<exclude path="**.gwt.rpc"/>
</static-files>https://stackoverflow.com/questions/7815685
复制相似问题