LCJ_李川江 发表于 2017-6-4 22:09:14

启动项目时抛出ZIP异常!!!

虽然能够正常启动,但是就是会抛出这个异常,试了很多方法都没解决,网上找到的基本都是说包的位置不对,但是把包下载下来,手动放到lib中,还是会报错,这到底是什么回事,怎么才能解决这个问题呀!!


六月 04, 2017 9:44:59 下午 org.apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry from Jar for annotations
java.util.zip.ZipException: invalid LOC header (bad signature)
        at java.util.zip.ZipFile.read(Native Method)
        at java.util.zip.ZipFile.access$1400(ZipFile.java:61)
        at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)
        at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:420)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
        at java.io.DataInputStream.readInt(DataInputStream.java:387)
        at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:195)
        at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:86)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2027)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1958)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1926)
        at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1877)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1147)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1390)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1380)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)


mybatis-3.0.5.jar 这个包在lib中是有的,但是从pom.xml中没有看到加载mybatis的配置,只是定义了一下版本号,但并没有用,不知道为什么会这有个包,是哪里的依赖??

admin 发表于 2017-6-4 23:05:51

确认下是不是下载的jar有问题,可以把本地库删了,重新下载

LCJ_李川江 发表于 2017-6-5 01:05:28

我把JEECG-os-repository-3.7-20170420.zip下载下来覆盖了我的私库好像就OK了


页: [1]
查看完整版本: 启动项目时抛出ZIP异常!!!