Eclipse - Tomcat 7 - java.lang.IndexOutOfBoundsException on publish

后端 未结 4 1425
时光取名叫无心
时光取名叫无心 2021-02-18 18:32

I have a Webproject using maven and when I try to deploy it to Tomcat 7, I get the following message:

Publishing failed
Could not publish to the server.
java.lan         


        
4条回答
  •  余生分开走
    2021-02-18 18:52

    Although this question has been answered - it was a problem with a corrupt repository, it is possible to determine which jar in your repository is corrupt by deploying the war to Tomcat outside of eclipse.

    In my situation Tomcat then reported in its log where the problem lay (guava-13.0.1.jar):

    SEVERE: Unable to process Jar entry [com/google/common/collect/package-info.class] from Jar
    [jar:file:/C:/Java/tomcat/apache-tomcat-7.0.42/webapps/myapp/WEB-INF/lib/guava-13.0.1.jar!/] for annotations
    java.util.zip.ZipException: invalid LOC header (bad signature)
    

提交回复
热议问题