当我尝试在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包?
感谢。
答案 0 :(得分:1)
EclipseLinks有一个包,它包含在下载中:http://www.eclipse.org/downloads/download.php?file=/rt/eclipselink/releases/2.5.2/eclipselink-plugins-2.5.2.v20140319-9ad6abd.zip
或者您也可以从Amdatu Dependencies存储库中获取相同的包:https://bitbucket.org/amdatu/amdatu-repository/src/53bb0dd92bcf005da5a6937c2034d366e9f21365/dependencies/javax.persistence/javax.persistence-2.0.3.jar?at=master#
答案 1 :(得分:1)
只需安装jpa功能即可。如果您的servicemix版本中没有此功能,请尝试:
install -s mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1