0

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

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

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

 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]

但是,如果我删除依赖项,该项目将再次运行良好。

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

我怎样才能解决这个问题?

4

0 回答 0