java.util.zip.ZipException:不完整的文字/长度树

发布于 2024-09-08 00:03:17 字数 3568 浏览 8 评论 0原文

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

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

堆栈跟踪是:

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

有人可以帮我吗?

问候, 维杰

I have this problem when I try to deploy my webapp(name:auditadmin.war) on tomcat 5.05.

I did the following:auditadmin.war was already deployed & working fine.Then I edited one jsp page rebuilt it using ant & deployed the new war file.Till then I am getting the error mentioned below.

The stack trace is :

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

Can anyone please help me out?

Regards,
Vijay

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深居我梦 2024-09-15 00:03:17

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

The API says that the ZipException gets thrown because of an error in the zip format. So my guess would be that something went wrong with building the war. I don't think that the edit of the file had a direct influence. Are you sure you used the same build script?

野却迷人 2024-09-15 00:03:17

您的 ZIP/WAR/EAR/JAR 文件已损坏。

Your ZIP/WAR/EAR/JAR file is corrupted.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文