需要在OSGi上使用javax.persistence捆绑

时间:2014-07-08 11:08:53

标签: jpa osgi apache-servicemix

当我尝试在Servicemix中安装我的软件包时出现此错误:

Error executing command: Error starting bundles:
Unable to start bundle 179: Unresolved constraint in bundle de.edigrid.edigrid-servicemix-util [179]: Unable to resolve 179.0: missing requirement [179.0] osgi.wiring.package; (osgi.wiring.package=javax.persistence)

有人能告诉我是否有符合OSGi标准的jar文件导出javax.persistence包?

感谢。

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:1)

只需安装jpa功能即可。如果您的servicemix版本中没有此功能,请尝试:

install -s mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1