1

我尝试在 FUSE ESB OSGi 容器中启动由 Maven 创建的包。但是我的三个依赖项出错了:

1. libthrift-0.7.0.jar
2. httpclient-4.0.1.jar
3. httpcore-4.0.1.jar

Error executing command: Error starting bundles:
Unable to start bundle 262: Uses constraint violation. Unable to resolve bundle 
revision file__opt_FuseESBEnterprise-7.1.0_deploy_libthrift-0.7.0.jar [316.0]
because it is exposed to package 'org.apache.http' from bundle revisions 
org.apache.httpcomponents.httpcore [291.0] and org.apache.httpcomponents.httpclient     
[290.0] via two dependency chains.

Chain 1:
 file__opt_FuseESBEnterprise-7.1.0_deploy_libthrift-0.7.0.jar [316.0]
import: (osgi.wiring.package=org.apache.http)
 |
export: osgi.wiring.package=org.apache.http
org.apache.httpcomponents.httpcore [291.0]

Chain 2:
file__opt_FuseESBEnterprise-7.1.0_deploy_libthrift-0.7.0.jar [316.0]
import: (osgi.wiring.package=org.apache.http.client)
 |
export: osgi.wiring.package=org.apache.http.client; uses:=org.apache.http
export: osgi.wiring.package=org.apache.http
org.apache.httpcomponents.httpclient [290.0]

谁能向我解释这个错误是什么?

4

1 回答 1

2

你是如何安装 http 核心和客户端包的?

您可以尝试将 camel-http4 安装为一项功能,因为它提供了开箱即用的 http 客户端。

features:install camel-http4

然后安装你自己的包。

于 2013-04-16T05:04:57.920 回答