【问题标题】:Installing hibernate bundle in AEM OSGI在 AEM OSGI 中安装休眠包
【发布时间】:2016-04-08 08:03:00
【问题描述】:

我从 -http://mvnrepository.com/artifact/org.hibernate/hibernate-osgi获得了作为osgi包的hibernate jar。

当我在全新的 AEM 6.1 中安装它时,出现以下错误 -

Unresolved constraint in bundle org.hibernate.osgi [448]: Unable to resolve 448.0: missing requirement [448.0] osgi.wiring.package; (&(osgi.wiring.package=javax.persistence)(version>=2.1.0)))
org.osgi.framework.BundleException: Unresolved constraint in bundle org.hibernate.osgi [448]: Unable to resolve 448.0: missing requirement [448.0] osgi.wiring.package; (&(osgi.wiring.package=javax.persistence)(version>=2.1.0))
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
    at org.apache.felix.webconsole.internal.core.InstallHelper.doRun(InstallHelper.java:67)
    at org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.doRun(BaseUpdateInstallHelper.java:93)
    at org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.run(BaseUpdateInstallHelper.java:123)
    at java.lang.Thread.run(Unknown Source)
04.01.2016 21:43:00.498 *ERROR* [FelixDispatchQueue] org.hibernate.osgi FrameworkEvent ERROR (org.osgi.framework.BundleException: Unresolved constraint in bundle org.hibernate.osgi [448]: Unable to resolve 448.0: missing requirement [448.0] osgi.wiring.package; (&(osgi.wiring.package=javax.persistence)(version>=2.1.0))).

谁能帮忙?

【问题讨论】:

    标签: java hibernate osgi aem


    【解决方案1】:

    问题是缺少持久性 API 2.1。这意味着必须有另一个包导出 javax.persistence 包,版本为 2.1。

    【讨论】:

      猜你喜欢
      • 2010-10-14
      • 2014-05-03
      • 2019-02-23
      • 2014-05-24
      • 2016-11-11
      • 2015-08-10
      • 2014-12-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多