简体   繁体   English

eclipse中的Tomcat Server Publishing问题

[英]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 JSF2,Primefaces3.5,Tomcat7,Java7,GSON2.2.4

Oprating System 运作系统

Ubuntu13+ Ubuntu13 +

IDE 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. 我刚注意到当我删除GSON2.2.4.jar然后一切正常但是在添加这个jar之后没有任何工作甚至服务器都没有启动。

在此输入图像描述

I found the issue when i am adding this in pom.xml 当我在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 当我运行mvn install时它创建了这个问题我得到了这个错误

[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 我修复了它从pom.xml文件更新pom依赖项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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