On Wed, Dec 1, 2010 at 5:01 PM, sam lee wrote:
> - find the bundle under launchpad/felix/bundle number>/version.0.0/bundle.jar
This won't work if bundle installed with "reference:" prefix.
You may try Bundle.getLocation()[1], then parse the location.
-Guo
[1]
http://www.osgi.org/javadoc/r4v42/o
2010/9/3 shiyu :
> please send me a security layer development tutorials and
OSGi itself has nothing to do with security even the class load
mechanism give you some kind of isolation. Traditional JAVA security
still valid in OSGi world.
> Felix Development examples
To start with OSGi, you just nee
On Thu, Aug 12, 2010 at 11:13 PM, wrote:
> Maven is used to build felix framework - so far so good
>
> BUT why are many bundles in Felix part of maven or s.th. like plugins - I
>
> What does the "maven-bundle-plugin" should tell me ?
>
You may think maven-bundle-plugin as a jar task in ant, it g
On Wed, Aug 11, 2010 at 6:50 PM, Stephen Brady wrote:
> Can anyone suggest an alternative?
You could launch felix as windows scheduled task to run when windows start.
-Guo
-
To unsubscribe, e-mail: users-unsubscr...@felix.apache
On Fri, Aug 6, 2010 at 11:41 AM, Charles Moulliard wrote:
> If you don't want to use bundle start level, which solution do you use when
> you would like to start service or bundles in a specific order ?
It's against OSGi, but you can achieve this by monitor the bundle
installed/started events, onl
On Sun, Jul 11, 2010 at 7:03 AM, Mahammad Nasir 00900514
wrote:
> Can you tell me what could be the problems if i dont make it as a bundle?
>
> Currently i am using the second method which is working fine, i am not able
> to anticipate the problem now.
What do you want to share for those jars? If
On Fri, Jul 2, 2010 at 12:22 PM, Sander de Groot wrote:
> Okay, I was expecting this question. The problem however is: I can't give
> you a definitive answer. Like I said: these bundles are actually just web
> applications (WAR) with a single point of entry (single servlet per-bundle).
You may "th
On Fri, Apr 16, 2010 at 11:54 AM, Norbert Somlai wrote:
> We have a fragment bundle that loads without warnings and gets into Resolved
> state. However, it does not get attached to any host and the bundle using it
> gets resolved and started but fails with a ClassNotFoundException. Could you
> tel
On Thu, Apr 8, 2010 at 4:30 AM, ext2 wrote:
> I known, I should write a bundle act as a admin role to inspect for these
> special application bundles, when these special application bundles
> installed /uninstalled, the admin bundle should prepare or clean up
You need ensure admin bundle started b
On Wed, Mar 31, 2010 at 10:12 AM, Guillaume Nodet wrote:
> Wouldn't it make more sense to use service hooks instead ?
> The current design is limited as if a user wants to grab the list of
> services and use those, that would not work.
>> > Option 2 is intercepting the calls and dynamically weaves
On Mon, Mar 29, 2010 at 9:00 AM, Leon668 wrote:
> Then if Service C wants to invoke Service B, it needs to wait until Service
> A releases Service B.
Is synchronized signature on serviceB method solve your problem?
-Guo
-
To un
On Thu, Mar 4, 2010 at 4:01 PM, Chris Hane wrote:
> I'm pretty sure the answers are yes but wanted to confirm and then ask if
> there are any suggested tutorials or examples. Navigating the felix site
> isn't very easy and the karaf documentation is not complete.
Felix/OSGi is nothing to do with
On Thu, Feb 25, 2010 at 2:12 PM, Mahammad Nasir
wrote:
> Currently i am not facing any problems with felix. But i am not able to
> instantiate Equinox. It appears to me reason for this is Equinox has
> Thread.currentthread.getContextClassLoader which returns null (I am not
> fully sure, if this
On Sun, Feb 21, 2010 at 7:48 PM, Karl Pauls wrote:
>> (org.osgi.framework.BundleException: Unresolved constraint in bundle
>> maestro_SOAFw_WebServices [117]: package;
>> (&(package=javax.xml.datatype)(version>=1.4.0)))
>
> And provided is:
>
>> If we check what is exported by the bundle 0 (=jre)
On Thu, Jan 28, 2010 at 5:45 PM, Alexander Blotny
wrote:
> configuration = new DefaultConfiguration().setUserSettingsFile( user
> ).setClassLoader( DefaultPlexusConfiguration.class.getClassLoader());
maven as build tool it has special class loader algorithm which
designed to dynamic load class fro
On Tue, Jan 26, 2010 at 4:38 PM, Andreas Kollegger
wrote:
> Sometimes the shutdown hangs while waiting on the Karaf ssh bundle to stop, I
> think because it hasn't
> yet fully started up and is caught in a bad state.
There is no KILL command according to OSGi api. Bundle life cycle is
managed by
On Sat, Dec 26, 2009 at 9:01 PM, B.E.N. van der Veen
wrote:
> I gave it a try. Same error. UnknowHostException
felix-framework itself doesn't has the console to install bundle,
which installer you are using, org.apache.felix.shell?
It will be helpful if you can post your framework installed
b
On Wed, Dec 23, 2009 at 9:45 PM, David Tkaczyk wrote:
> org.apache.felix.webconsole.internal.deppack.DepPackServlet. Reason:
> java.lang.NoClassDefFoundError:
> org/osgi/service/deploymentadmin/DeploymentException
Did you install org.osgi.compendium (OSGi R4 Compendium Bundle)?
-Guo
On Mon, Dec 21, 2009 at 2:12 PM, Damian Minkov
wrote:
> felix cache and even it is removed from the autostart levels its
> loaded and used. Is this a known issue and is there a way to avoid
You may install your bundle with reference prefix e.g.
reference:file:/temp/foo.bar.jar
Next time start fel
On Fri, Dec 4, 2009 at 11:30 AM, Charles Moulliard wrote:
> Why such info is not provided to the console's user
That's what I want as well :)
> Surprisingly, using equinox as osgi platform on Apache Felix Karaf allow to
> bind the same Hibernate bundles without any issues !!
equinox implemen
On Fri, Dec 4, 2009 at 8:13 AM, Charles Moulliard wrote:
> I have tested with logging defined as DEBUG or TRACE but no particular info
> has been reported in the log.
>
> For me, that was working before.
I tried one of my fragment bundle and it works on 2.0.0 and 2.0.1.
If you provide log informa
On Wed, Dec 2, 2009 at 2:48 PM, Richard S. Hall wrote:
> Is RAT still incubating? If so, we will probably stay on the other release
> until then.
There is a stable release from apache:
http://repo1.maven.org/maven2/org/apache/rat/apache-rat-plugin/0.6/
We don't need to change unless it's been brok
On Tue, Dec 1, 2009 at 6:54 PM, Guo Du wrote:
> The 1.0-alpha-3 is latest version of rat-maven-plugin which resolved
> automatically. IN Nick's case, it was resolved to
> 1.0-alpha-4-SNAPSHOT.
We probably should always use fixed artifact version for
plugin/dependencies instead of
On Tue, Dec 1, 2009 at 5:23 PM, Nick Wilson wrote:
> [INFO] snapshot
> org.codehaus.mojo:rat-maven-plugin:1.0-alpha-4-SNAPSHOT: checkin
> g for updates from apache.snapshots
> from the specified remote repositories:
> apache.snapshots (http://repository.apache.org/snap
On Fri, Nov 27, 2009 at 1:55 AM, Ivan wrote:
> Let's say we have three bundles A, B, C.
> A depends on both B and C.
> B depends on C.
> The installation order is A, B, C. After installing them, their status
> should be :
> A : installed
> B : installed
> C: resolved
Wrong status for C, it
On Thu, Nov 26, 2009 at 2:04 PM, Ivan wrote:
> 2009/11/26 Guo Du
> So I suppose the word "start" here means that its status would be
> "resolved", not "active". Right ?
Yes. bundle.start() will end up with resolved for fragment bundle,
On Thu, Nov 26, 2009 at 1:28 PM, Ivan wrote:
> But what does "A resolved exporter must be preferred over an unresolved
> exporter." mean ? :-(
It means if both bound A(installed) and B(resolved) export package P
for same version V, framework will get the P from B and leave A in
installed status.
On Thu, Nov 26, 2009 at 12:31 PM, chihi asma wrote:
> In lunix, when I want to see system process, I type "ps", among thoses
> processes there is java ones, (I'm executing felix) so to which bundle belong
> those java process?
Some background reading:
http://java.sun.com/docs/books/tutorial/esse
On Thu, Nov 26, 2009 at 10:44 AM, chihi asma wrote:
> Can anyone tell me please how can I know how much a bundle executes threads
> when it starts?
> When I type "ps" command in my linux console I see multiple threads related
> to the JVM.
Where you typed "ps"?
It doesn't matter where you type
On Thu, Nov 26, 2009 at 2:49 AM, Ivan wrote:
> Hi,
> While trying the Felix as the OSGI runtime, I have some questions about
> the resolve policy, please help to give some comments, thanks !
> 1. Can an import connection be wired to an installed (not resolved)
No
Bundle status will be changes
On Thu, Nov 19, 2009 at 1:33 PM, Cobarzan Laura wrote:
> Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
> at com.javaworld.sample.helloworld.Activator.start(Activator.java:16)
You may try "headers" command to verify the the required packages are
installed correctly.
If it
On Wed, Nov 18, 2009 at 6:11 PM, Patrick Forhan wrote:
> that a bit. It may be Spring as it shuts down the JMS listeners,
Yes, spring try to release the JMS listeners:
org.ops4j.pax.logging.pax-logging-api[org.springframework.jms.listener.DefaultMe
ssageListenerContainer] : Shutting down JMS list
On Tue, Nov 17, 2009 at 11:39 AM, Phil Messenger wrote:
> DEBUG: Excluding fragment com.springsource.org.hibernate.annotations from
> com.springsource.org.hibernate due to conflict with imported package
> org.slf4j from com.springsource.org.hibernate
I saw this message as well when the fragment im
On Mon, Nov 9, 2009 at 9:21 PM, Johannes Ruscheinski wrote:
> I started it with "java -jar /usr/local/ForgotTheName/bin/felix.jar."
> Is that a problem? In other words, do I have to be in the parent
> directory of Felix' bin directory?
You may try:
java -Dfelix.auto.deploy.dir=/usr/local/ForgotThe
On Sun, Nov 1, 2009 at 2:36 PM, Ivan wrote:
> I have a case that, I need to install a bundle for a temp use, after
> that, I wish to stop and unload it. But not sure whether some wired
For temp used bundle, you may use Private-Package header to avoid
export to global wide. Then you are safe to u
On Tue, Oct 27, 2009 at 2:47 PM, Niko_K wrote:
>
>
> Richard S. Hall wrote:
>>
>> You have two options:
>>
>> 1. You can modify your other bundles to wait until a log service is
>> available before continuing, thus they won't try to use it before
>> it appears.
>> 2. You can inst
On Wed, Oct 21, 2009 at 10:19 AM, Serge Emmanuel Pagop
wrote:
> and the values can change during the runtime of the bundle (note: I do not
> want to put my config stuff in the $FELIX-HOME/conf/config.propeties of
> felix distribution). I will appreciate some links or examples or also tips
> that h
On Sun, Oct 11, 2009 at 10:54 AM, Ivanhoe Abrahams
wrote:
> org.osgi.framework.BundleException: Bundle symbolic name and version are not
> unique: org.apache.felix.framework:2.0.0
I am not familiar with pax, it looks like you have felix 1.x.x and
2.0.0 loaded at the same time. You may configure p
On Sat, Oct 10, 2009 at 4:12 PM, Ivanhoe Abrahams
wrote:
> Hi Everybody
>
> After about 2 months of not playing with OSGI, I finally have some time
> again.
> In the mean time I see Felix has moved on to version 2
>
> I use pax provision to run felix. But now I encounter a problem starting up
> th
Agreed, stable branch (at least last release) should be maintained
with bug fix. Force user to upgrade to trunk version is not a good
option for production practice.
Ubuntu LTS (Long Term Support) release is a good example as a
foundation software.
--Guo
On Wed, Oct 7, 2009 at 1:33 AM, Don Brown
On Sun, Oct 4, 2009 at 8:37 PM, Vlatko Davidovski wrote:
> Or, should I use ServiceTrackerCustomizer in such a case?
>
> Regards,
> Vlatko
You may also register a org.osgi.framework.ServiceListener from
aparat-registry to take action on ServiceEvent.REGISTERED for your
service interface.
-Guo
-
On Tue, Sep 29, 2009 at 3:43 PM, Richard S. Hall wrote:
> Note, this comment is just stating what is a normal part of fragment
> processing, which is you cannot attach fragments to a host if the fragment
> conflicts with the host in some way (e.g., fragment cannot import a
> different version of t
On Tue, Sep 29, 2009 at 2:53 PM, wrote:
>
> Cool! Thanks for the info. I've historically leaned toward Equinox because
> of fragments, but secretly wanted to be a Felix fanatic. Now maybe that
> dream can come true. :-)
>
>
>> Fully supported...sorry that we aren't completely clear here in our
>>
43 matches
Mail list logo