### tomcat7配置context,访问报错问题 ###
message
java.lang.NoSuchMethodError: org.apache.tools.ant.taskdefs.Javac.setTempdir(Ljava/io/File;)V
description The server encountered an internal error (java.lang.
NoSuchMethodError: org.apache.tools.ant.taskdefs.Javac.setTempdir(Ljava/io/File;)V) that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.tools.ant.taskdefs.Javac.setTempdir(Ljava/io/File;)V
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause
java.lang.NoSuchMethodError: org.apache.tools.ant.taskdefs.Javac.setTempdir(Ljava/io/File;)V
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:200)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
context这样写的
<Context path="/manage"
docBase="D:/Users/workspace_eclipse/Integration/app/web/worker"
displayName="VA Terminal" reloadable="true">
<Logger className="org.apache.catelina.logger.FileLogger"
prefix="log." suffix=".txt" timestamp="true" />
</Context>
------解决方案--------------------没有这个方法org.apache.tools.ant.taskdefs.Javac.setTempdir,
你需要一个ant.jar
apache的