简体   繁体   中英

Tomcat Server Publishing issue in eclipse

When i am trying to start the server i am getting below exception

Could not publish to the server.java.lang.IndexOutOfBoundsException

Technologies

JSF2,Primefaces3.5,Tomcat7,Java7,GSON2.2.4

Oprating System

Ubuntu13+

IDE

eclipse Kepler

I just noticed when i am removing GSON2.2.4.jar then everything working fine but after adding this jar nothing working and even server not started.

在此输入图像描述

I found the issue when i am adding this in pom.xml

 <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.2.4</version>
    </dependency>

its creating this issue when i run mvn install i got this error

[ERROR] error: error reading /home/hariom/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar; invalid LOC header (bad signature)

So i replaced this dependency with this one

    <dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.2.2</version>
</dependency>

now everything works fine.

. I have just got the same problem . I fixed it updating the pom dependencies from the pom.xml file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM