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:
- Using PSCP to copy data from Windows computer to SSH in Linux_ Init error
- ‘DebugConfig‘ only refers to a type, but is being used as a value here.
- git schnnel failed to receive handshake, SSLTLS connection failed
- How to handle the eclipse error message the declared package does not match the expected package
- WebKit focus ring color in Chrome browser
- Product not scheduled in sales organization XXX,distribution channel
- Solve the compilation errors encountered when NPM run build is executed by the library schematics downloaded from the official website of angular
- Sudo starts Tomcat and reports an error. There is no Java environment
- Linux Install Tomcat Error: service tomcat does not support chkconfig
- [Solved] Too large catalina.out file of Tomcat (logrotate mode)