taskdef class org.apache.catalina.ant.InstallTask cannot be found

When I tried to use ant for automatic deployment of JSP applications, I encountered the following error message:

C:\Users\i042416\eclipse-workspace\jerryjsp\build. xml:69 : taskdef class org.apache.catalina.ant.InstallTask cannot be found
using the classloader AntClassLoader[C:\MyApp\apache-tomcat-9.0.29\lib\catalina-ant.jar]

But I can confirm that the org.apache.catalina.ant.installtask used to define task install has added catalina-ant.jar in Tomcat lib folder to classpath

Further inspection shows that in Tomcat 9, Catalina ant. Jar contains deploytask. Class instead of installtask. Class

After modifying build.xml, the problem disappears

to get more original articles of Jerry, please pay attention to the official account of “Wang Zixi”:

This article shares CSDN – Wang Zixi.

Similar Posts: