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.
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, 2022Comments
-
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.
-
Subodh Joshi almost 3 yearsNot a good Approach.You may get negative points for posting this as a answer.
-
Dimpy Aggarwal almost 3 yearsI have just give the solution which helped me.
-
Subodh Joshi almost 3 yearsAgree but it can be added as a comment
-
Dimpy Aggarwal over 2 yearsAgree but for that I need reputation.
-
Subodh Joshi over 2 years@DA BE Active and Participate in SO u will get reputation easily