Gwt server compile error

问题

我在GreetingService中添加了一个method,并在server中添加了实施。运行时出现一个错误 greetServlet: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Could not locate requested method ‘caculate(int, int)’ in interface ‘com.jci.myproject2.client.GreetingService’ )

根据下面文章java.lang.ClassNotFoundException on GWT async class in webapp

发现下面路径下的class文件确实没有更新 C:\Users\jliyawe\eclipse-workspace\MyGWTProject2\war\WEB-INF\classes\com\jci\myproject2\server\GreetingServiceImpl.class

解决方案 用command 运行 ant devmode, class文件重新编译了问题解决。

遗留问题,如何自动编译呢


Allen Li

Allen Li

Just another boring, tattooed, time traveling designer.


Updated