Hi,
This package is provided by AdminPackage, part of compendium specs.
Compendium is already shipped into Karaf, but we don't export all
package by default (as some bundles, like the one provided by Felix, may
provide the same packages).
You don't have (and must not ;)) put compendium jar in the deploy folder.
Instead, edit etc/config.properties and update the
org.osgi.framework.system.packages property to add useradmin package:
For Karaf 2.2.x:
org.osgi.framework.system.packages=org.osgi.framework; version=1.5.0, \
org.osgi.framework.launch; version=1.0.0, \
org.osgi.framework.hooks.service; version=1.0.0, \
org.osgi.service.packageadmin; version=1.2.0, \
org.osgi.service.useradmin; version=1.1.0, \
org.osgi.service.startlevel; version=1.1.0, \
org.osgi.service.url; version=1.0.0, \
org.osgi.util.tracker; version=1.4.0, \
org.apache.karaf.jaas.boot; version=2.2.9, \
org.apache.karaf.version; version=2.2.9, \
${jre-${java.specification.version}}
For Karaf 2.3.x:
org.osgi.framework.system.packages= \
org.osgi.framework.startlevel;uses:="org.osgi.framework";version="1.0", \
org.osgi.framework.wiring;uses:="org.osgi.resource,org.osgi.framework";version="1.1",
\
org.osgi.framework.hooks.bundle;uses:="org.osgi.framework";version="1.1", \
org.osgi.framework.hooks.service;uses:="org.osgi.framework";version="1.1", \
org.osgi.framework.hooks.resolver;uses:="org.osgi.framework.wiring";version="1.0",
\
org.osgi.framework.launch;uses:="org.osgi.framework";version="1.1", \
org.osgi.framework.namespace;uses:="org.osgi.resource";version="1.0", \
org.osgi.framework;version="1.7",\
org.osgi.framework.hooks.weaving;uses:="org.osgi.framework.wiring";version="1.0",\
org.osgi.resource;version="1.0",org.osgi.service.url;version="1.0",\
org.osgi.service.startlevel;uses:="org.osgi.framework";version="1.1",\
org.osgi.service.packageadmin;uses:="org.osgi.framework";version="1.2",\
org.osgi.service.useradmin;uses:="org.osgi.framework";version="1.1", \
org.osgi.service.url;version="1.0", \
org.osgi.util.tracker;uses:="org.osgi.framework";version="1.5.1", \
org.apache.karaf.jaas.boot;version="2.3.0", \
org.apache.karaf.jaas.boot.principal;version="2.3.0", \
org.apache.karaf.version;version="2.3.0", \
${jre-${java.specification.version}}
Like this, you should be able to see org.osgi.service.useradmin package
with package:exports.
Regards
JB
On 11/27/2012 07:27 AM, PJR69 wrote:
Trying to deploy my app on the Karaf 2.3.0 deploy folder and I'm getting a
missing dependency:
org.osgi.service.useradmin, version [1.1 - 2)
During the development, it seems that the dependency to this package comes
from org.osgi.compendium-4.1.0.jar.
I tried to copy this file to the deploy folder, but to me looks like Karaf
sorta jams/restarts then, is that what is supposed to happen?
What exactly should I copy to the deploy folder to get the proper
org.osgi.service.useradmin dependency satisfied?
This is prolly trivial to you guys, but creating my first OSGi app, it's not
for me... ;)
--
View this message in context:
http://karaf.922171.n3.nabble.com/Newbie-question-Useradmin-service-dependency-from-where-tp4026903.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com