maven项目启动TOMCAT报错 java.util.zip.ZipException: invalid LOC header (bad signature)
信息: Starting Servlet Engine: Apache Tomcat/7.0.65
2019-11-23 14:31:28 org.apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [org/apache/tools/ant/AntClassLoader$ResourceEnumeration.class] from Jar [jar:file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/wtpwebapps/ordercenter-web-admin/WEB-INF/lib/ant-1.9.6.jar!/] for annotations
java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(Unknown Source)
at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
翻译了一下是因为加载项目依赖的jar包出问题了,找到本地maven仓库,直接删掉整个[org/apache/tools/ant/AntClassLoader$ResourceEnumeration.class] 文件所在jar包的整个文件,重启eclipse,重新使用maven下载依赖包,编译项目后重启tomcat报错解决了。