简体   繁体   English

Servlet无法在ant上更新

[英]Servlet not updating on ant

I am making an application for google-appengine. 我正在为google-appengine申请。 I am using google app engine sdk for java and using ant 1.8 for starting development server and jdk 1.6, jre1.6. 我正在使用适用于Java的Google App Engine sdk,并使用ant 1.8启动开发服务器和jdk 1.6,jre1.6。

The problem: Whenever i make changes to my java servlet they don't get reflected in the webpage. 问题:每当我对Java Servlet进行更改时,它们都不会反映在网页中。 Infact, my browser displays the old servlet and its errors. 实际上,我的浏览器显示了旧的servlet及其错误。 I compiled and recompiled my servlet code, restarted the server but it doesn't effect any change. 我编译并重新编译了servlet代码,重新启动了服务器,但是它没有任何变化。 Still it runs the old servlet code. 它仍然运行旧的servlet代码。 I deleted my servlet class file but it still shows up. 我删除了我的servlet类文件,但它仍然显示。 That's too much. 这太多了。 How can it run something that doesn't exist.I tried clearing the browser cache and temp files but nothing changed. 它如何运行不存在的内容。我尝试清除浏览器缓存和临时文件,但未做任何更改。

can somebody suggest me what to do in this case ? 有人可以建议我在这种情况下该怎么办吗? how to make ant use the new servlet? 如何使ant使用新的servlet?

Please help! 请帮忙!

PS: The problem solves when i restart my pc. PS:当我重新启动电脑时,问题解决了。 Also logging off solves it but it is very annoying because testing even a single variable change ask for a restart or logoff.I searched my pc for any files that might be saved somewhere but i didn't get it. 注销也可以解决问题,但这很烦人,因为即使测试一个变量更改也要求重新启动或注销。我在我的电脑上搜索了可能保存在某处的任何文件,但没有得到。

I had a dummy java binary running even when i stopped the server. 即使我停止了服务器,我也正在运行虚拟的Java二进制文件。 I have to kill it manually to stop old class files to be executed. 我必须手动杀死它才能停止执行旧类文件。

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

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