gpt4 book ai didi

java.util.zip.ZipException : incomplete literal/length tree

转载 作者:行者123 更新时间:2023-12-02 08:31:46 25 4
gpt4 key购买 nike

当我尝试在 tomcat 5.05 上部署 webapp(name:auditadmin.war) 时遇到此问题。

我做了以下操作:auditadmin.war 已经部署并且工作正常。然后我编辑了一个 jsp 页面,使用 ant 重新构建了它并部署了新的 war 文件。直到那时我收到下面提到的错误。

堆栈跟踪是:

INFO: Installing web application at context path /auditadmin from URL file:C:/Pr
ogram Files/CA/eTrust Audit/jakarta-tomcat-5.0.28/webapps/auditadmin
Jul 6, 2006 11:46:35 AM org.apache.catalina.core.StandardContext start
SEVERE: Error in dependencyCheck
java.util.zip.ZipException: incomplete literal/length tree
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)
at java.util.jar.JarInputStream.read(JarInputStream.java:159)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at java.util.jar.JarInputStream.getBytes(JarInputStream.java:88)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:65)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:43)
at org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionVali
dator.java:368)
at org.apache.catalina.util.ExtensionValidator.validateApplication(Exten
sionValidator.java:187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Jul 6, 2006 11:46:35 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jul 6, 2006 11:46:35 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors

谁能帮帮我吗?

问候,维杰

最佳答案

API表示由于 zip 格式错误而引发 ZipException。所以我的猜测是,发动 war 时出了问题。我不认为文件的编辑有直接影响。您确定使用相同的构建脚本吗?

关于java.util.zip.ZipException : incomplete literal/length tree,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3183979/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com