Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jpa 需要在OSGi上绑定javax.persistence_Jpa_Osgi_Apache Servicemix - Fatal编程技术网

Jpa 需要在OSGi上绑定javax.persistence

Jpa 需要在OSGi上绑定javax.persistence,jpa,osgi,apache-servicemix,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.pac

当我尝试在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)
有人能告诉我是否有一个标准的jar文件,OSGi兼容,可以导出javax.persistence包吗


谢谢。

EclipseLink有一个捆绑包,它包含在他们的下载中:


或者,您也可以从Amdatu依赖项存储库获得相同的捆绑包:

只需安装jpa功能。如果此功能在servicemix版本中不可用,请尝试:

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