Tomcat 启动报错,错误信息:Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: zip f...

Tomcat启动时报如下错误:

27-Jan-2021 10:11:25.250 严重 [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:

org.apache.catalina.LifecycleException: 初始化组件[org.apache.catalina.webresources.JarResourceSet@1c9a6fad]失败。

at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)

at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:723)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4803)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4939)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:970)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1840)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: zip file is empty

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:142)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

... 16 more

Caused by: java.util.zip.ZipException: zip file is empty

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.(ZipFile.java:225)

at java.util.zip.ZipFile.(ZipFile.java:155)

at java.util.jar.JarFile.(JarFile.java:166)

at java.util.jar.JarFile.(JarFile.java:130)

at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:202)

at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:187)

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:139)

... 17 more

27-Jan-2021 10:11:25.251 严重 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR 部署 Web 应用程序 archive [/SPG/Tomcat/webapps/SPGProject.war] 时出错

java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: 初始化组件[org.apache.catalina.webresources.JarResourceSet@1c9a6fad]失败。

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:747)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:970)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1840)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

发现WEB-INF/lib下jar包大小为0bytes


你可能感兴趣的:(Tomcat 启动报错,错误信息:Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: zip f...)