向pom.xml添加依赖项会导致jetty失败

时间:2013-11-02 05:18:36

标签: java maven jetty pom.xml gdata

我有一个项目,我需要使用谷歌的gdata库。当我将它的依赖项添加到pom.xml时,

<dependency>
 <groupId>com.google.gdata</groupId>
 <artifactId>core</artifactId>
 <version>1.47.1</version>
</dependency>

我的项目无法在maven-build jetty中运行:运行。 产生的错误是:

 2013-11-02 00:47:33.025::WARN:  failed default
2013-11-02 00:47:33.025::WARN:  failed ContextHandler@76c64124{/myappname-app,file:/src/main/webapp/}
2013-11-02 00:47:33.026::WARN:  failed ContextHandlerCollection@51dedf67
2013-11-02 00:47:33.026::WARN:  failed HandlerCollection@7f1d0d2e
2013-11-02 00:47:33.035::INFO:  Started SelectChannelConnector @ 0.0.0.0:8091
2013-11-02 00:47:33.035::WARN:  failed Server@41c65037
[INFO] Jetty server exiting.

并在失败消息之后

[ERROR] Failed to execute goal org.mortbay.jetty:maven-jetty-plugin:6.0.0:run (default-cli) on project projectname-impl: Failure: org.mortbay.jetty.handler.ContextHandler$Context cannot be cast to org.mortbay.jetty.handler.ContextHandler$SContext -> [Help 1]

但是,如果我删除依赖项,项目再次运行正常。

(我确实需要使用依赖项)

我该如何解决这个问题?

0 个答案:

没有答案