2014-07-08 120 views
1

當我嘗試安裝我的包在ServiceMix中我得到這個錯誤:需要用javax.persistence捆綁OSGi的

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包?

謝謝。

回答

1

只要安裝了JPA功能。如果此功能在您的servicemix版本中不可用,請嘗試:

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