2016-10-03 20 views
0

私のアプリの動作を妨げるいくつかのエラーが発生しました。私は何を間違えたのですか?JSTLライブラリのエラー

SEVERE: Unable to process Jar entry [javax/servlet/jsp/jstl/core/ConditionalTagSupport.class] from Jar [jar:file:/K:/iACADEMY/3rd%20Year%201st%20Sem/Ent%20Java%202/apache-tomcat-7.0.57/lib/jstl-1.2.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(Unknown Source) 
    at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source) 
    at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source) 
    at java.util.zip.InflaterInputStream.read(Unknown Source) 
    at java.io.BufferedInputStream.fill(Unknown Source) 
    at java.io.BufferedInputStream.read(Unknown Source) 
    at java.io.DataInputStream.readInt(Unknown Source) 
    at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:237) 
    at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:114) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2134) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2010) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1976) 
    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1961) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1319) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376) 
    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:5322) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 

Oct 03, 2016 4:12:57 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar 
SEVERE: Unable to process Jar entry [javax/servlet/jsp/jstl/core/Config.class] from Jar [jar:file:/K:/iACADEMY/3rd%20Year%201st%20Sem/Ent%20Java%202/apache-tomcat-7.0.57/lib/jstl-1.2.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(Unknown Source) 
    at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source) 
    at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source) 
    at java.util.zip.InflaterInputStream.read(Unknown Source) 
    at java.io.BufferedInputStream.fill(Unknown Source) 
    at java.io.BufferedInputStream.read(Unknown Source) 
    at java.io.DataInputStream.readInt(Unknown Source) 
    at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:237) 
    at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:114) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2134) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2010) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1976) 
    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1961) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1319) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376) 
    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:5322) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 

Oct 03, 2016 4:12:59 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar 
SEVERE: Unable to process Jar entry [javax/servlet/jsp/jstl/core/ConditionalTagSupport.class] from Jar [jar:file:/K:/iACADEMY/3rd%20Year%201st%20Sem/Ent%20Java%202/apache-tomcat-7.0.57/lib/jstl-1.2.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(Unknown Source) 
    at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source) 
    at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source) 
    at java.util.zip.InflaterInputStream.read(Unknown Source) 
    at java.io.BufferedInputStream.fill(Unknown Source) 
    at java.io.BufferedInputStream.read(Unknown Source) 
    at java.io.DataInputStream.readInt(Unknown Source) 
    at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:237) 
    at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:114) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2134) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2010) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1976) 
    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1961) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1319) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376) 
    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:5322) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 

Oct 03, 2016 4:12:59 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar 
SEVERE: Unable to process Jar entry [javax/servlet/jsp/jstl/core/Config.class] from Jar [jar:file:/K:/iACADEMY/3rd%20Year%201st%20Sem/Ent%20Java%202/apache-tomcat-7.0.57/lib/jstl-1.2.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(Unknown Source) 
    at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source) 
    at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source) 
    at java.util.zip.InflaterInputStream.read(Unknown Source) 
    at java.io.BufferedInputStream.fill(Unknown Source) 
    at java.io.BufferedInputStream.read(Unknown Source) 
    at java.io.DataInputStream.readInt(Unknown Source) 
    at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:237) 
    at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:114) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2134) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2010) 
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1976) 
    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1961) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1319) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376) 
    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:5322) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 

私はJSTL foreach関数を使用すると思われますが、何らかの理由でこのエラーは処理後に発生します。これは私のコンソールに表示されるエラートレースです。

+1

。私はあなたが使用しようとしている別のバージョンのジャーを使用します。 –

+0

この質問は、もはや再現できない問題や単純な誤植によって引き起こされました。同様の質問がここでは話題になるかもしれないが、これは将来の読者を助けるとは思わない方法で解決された。これは、転記する前に問題を再現するのに必要な最短のプログラムを特定して綿密に検査することによって回避することができます。 –

答えて

0

あなたの問題はjarファイルのパスだと思います。

jar:file:/K:/iACADEMY/3rd%20Year%201st%20Sem/Ent%20Java%202/apache-tomcat-7.0.57/lib/jstl-1.2.jar! 

私はあなたが非空白文字とパスの名前を変更して再度試みることができると思います。