How are you starting felix and how are you trying to load the bundles?
Quoting ??? (Kenneth Yang) titanic.7485...@gmail.com:
Hi,
I am totally new to Felix as well as Android.
I am trying to integrate Felix into Android with user GUI.
However, we encounter some problems.
We have successfully
Bother. That sounds eerily like the junit runner I'm half way through
writing...
Quoting Achim Nierbeck bcanh...@googlemail.com:
well, if you are in need of help, just ask :-) someone out there will
try to answer.
Taking the example you choose here is a quick (very-quick) help line :-)
I'd like to apologize to anyone I may have offended with my previous
posts. Having reviewed a couple blog posts, PAX Exam appears to be
quite powerful.
At the risk of sticking my foot in my mouth, yet again, the only thing
I can say in my defense is that the OPS4J documentation is spotty
LOL Yeah, I totally walked into that one...
Quoting Peter Kriens peter.kri...@aqute.biz:
As this is open source you're now on the hook for documentation ... :-)
Kind regards,
Peter Kriens
On 22 aug 2011, at 16:47, john.dun...@exceter.com wrote:
I'd like to apologize to anyone I
I am looking into using Pax-Exam to run unit tests against iPojo bundles.
However, as a Pax-Exam powered unit test is itself packaged into a bundle
prior to being run I would like to be able to have iPojo inject services
directly into the fields of my JUnit tests. However, I'm not really sure
how
That's fair. I guess I just don't understand what all the other stuff
is. Maybe I just haven't looked closely enough. Like I said before, I
wasn't trying to be offensive or dismissive in any way. It was just my
off the cuff impression.
Quoting Achim Nierbeck bcanh...@googlemail.com:
I will check it out. I mean no offense. I just know that the last time
I checked out Pax Exam the amount of annotations required to run a
test made my head hurt.
Quoting Matt Madhavan mattmadha...@gmail.com:
Ornate? Come on man, check it out. I have designed the OSGi development
standard
https://github.com/tonit/Learn-PaxExam/blob/master/lesson-junit/src/test/java/org/ops4j/pax/exam/lesson3/LessonTest.java
Quoting Toni Menzel t...@okidokiteam.com:
Can you be more specific ? Would love to simplify (in your terms) ..
Toni
On Sat, Aug 20, 2011 at 5:09 PM,
Yes, that's exactly what I need to do. Do you have a recommended approach?
Quoting Holger Hoffstätte holger.hoffstae...@googlemail.com:
On 19.08.2011 14:51, john.dun...@exceter.com wrote:
Is it possible to install an object as a bundle without first
packaging it as a jar? The closest I've
That's quite a trick... Thanks!
Quoting chetan mehrotra chetan.mehro...@gmail.com:
You can also have look at Karaf Spring deployer which creates a Bundle on
the fly for a give Spring config file
Thanks for the tip! I'll certainly take a look at it but my general
impression of OPS4J has been that their stuff(while very cool) tends
to be a little too ornate for my taste.
Cheers!
-John
Quoting Matt Madhavan mattmadha...@gmail.com:
OPS4J PAXTinyBundle Tool might be a good option
For anyone else looking for annotated maven examples of iPOJO in
action, they are located here,
https://svn.apache.org/repos/asf/felix/trunk/ipojo/examples/tutorial-maven/
Quoting john.dun...@exceter.com:
*I've found some example annotations but they have incomplete maven
configuration to
I'm trying to to create OSGI services using iPOJO annotations and
maven. Does anyone know if there is an example like this one that uses
iPOJO annotations instead of XML? I've found some annotations
http://felix.apache.org/site/ipojo-hello-word-maven-based-tutorial.html
-John
*I've found some example annotations but they have incomplete maven
configuration to go with them.
Quoting john.dun...@exceter.com:
I'm trying to to create OSGI services using iPOJO annotations and
maven. Does anyone know if there is an example like this one that uses
iPOJO annotations
I figured it out. I needed to add this to my pom,
dependency
groupIdorg.apache.felix/groupId
artifactIdorg.apache.felix.framework/artifactId
version3.2.2/version
/dependency
Quoting john.dun...@exceter.com:
I'm trying to install a bundle
Can GoGo be scripted and, if so, where can I find documentation for
how to do this?
-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org
Thanks!
Quoting Richard S. Hall he...@ungoverned.org:
Gogo supports scripting at least to some degree...not sure if it is
properly documented, but I'd guess not...
Type gosh -? at the Gogo prompt...
You can look at the org.apache.felix.gogo.shell.Shell.gosh() method
source to get more
Hi Ken, that link is giving me a 404
Quoting Ken Gilmer kgil...@buglabs.net:
Hi John,
Knapsack embeds Felix 3.2.2 and uses some of the more complex options,
such as using a custom Logger and adding bundles to the framework before
startup:
Richard, as requested I've created an issue for this,
https://issues.apache.org/jira/browse/FELIX-3068
-John
Quoting Richard S. Hall he...@ungoverned.org:
On 8/4/11 4:27 PM, john.dun...@exceter.com wrote:
I'm trying to embed felix and the code examples at
Is it possible for the default felix file installer to recursively
install bundles, starting from a specified base directory?
-John
-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands,
No, I meant if I have a folder with sub folders will felix file
install also install the bundles which are in the sub folders?
-John
Quoting Rafael Liu rafael...@gmail.com:
Have you looked at Apache Felix File Install? It automatically installs
bundles from a folder. The recursive that
Thanks! I'll check it out!
Quoting Ken Gilmer kgil...@buglabs.net:
Hi John,
Ooops. I've refactored that class and it's now called Launcher:
https://github.com/kgilmer/knapsack/blob/master/org/knapsack/Launcher.java
hth,
ken
On Fri, Aug 5, 2011 at 10:30 PM, john.dun...@exceter.com
I'm trying to embed felix and the code examples at
http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html seem, at least to me, to be incomplete. The only working example of how to embed felix which I've been able to find is this:
That sounds perfect for what I'm trying to do!
Quoting Marcel Offermans marcel.offerm...@luminis.nl:
On 14 Jul 2011, at 23:00 , john.dun...@exceter.com wrote:
I would like to hide the update mechanism from the end user. As far
as the client is be concerned, the application should be
I'm interested in using OSGI as an update mechanism in a swing based
app. However, I'm concerned that managing the extremely dynamic nature
of OSGI is too difficult.
How can guarantee that the client's OSGI container will remain in a
known state which is identical to the state of the OSGI
I would like to hide the update mechanism from the end user. As far as
the client is be concerned, the application should be versioned as a
whole. For example, I would like the client to see that an update from
version 1.2.3.4 to 1.2.3.5 is available. Behind the scenes the update
would
Thanks!
Quoting Richard S. Hall he...@ungoverned.org:
On 6/24/11 19:25, john.dun...@exceter.com wrote:
Bundle.getDataFile(String) is a very useful method but I'm curious
if I can safely use it to create sub directories within the
bundle's storage area so that I can more easily manage
Pax Logging is installed in karaf by default so that's definitely
possible. Thanks!
Quoting Richard S. Hall he...@ungoverned.org:
On 6/24/11 20:23, john.dun...@exceter.com wrote:
I have the following bundle activator which implements both
FrameworkListener and BundleListener,
import
I modified my class to this but I am still not seeing anything on the
console. I would have expected this to account for System.out being
redirected.
public class ListenerActivator implements BundleActivator,
FrameworkListener, BundleListener
{
private int invoked = 0;
private
I'm not sure why but when I use SynchronousBundleListener instead of
BundleListener the output starts appearing in the console.
Quoting john.dun...@exceter.com:
I modified my class to this but I am still not seeing anything on the
console. I would have expected this to account for
Bundle.getDataFile(String) is a very useful method but I'm curious if
I can safely use it to create sub directories within the bundle's
storage area so that I can more easily manage large numbers of files.
-
To
I have the following bundle activator which implements both
FrameworkListener and BundleListener,
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
import org.osgi.framework.BundleListener;
import
Take a look at this,
http://www.dynamicjava.org/articles/osgi-matters/3rd-party-components-with-osgi/11-osgi-matters/43-3rd-party-components-incompatibility-problems?tmpl=componentprint=1page=
Quoting Shamik Bandopadhyay sham...@gmail.com:
Well, that's the part which is puzzling. I don't see
I'm no expert but my best guess would be that spring is trying to load
the file from the wrong classloader. If I'm reading the spring source
correctly, it will attempt to load
classpath:META-INF/spring/repo/test.db4o from
Thread.currentThread().getContextClassLoader() and then from
I haven't looked into it in great detail but I'd recommend looking
into something like this because it will generate service wrappers for
both windows and unix/linux.
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/usage_jsw.html
-John
Quoting Richard S. Hall
I would have said masochists instead of dinosaurs but to each his own...
Quoting Jacques-Olivier Goussard jogouss...@gmail.com:
Yeah, you know, deep down in the woods out there, there are dinosaurs
like me that
use 'vi' to edit code...
Asking questions like this betray your age dude :)
On
Are you using $(maven-symbolicname) or ${maven-symbolicname} ?
Quoting Raja Kannappan rkannap...@axioma.com:
Hi,
We use maven BND Plugin to generate OSGi bundles from regular jars.
We use it like this:
plugin
In your pom, ${maven-symbolicname} would be the correct syntax.
Whether or not a property of that name has actually been set is
another matter.
Quoting Raja Kannappan rkannap...@axioma.com:
I tried all possible combinations - $(maven-symbolicname),
${maven-symbolicname),
If you are running karaf under Linux, there is a workaround for this
that I use.
1) Create a linux user to log into the server with. I named mine karaf
2) Set the login shell of the karaf user to the karaf client in
/etc/passwd. Mine looks like this,
Are there are any scheduling bundles available? I have a server with a
bunch of jar files that are currently being invoked by linux crontab
entries and I would like to move all of these jars into karaf and
invoke them with an OSGI based scheduler.
Excellent! I have used quartz before I just didn't want to have to
wrap it myself if someone else already has.
Thanks!
Quoting Guillaume Nodet gno...@gmail.com:
Have you tried using Quartz scheduler ?
You can find a bundle for it that has been wrapped by Apache ServiceMix:
Which JVM are you using?
Quoting Adarsh Ashok Joshi adar...@broadcom.com:
Hello,
I have installed Felix on my embedded system and I am able to run
basic bundles on it. I want to do more tests on the system.
Something like CPU usage, Memory usage, Disk usage etc. All I find
when I
JamVM uses GNU Classpath for its runtime and it appears to support
OperatingSystemMXBean so I'd look into that and javasysmon,
http://developer.classpath.org/doc/java/lang/management/OperatingSystemMXBean.html
https://github.com/jezhumble/javasysmon/wiki
Cheers!
-John
Quoting Adarsh Ashok
I'm not aware of any bundles that do that but if you find any I'd be
interested in them as well.
Also, if you can't get the information you need from one of the VM's
MXBeans you'll probably have to resort to using JNI to integrate with
the OS.
Cheers!
-John
Quoting Adarsh Ashok Joshi
Thanks for doing this Richard!
I like the sound of OSGi but I've never made the leap to it because I
don't feel that I understand it well enough to convince myself that it
is the right direction to go in.
Your slides have clarified a number of things for me and your
analogies are both
Congratulations and thank you!
Steven Siebert wrote:
I read on an OSGi blog
(http://www.osgi.org/blog/2011/01/error-messages.html) that Richard
Hall recently had a son. Congrats and thanks for all you do for the
community!
S
I've been wondering the exact same thing.
Quoting Rice Yeh rice...@gmail.com:
Hi,
Just wonder whether there is a repository (better to be maven2 compatible)
from which we can get artefacts? Or we just need to osgize every artefact we
used?
Rice
This is actually my largest stumbling block with osgi. Although osgi
is a very very impressive and ingenious technology, at a practical
level, osgi is not extraordinarily useful in the absence of bundle
repositories and robust dependency management.
Quoting Guillaume Nodet
I'm trying to install the Felix web console but the instructions on
the website appear to
be out of date. It tells me to use the following command,
install
http://mirror.switch.ch/mirror/apache/dist/felix/org.apache.felix.webconsole-2.0.6.jar
but that gives me a 404 error and I think the
I have a vanilla 3.0.2 felix install up and running. However, I cannot
seem to figure out how to install the bundles which are listed by the
OBR commands. Every example I've found has me manually installing
bundles from my local machine, which strikes me as defeating the
purpose of having
:(
Quoting Guillaume Nodet gno...@gmail.com:
The real problem is that there's no real usable obr repository, so
you're really on your own here. However obr use a url to actually
dowload and install the bundles that you can point to a known location
if you manage thoses repositories. What
Is an OBR repository a new concept or is it just difficult to implement?
Quoting Guillaume Nodet gno...@gmail.com:
The real problem is that there's no real usable obr repository, so
you're really on your own here. However obr use a url to actually
dowload and install the bundles that you can
*hits self* If only the docs explained it like that...
Quoting Karl Pauls karlpa...@gmail.com:
The repository is just an xml file that must be accessible via a url.
So all you have to do is to have your ide move the bundle plus the
repository to a server some place and point obr to that. You
Yes, I just got my command working in gogo a few minutes ago. Thanks
for the help with that Richard!
I pointed out what was causing my problem because Derek Baum said that
this particular error should not happen with Felix 3.0.2.
-John
Quoting Michael Hess mh...@orga-systems.com:
Hi
Done.
https://issues.apache.org/jira/browse/FELIX-2618
Quoting Richard S. Hall he...@ungoverned.org:
On 9/23/10 10:09, john.dun...@exceter.com wrote:
Yes, I just got my command working in gogo a few minutes ago.
Thanks for the help with that Richard!
I pointed out what was causing my
55 matches
Mail list logo