Re: Karaf 3.0.3 OSGi Version

2015-03-17 Thread agrz
Thank you for the Clarification.
Alex



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-3-0-3-OSGi-Version-tp4039091p4039114.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Karaf 3.0.3 OSGi Version

2015-03-16 Thread agrz
Hi,

I am a little bit confused what is the OSGi Specification Version supported
in Karaf 3.0.3.
On the main page (http://karaf.apache.org/) it states Karaf 3.x supports
OSGi 4.3.
On the dependency matrix page
(http://karaf.apache.org/index/documentation/karaf-dependencies/karaf-deps-3.0.x.html)
it shows OSGi Core is Version 5.0.0 and the felix version is 4.2.1 which
should also support OSGi 5 as far as I know.
What is the exact version of OSGi Framework Karaf 3.0.3 supports and is
tested for?

Thank You
Alexander



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-3-0-3-OSGi-Version-tp4039091.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Fragment bundles and features

2014-05-13 Thread agrz
Hi,

I have a feature.xml that contains a fragment bundle for a bundle installed
from another feature.
I can do a feature:install and the fragment bundle is installed, but it is
not resolved. To do so I need to refresh the host bundle manually. Is there
any way to do this automatically during feature installation? Like when I
copy the fragment bundle to deploy folder and the host bundle is refreshed
automatically?
Doing this always manually is a little nasty for automated deployments.
Thank you
Alexander



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Fragment-bundles-and-features-tp4033106.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Karaf 3.0.1 feature Repo config

2014-04-17 Thread agrz
Hi,

I installed Karaf 3.0.1 and while testing our bundles on it I found a
changed behaviour in the configuration of feature repositories. While in
Karaf 3.0.0 it was possible to add additional repos in featuresRepositories
property in org.apache.karaf.features.cfg and they are available after a
restart. Doing so in Karaf 3.0.1 these repos are not available in Karaf.
This only works when having a fresh Karaf and modify the config before first
start of Karaf. All changes afterwards seem to be ignored. It is only
possible to use the repo-add command to add new repositories.
Is this an intended change? This would make updating several servers with
the same config much more complicated.
Best Regards
Alexander



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-3-0-1-feature-Repo-config-tp4032825.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Karaf 3.0.1 feature Repo config

2014-04-17 Thread agrz
Sorry, forget it.
I just found out this works as intended and is the same behavior as before.
Repos are added after bundle cache is cleared
Regards
Alexander



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-3-0-1-feature-Repo-config-tp4032825p4032826.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: MongoDB with Karaf

2014-04-09 Thread agrz
Check your bundle manifest, if your persistence bundle imports the
com.mongodb Package. 
I got MongoDB working in Karaf with EclipseLink, but needed in the
Persistence Bundle to manually import the driver package, because it is
referenced via refelction.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/MongoDB-with-Karaf-tp4032576p4032662.html
Sent from the Karaf - User mailing list archive at Nabble.com.


What happened to VMLogAppender in 3.0?

2014-02-24 Thread agrz
Hi,

we recently switched to Karaf 3.0, by the way big congratulations to this
great release.
What I am currently try to figure out is, how to get the hawtio console log
plugin (based on
https://github.com/fabric8io/fabric8/tree/master/insight/insight-log).
Insight-log has a dependency to
org.apache.felix.karaf.shell.log.VmLogAppender, which is missing in Karaf
3.0.
I was not able to find out, if it was moved or removed, for what reason and
if there is an alternative, which could be used to adopt the insight-log
plugin to Karaf 3.0.
Thank You
Alexander



--
View this message in context: 
http://karaf.922171.n3.nabble.com/What-happened-to-VMLogAppender-in-3-0-tp4031904.html
Sent from the Karaf - User mailing list archive at Nabble.com.


OSGi Compendium APIs

2014-01-14 Thread agrz
Hi,

I want to deploy some services implementing APIs from OSGi Compendium
(Preferences and UserAdmin) and followed the instructions in this post:
http://karaf.922171.n3.nabble.com/Newbie-question-Useradmin-service-dependency-from-where-td4026903.html
I added the package org.osgi.service.useradmin to
org.osgi.framework.system.packages configuration and it is listed in the
package:exports. My UserAdmin implementation resolves correctly but on start
it does not find the classes in org.osgi.service.useradmin.
Am I missing something?
Thanks
Alex




--
View this message in context: 
http://karaf.922171.n3.nabble.com/OSGi-Compendium-APIs-tp4030999.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: OSGi Compendium APIs

2014-01-14 Thread agrz
Hi JB

yes the import is correct. The bundle is resolved and gets an error during
runtime.
In fact trying with felix UserAdmin implementation is the same behavior.
Trying to deploy version 1.0.3 of Felix UserAdmin I get the following error:

org.osgi.framework.BundleException: Activator start error in bundle
org.apache.felix.useradmin [79].
at
org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.Felix.startBundle(Felix.java:2064)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1247)[16:org.apache.felix.fileinstall:3.2.6]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1219)[16:org.apache.felix.fileinstall:3.2.6]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:508)[16:org.apache.felix.fileinstall:3.2.6]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[16:org.apache.felix.fileinstall:3.2.6]
Caused by: java.lang.NoClassDefFoundError:
org.osgi.service.useradmin.UserAdminListener
at
org.apache.felix.useradmin.osgi.UserAdminListenerListHelper.class$(UserAdminListenerListHelper.java:38)
at
org.apache.felix.useradmin.osgi.UserAdminListenerListHelper.init(UserAdminListenerListHelper.java:38)
at
org.apache.felix.useradmin.osgi.Activator.createServiceContext(Activator.java:68)
at org.apache.felix.useradmin.osgi.Activator.start(Activator.java:37)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
... 6 more


In my config properties I have set:


org.osgi.framework.system.packages= \
 org.osgi.framework.startlevel;uses:=org.osgi.framework;version=1.0, \
 org.osgi.framework.wiring;uses:=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=3.0.0, \
 org.apache.karaf.jaas.boot.principal;version=3.0.0, \
 org.apache.karaf.management.boot;version=3.0.0, \
 org.apache.karaf.version;version=3.0.0, \
 ${jre-${java.specification.version}}


I am using Karaf 3.0.0 Release. I also tried to look into the libraries that
karaf includes and could only find very few the compendium services APIs.
Where does karaf get the additonal  org.osgi.service packages from? Is there
something that needs to be installed in addition?

Regards
Alexander



--
View this message in context: 
http://karaf.922171.n3.nabble.com/OSGi-Compendium-APIs-tp4030999p4031005.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: OSGi Compendium APIs

2014-01-14 Thread agrz
Yes, this is what I did to get it running. But I was wondering if there is
another way in karaf providing standard osgi apis. This is what I understood
reading this post:
http://karaf.922171.n3.nabble.com/Newbie-question-Useradmin-service-dependency-from-where-td4026903.html
Thanks anyways
Alex



--
View this message in context: 
http://karaf.922171.n3.nabble.com/OSGi-Compendium-APIs-tp4030999p4031012.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: OSGi Compendium APIs

2014-01-14 Thread agrz
That would be very helpfull. Even if I got it working too now by including
the APIs in the jar. And also the Felix UserAdmin has them now included when
building the latest verison from sources.


rkmoquin wrote
 I had gotten the User Admin service working correctly in Karaf 3.0.0.  I
 can get the code pushed up in my github repo if you like, maybe it will
 help.  It's pretty easy to do.






--
View this message in context: 
http://karaf.922171.n3.nabble.com/OSGi-Compendium-APIs-tp4030999p4031036.html
Sent from the Karaf - User mailing list archive at Nabble.com.