简体   繁体   English

GWT Compile部署后,应用程序不会反映服务器端的更改

[英]After GWT Compile deployed applicatiuon does not reflect changes on server side

I am working on a GWT project. 我正在从事GWT项目。 After having made changes server-side and compiled it useing GWT Compile, the changes are not reflected when I deploy the application on Tomcat Server. 在服务器端进行更改并使用GWT Compile对其进行编译后,当我在Tomcat Server上部署应用程序时,更改不会反映出来。 But if I run the application in dev.mode in Eclipse, the changes are reflected! 但是,如果我在Eclipse的dev.mode模式下运行该应用程序,则会反映出更改!

Any idea how to make the compiler use the latest code? 知道如何使编译器使用最新代码吗?

I have deleted all compiled filed, build and cleaned the project tons of times - none of it working. 我已经删除了所有已编译的文件,构建并清理了无数次项目-没有一个工作。

This is typical if your cache settings aren't correct. 如果您的缓存设置不正确,通常会出现这种情况。 Your broswer doesn't download the changed files because it has the old ones in cache and doesn't know they changed. 您的浏览器不下载已更改的文件,因为它在缓存中包含旧文件,并且不知道它们已更改。 Try erasing the browser cache and/or pressing ctrl-f5 in your browser. 尝试清除浏览器缓存和/或在浏览器中按ctrl-f5。 On production systems, you need to properly configure you web server to explicitly cache GWT files matching *.cache.* , and explicitly NOT caching *.nocache.* . 在生产系统上,您需要正确配置Web服务器以显式缓存与*.cache.*匹配的GWT文件,并显式不缓存*.nocache.*

请参阅以获取用于缓存配置的服务器过滤器示例(即,如geert3所述,以便您的服务器不会让您的浏览器缓存已过时的版本,请使用requestURI.contains(".nocache.")搜索部分)并使您的应用也可抓取。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM