【问题标题】:camel-example-cxf Not Deployed in ServiceMix 4.4.2骆驼示例-cxf 未在 ServiceMix 4.4.2 中部署
【发布时间】:2012-11-30 13:05:33
【问题描述】:

我试图运行从 Camel 网站下载的 camel-example-cxf 示例项目。 (已下载 apache-camel-2.10.2)

我使用 pom.xml 构建了项目,并且构建成功。 但是,当我尝试在 servicemix (apache-servicemix-4.4.2) 中部署它时,出现以下错误。

karaf@root> ERROR: Bundle org.apache.camel.camel-example-cxf [43] Error starting file:/C:/apache-servicemix-4.4.2/deploy
/camel-example-cxf-2.10.2.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-example-cxf [43]: Unable to resolve 43.0: missing requirement [43.0] package; (&(package=org.apache.activemq.broker)(version>=5.7.0)(!(version>=6.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-example-cxf [43]: Unable to resolve 43.0: missing requirement [43.0] package; (&(package=org.apache.activemq.broker)(version>=5.7.0)(!(version>=6.0.0)))
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:619)

请帮忙

【问题讨论】:

  • 你想做什么?
  • 你好 Olle,我正在尝试将 camel-example-cxf(它是 camel 2.10.2 版本的一部分)项目部署到 ServiceMix4.4.2 中。但是正如克劳斯在下面回答的那样,看来我必须下载骆驼2.8.X。我目前正在下载它。我会在这里发布结果。

标签: web-services apache-camel tomcat6 apache-servicemix


【解决方案1】:

Apache ServiceMix 4.4.2 不支持 Camel 2.10。您需要使用随附的 Camel 版本,即 Camel 2.8。

Apache ServiceMix 4.5.0 将随 Camel 2.10 和 ActiveMQ 5.7 一起提供。此版本目前正在开发中。

【讨论】:

  • 非常感谢克劳斯。在 java/j2ee 堆栈中的最后 8 年,我已经习惯于理所当然地获得向后兼容性。现在我意识到,当我在 ServiceMix/Camel/CXF 堆栈空间工作时,我应该更加小心。
【解决方案2】:

我遇到了同样的问题(但使用了 activemq jar),并发现在运行 maven build 时,我使用的版本与 servicemix 的版本不同。您可以使用“exports”命令(在 servicemix 命令行上键入 export)找到 servicemix 使用的 jar 文件的版本,您就会知道版本。如果这与您用于 Maven 构建的不同,那么您将收到该错误。那么你有两个选择 1. 在 servicemix 中安装不同的包(与用于 maven 构建的版本相同) 2.修改pom.xml构建maven build。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-22
    • 2011-09-12
    • 1970-01-01
    • 1970-01-01
    • 2015-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多