Tomcat Server Publishing issue in eclipse

13,301

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.

Share:
13,301
Subodh Joshi
Author by

Subodh Joshi

A Developer from India . I convert caffeine into code. Trying to Select * from life; if (FAIL) { keepTrying(); } else{ keepTrying(); }

Updated on June 04, 2022

Comments

  • Subodh Joshi
    Subodh Joshi almost 2 years

    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.

    enter image description here

  • Subodh Joshi
    Subodh Joshi almost 3 years
    Not a good Approach.You may get negative points for posting this as a answer.
  • Dimpy Aggarwal
    Dimpy Aggarwal almost 3 years
    I have just give the solution which helped me.
  • Subodh Joshi
    Subodh Joshi almost 3 years
    Agree but it can be added as a comment
  • Dimpy Aggarwal
    Dimpy Aggarwal over 2 years
    Agree but for that I need reputation.
  • Subodh Joshi
    Subodh Joshi over 2 years
    @DA BE Active and Participate in SO u will get reputation easily