当我尝试在tomcat 5.05上部署我的webapp(name:auditadmin.war)时遇到此问题。
我做了以下操作:auditadmin.war已经部署&工作正常。然后我编辑了一个jsp页面,使用ant& amp;部署了新的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
有人可以帮帮我吗?
此致 维杰
答案 0 :(得分:1)
API表示由于zip格式的错误而抛出ZipException。所以我的猜测是建立战争出了问题。我不认为该文件的编辑有直接影响。您确定使用了相同的构建脚本吗?
答案 1 :(得分:1)
您的ZIP
/ WAR
/ EAR
/ JAR
文件已损坏。