The Java Servlet API classes could not be found. These files can be
obtained from: http://java.sun.com/products/servlet/download.html
解决方法
<target name="initialise" description="Initialise required settings.">
<property name="hasServlet" value="${basedir}/lib/servlet-api.jar"/><path id="build.classpath">
<pathelement location="${hasServlet}"/>
</path>
</target>
<target name="dependencies" depends="initialise">
<available classname="javax.*" property="hasServlet"/>
<antcall target="hasServlet"/>