OSGI Bundle Error - ojdbc6.jar

廉价感情. 提交于 2019-12-04 19:54:38

I have enabled dynamic import in my bundle and it worked.

I have fixed that with the folowing methods:

1) Wrap oracle jdbc library into local maven repository

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2.0 -Dpackaging=jar -Dfile=/home/mike/ojdbc7.jar -DgeneratePom=true

2) Wrap oracle jdbc library from local maven to OSGi bundle

osgi:install -s wrap:mvn:com.oracle/ojdbc7/12.1.0.2.0

3) In the pom.xml of my own OSGi bundle:

<Import-Package>oracle.jdbc.driver,*</Import-Package>

You can also try installing the JAR as-is using the wrap handler

install wrap:file:/path/myfile.jar
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!