cactus.sysproperties=cactus.contextURL #cactus-sample-servlet-cactified就是你的测试应用所在路径,8080是端口号 cactus.contextURL = http://localhost:8080/cactus-sample-servlet-cactified cactus.servletRedirectorName = ServletRedirector cactus.jspRedirectorName = JspRedirector cactus.filterRedirectorName = FilterRedirector
<path id="project.classpath"> <fileset dir="${lib.dir}"> <include name="*.jar"/> </fileset> <!-- cactus.properties文件就需要放在lib.dir所对应的路径中 --> <pathelement location="${lib.dir}"/> <pathelement location="${tomcat.home}/common/lib/jsp-api.jar"/> <pathelement location="${tomcat.home}/common/lib/servlet-api.jar"/> </path>