java.util.zip.ZipException:条目大小无效(预期107但有105个字节)

时间:2015-10-30 08:34:53

标签: java tomcat7

我在tomcat上发布了一个程序,但是这些错误发生了,我真的不知道为什么。 我只是猜测是ftp工具的问题。

这是错误:

java.io.IOException: Jar: aopalliance-1.0.jar
    at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:205)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.zip.ZipException: invalid entry size (expected 107 but got 105 bytes)
    at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:403)
    at java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
    at java.util.jar.JarInputStream.read(JarInputStream.java:207)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
    at java.util.jar.JarInputStream.getBytes(JarInputStream.java:112)
    at java.util.jar.JarInputStream.checkManifest(JarInputStream.java:94)
    at java.util.jar.JarInputStream.<init>(JarInputStream.java:86)
    at java.util.jar.JarInputStream.<init>(JarInputStream.java:62)
    at org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:393)
    at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:194)
    ... 12 more

1 个答案:

答案 0 :(得分:0)

你提到FTP。

您是否可以从FTP客户端以ASCII模式传输/ FTP传输BINARY文件(zip arcvhive)?