karaf@root> install -s mvn:com.thoughtworks.xstream/xstream/1.4.7
Bundle ID: 169
Error executing command: Error installing bundles:
Unable to start bundle mvn:com.thoughtworks.xstream/xstream/1.4.7:
Unresolved constraint in bundle xstream [169]:
Unable to resolve 169.0: missing requirement [169.0] osgi.wiring.package; (osgi.wiring.package=sun.misc)
i can not find the proper maven dependency for xstream ... I searched too many links but the result is same ... is there any alternative way to overcome this issue ... can i make maven bundle form JAR? if yes then how ?
我通过在karaf的config.properties文件中添加缺少的类“ sun.misc”解决了这个问题。当我得到“ sun.misc”是jdk的库时,这就是karaf无法使用它的原因,所以我将此类添加到karaf的config.properties文件中,即可解决问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.