Possible Duplicate:
GWT module may need to be (re)compiled REDUX
我已经用eclipse创建了一个gwt项目,当我在调试模式下(使用GWT的服务器)尝试该项目时,它可以工作。
但是,当我尝试部署apache tomcat服务器时,显示此错误消息:
localhost:8080的页面显示:
GWT模块“ gwtfileupload”可能需要(重新)编译
我使用本教程来完成部署:
https://wiki.auckland.ac.nz/display/BeSTGRID/Deploying+GWT+to+Tomcat+in+Eclipse
这是“ warbuilder.xml”:
<target name="default" depends="buildwar,deploy"></target>
<target name="buildwar">
<war basedir="war" destfile="gwtfileupload.war" webxml="war/WEB-INF/web.xml">
<exclude name="WEB-INF/**" />
<webinf dir="war/WEB-INF/">
<include name="**/*.jar" />
</webinf>
</war>
</target>
<target name="deploy">
<copy file="gwtfileupload.war" todir="." />
</target>
这是项目树
| gwtfileupload
| -src
| --- com
| ----- hsn
| -------演示
| --------- gwtfileupload
| -----------客户
| ------------------- GWTFileUpload.java
| -----------服务器
| ------------------- FileUploadServlet.java
|-战争
| --- gwtfileupload.css
| --- gwtfileupload.html
| --- WEB-INF
| ----- web.xml
| ----- lib
| --------- commons-fileupload-1.2.1.jar
| --------- gwt-servlet.jar
| --------- commons-io-1.4.jar
这是战争文件树
| -gwtfileupload.html
| -gwtfileupload.css
| -META-INF
| --- MANIFEST.MF
| -WEB-INF
| --- web.xml
| --- lib
| ------ commons-fileupload-1.2.1.jar
| ------ gwt-servlet.jar
| ------ commons-io-1.4.jar
| ------ gwtfileupload.jar
| -gwtfileupload
| --- clear.cache.gif
| --- gwtfileupload.nocache.js
| --- hosted.html
| --- gwt
| -----标准
| -------图像
| --------- ie6
您能帮我解决这个问题吗?
最佳答案
清除浏览器缓存。