eclipse中的Tomcat Server Publishing问题 [英] Tomcat Server Publishing issue in eclipse

查看:1249
本文介绍了eclipse中的Tomcat Server Publishing问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试启动服务器时,我遇到异常

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

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

技术

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

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

操作系统

Ubuntu13 +

Ubuntu13+

IDE

eclipse Kepler

eclipse Kepler

我刚注意到当我删除GSON2.2.4.jar然后一切正常但是在添加这个jar之后什么都没有工作甚至服务器都没有启动。

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.

推荐答案

我在pom.xml中添加它时发现了这个问题

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>

我在运行 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>

现在一切正常。

这篇关于eclipse中的Tomcat Server Publishing问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆