Webconsole vs. httplite, take 2

2016-11-21 Thread Benson Margulies
So, I fixed a little issue in httplite with dates, and now I'm seeing that the script console is all messed up because of a mismatch in urlencoding. I don't suppose that anyone has a clue as to why with httplite there is this urlencoding that presumably doesn't happen with the larger http

Is this a problem in webconsole or httplite?

2016-11-17 Thread Benson Margulies
I succeeded in combining webconsole with jetty by using 'httplite'. The only issue is that the script console fails as follows. Anyone have a sense of whether this is httplite failing to parse the date, or webconsole sending a bogus date? [ERROR] 2016-11-17 11:48:42.322 [5]

Why does Felix HTTP export jetty?

2016-11-17 Thread Benson Margulies
It seems to me that Felix HTTP should either depend on the usual Jetty osgi bundles, or leave Jetty private (or do the usual 'import your exports to allow overriding?). Instead, it exports jetty packages. I'm failing to combine plain jetty and felix http in the same deployment, due to an exception

Re: Remote shell?

2016-11-16 Thread Benson Margulies
:19 AM, Benson Margulies <bimargul...@gmail.com> wrote: > Caused by: java.lang.ClassNotFoundException: *** Class > 'org.apache.felix.service.command.CommandProcessor' was not found > because bundle org.apache.felix.shell.remote [210] does not import > 'org.apache.felix.service.co

Re: Remote shell?

2016-11-16 Thread Benson Margulies
, there's a dynamic import there. Maybe I just need to remove 'provisional' from it? On Thu, Nov 17, 2016 at 1:09 AM, Benson Margulies <bimargul...@gmail.com> wrote: > Any chance of a remote shell release that supports 1.0.0 of the rest of gogo? > > I could make some co

Remote shell?

2016-11-16 Thread Benson Margulies
Any chance of a remote shell release that supports 1.0.0 of the rest of gogo? I could make some commits, but it's not neighborhood I've been seen in. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional

Re: webconsole and felix http not getting along.

2016-11-16 Thread Benson Margulies
felix.webconsole.label = httpservice felix.webconsole.title = HTTP Service service.bundleid = 66 service.description = HTTP Service Web Console Plugin service.id = 81 service.scope = singleton service.vendor = Apache Software Foundation On Wed, Nov 16, 2016 at 8:10 AM, Benson Margulies

webconsole and felix http not getting along.

2016-11-16 Thread Benson Margulies
I've got the latest version of Felix HTTP and the web console loaded in 5.6.1 of the framework. The web console's tracker is never notified of the HTTP service. I note that the HTTP service first starts on 8080, then notices the config admin config, shuts down 8080, and starts where desired.

servlet API and Felix HTTP

2016-11-15 Thread Benson Margulies
rg.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.jetty [65](R 65.0): missing requirement [org.apache.felix.http.jetty [65](R 65.0)] osgi.contract; (&(osgi.contract=JavaServlet)(version=3.1)) Unresolved requirements: [[org.apache.felix.http.jetty [65](R 65.0)]

Shutdown oddities with Gogo 1.0.0

2016-11-14 Thread Benson Margulies
Here is felix 5.6.1 with gogo. Welcome to Apache Felix Gogo g! lb 11:12:55 START LEVEL 1 ID|State |Level|Name 0|Active |0|System Bundle (5.6.1)|5.6.1 1|Active |1|JLine (3.0.0)|3.0.0 2|Active |

webconsole and log service

2016-11-03 Thread Benson Margulies
I have the osgi-over-slf4j log service in place, but the web console tells me I have no log service. What is the web console looking for? - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands,

How does Gogo decide whether to grab the terminal and get to work?

2016-11-02 Thread Benson Margulies
I've got an application in which I want to start the shell (or not) depending on the value of a property. What's the intended mechanism for this? Should I explicitly start and stop the gogo shell bundle? - To unsubscribe, e-mail:

Setting a felix logger

2016-11-01 Thread Benson Margulies
To use my own org.apache.felix.framework.Logger, do I really need to abuse the Framework startup properties to put an instance of this class into the value of a Map? - To unsubscribe, e-mail:

Whatever you do, don't put configadmin in the classpath of Felix itself!

2016-10-27 Thread Benson Margulies
I just made an interesting discovery. If you have the Felix config admin jar in your classpath along with the 5.4.0 framework, SCR won't notice config admin events. To be more careful and precise: If you have a pax-exam test, and you provision CA and SCR into the container, but also have CA in

Re: Felix/CM/DS mystery

2016-10-19 Thread Benson Margulies
I said I'd be quiet unless I found an explanation -- and I did. Removing this, which was a leftover from a bigger bad idea, did the job. org.osgi osgi.cmpn test - To unsubscribe, e-mail:

Re: Looking for SCR debugging assistance, as usual

2016-10-18 Thread Benson Margulies
0.6 - BundleComponentActivator : Bundle [103] Enabling component holder com.basistech.ws.worker.bus.impl.BusService -- sorry silence -- 08:37:01.334 [FelixStartLevel] DEBUG org.apache.felix.scr.2.0.6 - Starting destruction process bundle: rosapi-worker-core/104 On Tue, Oct 18, 2016 at 12:58 PM, Benson Margulies &

Looking for SCR debugging assistance, as usual

2016-10-18 Thread Benson Margulies
I have a pile of components that aren't starting because they can't satisfy a reference to WorkerBusService, implemented by a class named BusService. At the bottom of this messages are all the SCR log messages that mention BusService -- not much talking about it, and then many things that desire

Re: Unhappy log message from felix DS/CM, what is is trying to tell me?

2016-10-09 Thread Benson Margulies
> aren’t available so it can’t register the ManagedService that also implements > MetatypeProvider, so it’s just registering a ManagedService that doesn’t > implement MetatypeProvider. Does info level seem appropriate? > > thanks > david jencks > >> On Oct 7, 201

Re: Does SCR have to start before the bundles with services?

2016-09-29 Thread Benson Margulies
uces messages at more than one logging level, and I didn't have my logging back end configured correctly. Working backwards, fixing the logging revealed the rest, and now all is well. thanks, benson > > thanks > david jencks > >> On Sep 28, 2016, at 8:50 AM, Benson Margulies <

Re: Does SCR have to start before the bundles with services?

2016-09-28 Thread Benson Margulies
On Wed, Sep 28, 2016 at 11:50 AM, Benson Margulies <ben...@basistech.com> wrote: > On Wed, Sep 28, 2016 at 11:43 AM, David Jencks > <david_jen...@yahoo.com.invalid> wrote: >> It should work in any order. The only other thing I can think of is this: in the application I'

Re: Does SCR have to start before the bundles with services?

2016-09-28 Thread Benson Margulies
edService; not providing Metatype information but just accepting configuration > > david jencks > >> On Sep 28, 2016, at 8:28 AM, Benson Margulies <ben...@basistech.com> wrote: >> >> I'm trying to retrofit SCR/DS into a very dumb application that loads >> s

Does SCR have to start before the bundles with services?

2016-09-28 Thread Benson Margulies
I'm trying to retrofit SCR/DS into a very dumb application that loads some bundles and starts the framework. Everything is at the same start level, and no @Components are ever activated. I have logging working; I see 191 [FelixStartLevel] INFO org.apache.felix.scr.2.0.6 - Starting with

Re: Felix container and Java SecurityManager -- does the container always implement security

2016-09-21 Thread Benson Margulies
s triggered by > felix despite a security manage being around the answer is: no - thats not > possible. > > regards, > > Karl > > On Wed, Sep 21, 2016 at 10:48 PM, Benson Margulies <ben...@basistech.com> > wrote: > >> I'd like to run a Felix container as if it was jus

Felix container and Java SecurityManager -- does the container always implement security

2016-09-21 Thread Benson Margulies
I'd like to run a Felix container as if it was just some ordinary piece of an application inside of a security manager; I don't want any security manager checks or behaviors from the container. Can I do this, or does the container always interact with the SecurityManager if there is one?

Re: Using a service tracker on ConfigurationAdmin from outside the framework

2016-09-18 Thread Benson Margulies
ng them as URIs. So, eventually, I'll move this code away from whatever risk it now has. > > Neil > > >> On 18 Sep 2016, at 20:44, Benson Margulies <ben...@basistech.com> wrote: >> >> As usual, the answer occurred to me moments after I pressed 'send'. I >> ne

Re: Using a service tracker on ConfigurationAdmin from outside the framework

2016-09-18 Thread Benson Margulies
), where you will remain. > > Config Admin will likely publish itself synchronously in step 4, and you will > get a callback on the tracker. Or it might publish the service asynchronously > later, which is also okay. > > Neil > >> On 18 Sep 2016, at 19:53, Benson Margulies &

Using a service tracker on ConfigurationAdmin from outside the framework

2016-09-18 Thread Benson Margulies
My current task is to set up a Felix framework behind an API. To get actual work done, there are some interfaces in packages on the system bundle that are published by bundles of mine, and then the code 'outside' the framework obtains them. For the main service I created, this all works find with

Re: JNI, classloaders, framework shutdown

2016-09-17 Thread Benson Margulies
de support? To do that, I'd need to make about the same set of arrangements. The code has to remain deliverable as a non-OSGi SDK. One way or the other, I'd have to change the plumbing that calls System.load. > > david jencks > >> On Sep 17, 2016, at 4:16 PM, Benson Margu

Re: Prop expansion via fileinstall but not configuration admin

2016-09-17 Thread Benson Margulies
On Sat, Sep 17, 2016 at 1:27 PM, David Jencks <david_jen...@yahoo.com.invalid> wrote: > >> On Sep 17, 2016, at 10:16 AM, Benson Margulies <ben...@basistech.com> wrote: >> >> David, the only case I was concerned with is when there is a >> pre-existing file

Re: Prop expansion via fileinstall but not configuration admin

2016-09-17 Thread Benson Margulies
p.s. It's always possible that I'm _wrong_, and CA is logging, but I didn't have the log service set up soon enough. That's another reason for me to be the one to spend time trying to make a test case. On Sat, Sep 17, 2016 at 1:16 PM, Benson Margulies <ben...@basistech.com> wrote: &

Re: Prop expansion via fileinstall but not configuration admin

2016-09-17 Thread Benson Margulies
onary dict = ConfigurationHandler.read(new ByteArrayInputStream(CONFIG.getBytes("UTF-8"))); assertEquals(1, dict.size()); assertEquals("${bt.root}", dict.get("rootPath")); } } On Sat, Sep 17, 2016 at 12:49 PM, Benson Margulies <ben...@basistech.com> wrote: &g

Re: Prop expansion via fileinstall but not configuration admin

2016-09-17 Thread Benson Margulies
On Sat, Sep 17, 2016 at 12:45 PM, David Jencks <david_jen...@yahoo.com.invalid> wrote: > >> On Sep 17, 2016, at 9:40 AM, Benson Margulies <ben...@basistech.com> wrote: >> >> On Sat, Sep 17, 2016 at 3:21 AM, Carsten Ziegeler <cziege...@apache.org >> &l

Re: Prop expansion via fileinstall but not configuration admin

2016-09-17 Thread Benson Margulies
the CA part is in trunk, the DS part is in > the sandbox branch, but I plan to move it to trunk soon. > > Carsten > >> Alternatively you can code it into whatever management agent you are using >> instead of fileinstall. >> >> Maybe others have other opinions…. >> &

Prop expansion via fileinstall but not configuration admin

2016-09-16 Thread Benson Margulies
The system property expansion feature of the configuration-admin behavior of fileinstall is quite convenient. I could code it, optionally, into confadmin. I wish I could have it without all the other mechanism of fileinstall that I don't need. Acceptable?

CM and DS logging interpretation

2016-09-16 Thread Benson Margulies
I need some help interpreting the logging from DS and CM, if someone could be kind enough to have a look at the material below. I have an @Component named WorkerBusService which is never activated. I see no SCR messages related to it in the log except for other components trying to depend on it.

config admin and non-default file systems

2016-09-16 Thread Benson Margulies
I've got a use case in which I'd like to run the framework in a Hadoop cluster, and the users would want to store their cfg files on hdfs. Making config admin support this would not be terribly complex -- if the minimum java version were 7. What is the current version base? Another possible

Re: Failing to get felix scr logging

2016-09-16 Thread Benson Margulies
No, I don't have an OSGi config for SCR. I'm continuing to investigate. On Thu, Sep 15, 2016 at 9:53 PM, Carsten Ziegeler wrote: >> In a pax-exam test, I've got: >> >> CoreOptions.frameworkProperty("ds.loglevel").value("debug"), >> >> >> I get no messages. Other log

Re: Semantics of Require-Capability of a service derived from DS @Reference

2016-08-31 Thread Benson Margulies
On Wed, Aug 31, 2016 at 7:44 AM, Neil Bartlett <njbartl...@gmail.com> wrote: > It looks like you have solved this problem over in the bndtools-users list, > but I want to point out one small misapprehension: Yes, thanks, and thanks for the clarification. > >> On 31 Aug 2

Semantics of Require-Capability of a service derived from DS @Reference

2016-08-31 Thread Benson Margulies
The maven-bundle-plugin, in some cases, with _dsannotations enabled, produces Require-Capability instructions like the following: Require-Capability: osgi.service;filter:="(objectClass=com.basistech.ros ette.osgi.Bus)";effective:=active,osgi.ee;filter:="(&(osgi.ee=JavaSE)(v ersion=1.8))" I

Re: scr claims to be unsatisfied for service that seems to be there

2016-08-12 Thread Benson Margulies
dtools. > The service tracker open method will trigger the component's delayed > activation I didn't realize that the service tracker could interact with DS. Thanks. > > Karel > > > On 12/08/2016 13:30, Benson Margulies wrote: >> >> Thank you all. Indeed, the comp

Re: scr claims to be unsatisfied for service that seems to be there

2016-08-12 Thread Benson Margulies
Thank you all. Indeed, the component was not 'immediate', and that's why it wasn't set up. My task of the moment it to add pax-exam tests for some individual components; in the past, I only tested this stuff with broad functional tests. This has led me, on this particular occasion, end up trying

scr claims to be unsatisfied for service that seems to be there

2016-08-12 Thread Benson Margulies
I have a component, which scr:info reports that is has three unbound references. scr:info on the components that provide those services seem to show that they are there. And if I set breakpoints on their activate methods (they are @Components), they've been called, and did not throw. I've put an

Re: Solved felix SCR Logging, but replaced that with a problem with optional dependency resolution in the framework

2016-08-11 Thread Benson Margulies
some other things, including that exception, sorted. On Thu, Aug 11, 2016 at 6:31 PM, Benson Margulies <ben...@basistech.com> wrote: > On Thu, Aug 11, 2016 at 5:07 PM, David Jencks > <david_jen...@yahoo.com.invalid> wrote: >> I don’t understand your explanation. What is cau

Re: Solved felix SCR Logging, but replaced that with a problem with optional dependency resolution in the framework

2016-08-11 Thread Benson Margulies
tely, I'd have to fork: https://github.com/qos-ch/slf4j/blob/master/osgi-over-slf4j/src/main/java/org/slf4j/osgi/logservice/impl/Activator.java But I just figured out how to get the equinox log where I can see it, maybe. > > david jencks > >> On Aug 11, 2016, at 1:36 PM, Benson Margul

Solved felix SCR Logging, but replaced that with a problem with optional dependency resolution in the framework

2016-08-11 Thread Benson Margulies
Quite some time ago, we had a requirement to have read-only provisioned OSGi caches. So I had set up our standard configuration to use Equinox rather than Felix. Equinox sets up a LogService of its own, which in turn requires a 'LogReader' to get the log messages to show up anywhere. Adding

DS logging, still

2016-08-11 Thread Benson Margulies
I think I'm still missing something simple about DS logging. I have added org.slf4j:osgi-over-slf4j to my container to provide a LogService. In pax-exam, I did: frameworkProperty("ds.loglevel").value("debug"), SLF4J messages from my code show up. Nothing shows up from Felix SCR. Any ideas?

Re: Bundles needed to use DS/SCR

2016-08-11 Thread Benson Margulies
pax-exam-cm just sets up the config. As far as I know it does not install > config admin so you will still need the bundle. > > Christian > > 2016-08-11 1:42 GMT+02:00 Benson Margulies <ben...@basistech.com>: > >> For one of my tests, pax-exam-cm looks gr

Re: Registering a ConfigurationListener

2016-08-10 Thread Benson Margulies
il a ConfigurationListener was called back. When I registered it on the bundle at hand, it was never called. I probably registered it wrong. I've found a simpler approach. > > thanks > david jencks > >> On Aug 10, 2016, at 2:02 PM, Benson Margulies <ben...@basistech.co

Re: Bundles needed to use DS/SCR

2016-08-10 Thread Benson Margulies
For one of my tests, pax-exam-cm looks great. Do I include felix config admin with it or not? For another, I need each test method to have different configuration, so I'd have to make multiple test classes, no? - To unsubscribe,

Re: Bundles needed to use DS/SCR

2016-08-10 Thread Benson Margulies
what it is, but > restricts the configuration to that one bundle. > “?” lets all bundles see the configuration. > > david jencks > >> On Aug 10, 2016, at 8:29 AM, Benson Margulies <ben...@basistech.com> wrote: >> >> Configuration-wise, I have the fo

Re: Bundles needed to use DS/SCR

2016-08-10 Thread Benson Margulies
I see a much dumber mistake here. Sorry for the noise. The test is not pushing the config to the right PID at all. On Wed, Aug 10, 2016 at 11:43 AM, Benson Margulies <ben...@basistech.com> wrote: > On Wed, Aug 10, 2016 at 11:35 AM, David Jencks > <david_jen...@yahoo.com

Re: Bundles needed to use DS/SCR

2016-08-10 Thread Benson Margulies
figuration Policy: require > >> (No Component Configurations) > > You need a configuration or change the configuration policy. > > Is your minimal container so minimal that it doesn’t include a log service or > something to collect messages from it? > > david jencks > >&g

Re: Bundles needed to use DS/SCR

2016-08-10 Thread Benson Margulies
: (No Component Configurations) On Wed, Aug 10, 2016 at 10:32 AM, Benson Margulies <ben...@basistech.com> wrote: > For unit testing purposes, I'm setting up a minimal container that has DS/SCR > . > > I included: > > org.apache.felix > org.apache.felix.scr > 2.0.6 >

Bundles needed to use DS/SCR

2016-08-10 Thread Benson Margulies
For unit testing purposes, I'm setting up a minimal container that has DS/SCR . I included: org.apache.felix org.apache.felix.scr 2.0.6 I set the framework ds.loglevel property to debug, and I see no sign of life. I'm using standard OSGi DS annotations. Can anyone tell me what I'm missing?

Re: Cannot use configuration pid ... for bundle XX because it belongs to bundle YY

2016-08-10 Thread Benson Margulies
In my experience, it means that you have annotated two different classes with @Component and specified the same configurationPid. You can't do that; if you need to share a configuration between DS components, you have to inject the ConfigurationAdmin service instead of using the @Component

Re: Loading bundles from inside jars, and read-only filesystems

2016-08-08 Thread Benson Margulies
On Mon, Aug 8, 2016 at 2:40 PM, <list+org.apache.fe...@io7m.com> wrote: > On 2016-08-08T14:31:07 -0400 > Benson Margulies <ben...@basistech.com> wrote: > > > > I believe that all OSGi containers can load bundles from InputStreams, > > which is all you wou

Re: Loading bundles from inside jars, and read-only filesystems

2016-08-08 Thread Benson Margulies
On Mon, Aug 8, 2016 at 2:19 PM, <list+org.apache.fe...@io7m.com> wrote: > On 2016-08-08T14:10:38 -0400 > Benson Margulies <ben...@basistech.com> wrote: > > On Mon, Aug 8, 2016 at 2:08 PM, <list+org.apache.fe...@io7m.com> wrote: > > > > > > > >

Re: Loading bundles from inside jars, and read-only filesystems

2016-08-08 Thread Benson Margulies
On Mon, Aug 8, 2016 at 2:08 PM, wrote: > Hello. > > Two quick questions: > > 1. Is Felix able to load bundles from inside a jar? Specifically: I > would like to be able to embed Felix into a single-jar application > by putting my Main class and Felix classes into

ObjectInputStreams, class loaders, OSGi

2016-08-07 Thread Benson Margulies
I've OSGi'ed a body of code that reads a model from an ObjectInputStream. I didn't adjust the TCCL, and I didn't make a custom object input stream that respects the TCCL, as per http://tech-tauk.blogspot.com/2010/05/thread-context-classlaoder-in.html. Yet, it works. Except, strangely, when it

Re: Silently failing declarative services?

2016-08-01 Thread Benson Margulies
Is your @Component set up with immediate=true? On Mon, Aug 1, 2016 at 1:08 PM, wrote: > On 2016-08-01T18:26:33 +0200 > Simon Chemouil wrote: > > > list+org.apache.fe...@io7m.com a écrit le 01/08/2016 18:16 : > > > I don't see a compiled

Does a filter with an OR express a preference in Felix DS?

2016-03-29 Thread Benson Margulies
If I write a filter expression that says A or B, is the order significant? Ever since the OSGi wiki was replaced with the enroute site, it's significantly harder to research this sort of thing. - To unsubscribe, e-mail:

Re: Backtrace for intentionally circular dependency

2016-02-24 Thread Benson Margulies
The curious thing is that my case works, noisily, unlike yours. On Wed, Feb 24, 2016 at 3:00 PM, Victor Antonovich wrote: > BTW, we have similar rather long-standing issue: > https://issues.apache.org/jira/browse/FELIX-4417 >

Re: Backtrace for intentionally circular dependency

2016-02-24 Thread Benson Margulies
e better to log > this situation on the INFO level rather than error since the system > recovers from it anyway being optional/dynamic... > > My 2c, > > David > > On 24 February 2016 at 15:40, Benson Margulies <ben...@basistech.com> > wrote: > > > I h

Backtrace for intentionally circular dependency

2016-02-24 Thread Benson Margulies
I have two components that have a pseudo-circular dependency. Component 'WorkerInterface' has a reference like: @Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY) public void

bundle plugin comes up with an export of version=""

2015-12-09 Thread Benson Margulies
Has anyone else ever seen the bundle plugin come up with something like: Export-Package: com.basistech.rosette.apimodel;version="";uses:="com.bas istech.util" The POM instruction is just com.basistech.rosette.apimodel The result is a bnd error, not too surprisingly. Here's what -X has to

When two bundles compete to export a package ...

2015-12-07 Thread Benson Margulies
I am trying to use @Inject in a pax-exam test. pax-exam uses org.apache.geronimo.specs geronimo-atinject_1.0_spec ${dependency.atinject.version} Karaf 4 uses the alternative from servicemix. When I use the karaf container to test, I end up with both. And, as luck would have it,

Re: Using bnd macros in the maven-bundle-plugin

2015-12-01 Thread Benson Margulies
And 2 minutes of further exploration while writing the JIRA revealed $${...}. Sorry for the noise, I'll improve the documentation. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail:

Re: Using bnd macros in the maven-bundle-plugin

2015-12-01 Thread Benson Margulies
I'm reasonably convinced that this is fact a bug. I'll file a JIRA and fix it. On Tue, Dec 1, 2015 at 7:43 AM, Benson Margulies <ben...@basistech.com> wrote: > Before I file a JIRA and think I'm debugging a problem: > > <_consumer-policy>\${range;[===,+)} > > results

Using bnd macros in the maven-bundle-plugin

2015-12-01 Thread Benson Margulies
Before I file a JIRA and think I'm debugging a problem: <_consumer-policy>\${range;[===,+)} results in -consumer-policy=\\${range;[\=\=\=,+)} in the bnd file written out by the plugin, and a literally ${range[===,+]} in the produced manifest. <_consumer-policy>${range;[===,+)} results

DS and .. Fragments (not)?

2015-11-18 Thread Benson Margulies
Thanks to all of you who educated me yesterday about DS annotation inheritance in bnd. I implemented it and it works very well. However, I have an incremental challenge. What I have here is a gaggle of web services. Most of the logic is common across them and lives in a base class, which now has

Re: DS and .. Fragments (not)?

2015-11-18 Thread Benson Margulies
ragments, or is that inevitably ugly? > > Neil > > On Wed, Nov 18, 2015 at 12:23 PM, Benson Margulies <ben...@basistech.com> > wrote: > >> Thanks to all of you who educated me yesterday about DS annotation >> inheritance in bnd. I implemented it and it works very w

Re: DS and .. Fragments (not)?

2015-11-18 Thread Benson Margulies
On Wed, Nov 18, 2015 at 8:14 AM, Neil Bartlett <njbartl...@gmail.com> wrote: > >> On 18 Nov 2015, at 12:46, Benson Margulies <ben...@basistech.com> wrote: >> >> On Wed, Nov 18, 2015 at 7:38 AM, Neil Bartlett <njbartl...@gmail.com >> <mailt

DRY for DS?

2015-11-17 Thread Benson Margulies
I'm feeling a bit sad; I have a family of 12 very similar services, but I can't put the @Reference, @Activate, and @Deactivate into the base class, I have to copy and paste it into each component class. Have I missed an alternative?

Re: DRY for DS?

2015-11-17 Thread Benson Margulies
he classes with annotations are in > the same bundle. > > david jencks > >> On Nov 17, 2015, at 1:00 PM, Benson Margulies <ben...@basistech.com> wrote: >> >> I'm feeling a bit sad; I have a family of 12 very similar services, >> but I can't put the @Reference, @Activ

Re: DRY for DS?

2015-11-17 Thread Benson Margulies
On Tue, Nov 17, 2015 at 2:43 PM, Robert Munteanu <romb...@apache.org> wrote: > Hi Benson, > > On Tue, Nov 17, 2015 at 8:00 PM, Benson Margulies <ben...@basistech.com> > wrote: >> I'm feeling a bit sad; I have a family of 12 very similar services, >> but I

Re: DRY for DS?

2015-11-17 Thread Benson Margulies
was trying to make. > > thanks > david jencks > >> On Nov 17, 2015, at 2:47 PM, Benson Margulies <ben...@basistech.com> wrote: >> >> On Tue, Nov 17, 2015 at 2:43 PM, Robert Munteanu <romb...@apache.org> wrote: >>> Hi Benson, >>> >>&

[ANN] Felix Maven Bundle Plugin version 3.0.1 Released

2015-11-14 Thread Benson Margulies
The Felix team is pleased to announce the release of Felix Maven Bundle Plugin version 3.0.1 The Maven Bundle Plugin provides Maven integration for the bnd tool that adds OSGi metadata to jar files. http://felix.apache.org/components/bundle-plugin This release is available from

https://issues.apache.org/jira/browse/FELIX-5073

2015-10-14 Thread Benson Margulies
Could I please get some feedback on this pull request? If a plain patch file was preferable I'll make one. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org

Re: Split-package warnings from embedded jars

2015-10-08 Thread Benson Margulies
On Fri, Oct 2, 2015 at 5:43 PM, Neil Bartlett <njbartl...@gmail.com> wrote: > >> On 2 Oct 2015, at 22:30, Benson Margulies <ben...@basistech.com> wrote: >> >> On Fri, Oct 2, 2015 at 4:21 PM, Neil Bartlett <njbartl...@gmail.com >> <mailto:njbartl...@gma

Debugging disappearing imports in the maven-bundle-plugin

2015-10-07 Thread Benson Margulies
We have a new project where the manifest is generated, by 3.0.0, with a handful of missing dependencies. These are ordinary maven dependencies, and when we run we get wiring errors. We can work around them with explicit Import-Package instructions. Is there any diagnostic approach to this?

Split-package warnings from embedded jars

2015-10-02 Thread Benson Margulies
With maven-bundle-plugin 3.0.0, we are getting split-package complaints about packages that are (merely) split between two jar files both being embedded into the final result. This surprises me. If it sounds wrong to the experts, can you suggest whether to point the bug report to bndtools or

Re: Split-package warnings from embedded jars

2015-10-02 Thread Benson Margulies
case. > > Neil > >> On 2 Oct 2015, at 16:56, Benson Margulies <ben...@basistech.com> wrote: >> >> With maven-bundle-plugin 3.0.0, we are getting split-package >> complaints about packages that are (merely) split between two jar >> files both being embedded into t

scr:details reports greedy as static with karaf 4.0.1

2015-10-01 Thread Benson Margulies
Code: @Reference(cardinality = ReferenceCardinality.MULTIPLE, policyOption = ReferencePolicyOption.GREEDY) public void setWorkerComponentService(WorkerComponentService workerComponentService) { this.allComponents.put(workerComponentService.getComponentService().componentType().getType(),

Surprise with Embed-Dependency with 3.0.0

2015-09-25 Thread Benson Margulies
THis works: *;groupId=com.basistech.rbl|com.ibm.icu;scope=compile This does not include ICU: *;groupId=com.basistech.rbl;scope=compile,icu4j Why? Is this intended? It's not what I expected from the doc. - To unsubscribe,

Next bundle plugin release

2015-09-18 Thread Benson Margulies
Given the 'repeated execution' problems with the current released version, could we please have a new one? - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org

Re: Dependency Manager does not behave as expected

2015-09-17 Thread Benson Margulies
On Thu, Sep 17, 2015 at 6:29 AM, Hubert Felber wrote: > Hi Pierre, > > Thank you for all your efforts! > > unfortunately I could not check it out using svn. > I get a "Redirect cycle detected for URL >

Re: Need help debugging Felix OSGi bundles (with Eclipse)

2015-09-12 Thread Benson Margulies
What goes wrong when you add: -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 to the java command line and then attach from Eclipse? On Sat, Sep 12, 2015 at 3:31 PM, Pedro Domingues wrote: > Hi, > > I really need to debug my code by the use of

Re: How to 'let the dust settle' with DS?

2015-09-08 Thread Benson Margulies
The whole thing works with 1.8.2; I look forward to some cleanup with 2.0, and I thank you all again for all the help. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail:

Re: How to 'let the dust settle' with DS?

2015-09-08 Thread Benson Margulies
specific cause to it. OK, I've got it; that's exactly the situation at hand (static greedy). That works for me for now until I can use the newer version. > > thanks > david jencks > >> On Sep 8, 2015, at 1:23 PM, Benson Margulies <ben...@basistech.com> wrote: >> >&g

Re: How to 'let the dust settle' with DS?

2015-09-08 Thread Benson Margulies
JB says he'll have Karaf up to date next week. In the mean time, I've onto the second chunk of blueprint that I wanted to fix. This time, all in one bundle, I have one multiple @Reference, and a bundle of services that want to feed into it. I observe that an object is created, activate is

How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
I am hoping that David Jencks will continue his charity to strangers here. David, if you have any gogo jiras you'd like help with in return, just ask. Three bundles: B1 registers service S1. B2 consumes S1 and uses it in the implementation of S2. That is to say, it picks up a reference to S1

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
a bundle starting will start all the DS services > it provides. They might have all sorts of unsatisfied dependencies….. such > as missing configurations. > > Let me know if this guess is a total miss :-) > > thanks > david jencks > > > > > On Sep 7, 2015, at 10:52 AM

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
ately action any changes in the service set. However if >> there is a current coordination, then those changes should only be actioned >> when the coordination ends. This has the advantage that you don’t waste time >> waiting for an arbitrary-length timer to expire. >> >&g

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
re, but it doesn't work yet. What a surprise. More spelunking to do. > > thanks > david jencks > >> On Sep 7, 2015, at 12:46 PM, Benson Margulies <ben...@basistech.com> wrote: >> >> On Mon, Sep 7, 2015 at 12:45 PM, David Jencks >> <david_jen...@yahoo.co

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
Service Reference : No Services bound Reference : Bus State : satisfied Multiple : single Optional : mandatory Policy: static Service Reference : No Services bound On Mon, Sep 7, 2015 at 1:17 PM, Benson Margulies <ben..

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
in with, I'm going to have a static collection of services present in the Karaf container via the Karaf assembly mechanism. I just need to start up in an orderly way with them. I may never need or want to add or subtract on the fly. > > > >> On 7 Sep 2015, at 16:16, Benson Margulies <

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
Apparently, I can't read, either. Please ignore the last question I stuck on the end, which you had just answered. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail:

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
This is easy to explain. The version of felix scr in karaf is too old. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
The cardinality in the config admin does not seem to be sticking: @Component(configurationPolicy = ConfigurationPolicy.REQUIRE, configurationPid = "com.basistech.ws.worker") And: @Reference(cardinality = ReferenceCardinality.MULTIPLE, policyOption = ReferencePolicyOption.GREEDY) public void

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
erComponentService.target=“(|(type=foo1)(type=foo2)(type=foo3)(type=foo4)(type=foo5))” Do I really have to enumerate the types if I happen to have provisioned only the ones I want. > > Wiring up DS services is really powerful. I haven’t figured out the exact > computational strength avai

  1   2   >