我从gwt开始,我的问题如下:
the onFailure(ServerFailure error)
,错误为com.google.web.bindery.requestfactory.shared.ServerFailure
我按照此指令(http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation)来配置我的IDE(Eclipse)。
我的问题是:
提前感谢您的回复。
编辑 我的脚本Ant是:
<?xml version="1.0" encoding="UTF-8"?>
<project name="Jaguards" basedir="." default="default">
<property name="tomcat" value="/home/gilles/Logiciels/apache-tomcat-7.0.34" />
<property name="src.dir" value="src" />
<property name="classes.dir" value="war/WEB-INF/classes" />
<property name="lib.dir" value="war/WEB-INF/lib" />
<property name="build.dir" value="war" />
<property name="unitcache" value="gwt-unitCache" />
<property name="gwt.module.name" value="fr/janua/Jaguards_gwt" />
<target name="default" depends="1-clear-cache, 2-export-jar, 4-buildwar,5-deploy">
</target>
<target name="1-clear-cache">
<delete>
<fileset dir="${unitcache}">
<exclude name="*.svn"/>
</fileset>
</delete>
<delete>
<fileset dir="war/jaguards_gwt">
<include name="*.cache.html"/>
<include name="*.gwt.rpc"/>
<exclude name=".svn"/>
</fileset>
</delete>
</target>
<target name="2-export-jar" description="exportation des sources en jar">
<jar destfile="${lib.dir}/Jaguards.jar" basedir="${classes.dir}" />
</target>
<target name="3-compile">
<echo message="Do GWT Compile Project..."></echo>
</target>
<target name="4-buildwar">
<war basedir="war" destfile="jaguards-0.1.war" webxml="war/WEB-INF/web.xml">
<exclude name="WEB-INF/**" />
<webinf dir="war/WEB-INF/">
<include name="**/*.jar" />
<include name="**/gwt-servlet.jar" />
<include name="**/classes/**" />
<exclude name="**/gwt-dev.jar" />
<exclude name="**/javax.el-api-2.2.4.jar" />
</webinf>
</war>
</target>
<target name="5-deploy">
<delete dir="${tomcat}/work/Catalina/localhost/jaguards-0.1"></delete>
<delete dir="${tomcat}/webapps/jaguards-0.1"></delete>
<delete file="${tomcat}/webapps/jaguards-0.1.war"></delete>
<copy file="jaguards-0.1.war" todir="${tomcat}/webapps/" />
</target>
</project>
总结: