root cause
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
解决方法:
打开Configure Tomcat,选中JAVA选项,改动Java Classpath
在c:/Tomcat/bin/bootstrap.jar
后添加%JAVA_HOME%/lib/tools.jar就行了,如果%JAVA_HOME%不起作用,那就直接设定绝对路径,比如c:/j2skd/lib/tools.jar