Hello,
I try to use ojdbc libraries in a child instance (karaf 3.0.0). I read that
i could place a jar in the lib/ext/ rep. Seen that there is no lib/ext/ rep
in a child instance dirs, I put it in the lib/ext/ rep of the root instance
and rename it to karaf-ojdbc6-11.1.0.7.0.jar as advised.
But karaf does not seem to load the library although it's in the jvm
classpath (i run it on an aix environnement) :
-Djava.ext.dirs=/usr/java7_64/jre/jre/lib/ext:/usr/java7_64/jre/lib/ext:/USR/int/apache-karaf-3.0.0/lib/ext
I have the following log :
2014-01-20 17:12:31,327 | DEBUG | lixDispatchQueue | xml
| 94 - datasource-CPU.xml - 0.0.0 | FrameworkEvent ERROR -
datasource-CPU.xml
org.osgi.framework.BundleException: Unresolved constraint in bundle
datasource-CPU.xml [94]: Unable to resolve 94.0: missing requirement [94.0]
osgi.wiring.package; (osgi.wiring.package=oracle.jdbc.pool)
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.Felix.startBundle(Felix.java:2037)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:4844)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.Felix.refreshPackages(Felix.java:4122)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:178)[org.apache.felix.framework-4.2.1.jar:]
It only works when i put the karaf-ojdbc6-11.1.0.7.0.jar in the /deploy/ rep
of the child instance :
2014-01-20 17:16:47,747 | DEBUG | -business/deploy | karaf-ojdbc6
| 98 - karaf-ojdbc6 - 11.1.0.0 | BundleEvent STARTING - karaf-ojdbc6
2014-01-20 17:16:47,786 | DEBUG | -business/deploy | karaf-ojdbc6
| 98 - karaf-ojdbc6 - 11.1.0.0 | BundleEvent STARTED - karaf-ojdbc6
I tried several start/stops of the root or child instance with no improvals.
Thanks in advance for helping.
Christophe.
--
View this message in context:
http://karaf.922171.n3.nabble.com/problem-with-external-jars-tp4031216.html
Sent from the Karaf - User mailing list archive at Nabble.com.