Re: [bundlerepository] RepositoryAdmin.discoverResources is returning wrong uri

2017-04-08 Thread Cristiano Gavião
request. It would be great if any commiter would take a look. regards, Cristiano On 07/04/2017 15:59, Cristiano Gavião wrote: But when I try to deploy any bundle using RepositoryAdmin or obr:deploy command, I'm getting: java.net.MalformedURLException: no protocol: plugins/ch.qos.lo

[bundlerepository] RepositoryAdmin.discoverResources is returning wrong uri

2017-04-07 Thread Cristiano Gavião
Hello all, I'm facing a problem and would like some advice. I've created some index.xml (R5) files using a tool that was based on old bindex tool. since those files will be hosted in a server the url attribute of bundles and other resources are using relative path (what I think is the right

Re: GoGo 1.x doesn't work with equinox

2017-03-10 Thread Cristiano Gavião
with no explanation because the design is not yet finalized. I hope this helps explain things. :) - Ray On Sat, Mar 4, 2017 at 1:58 PM, Cristiano Gavião <cvgav...@gmail.com> wrote: Hello, Eclipse Equinox have been using GoGo since version 3.8 (I think it is Juno) and since that they do not upgrad

GoGo 1.x doesn't work with equinox

2017-03-04 Thread Cristiano Gavião
Hello, Eclipse Equinox have been using GoGo since version 3.8 (I think it is Juno) and since that they do not upgrade gogo version (0.8.0). But even Eclipse team do not upgrading gogo's version, to use newer versions was just a simple matter to deploy the new bundles into the container and

Re: [maven-bundle-plugin] No Import-Package for Export-Package generated

2016-07-08 Thread Cristiano Gavião
about the non-existent Private-Package in the final manifest, I can see in your latest email that there are a explicity removeheaders tag: -removeheaders=Include-Resource,Private-Package And about the not importing all the exported packages I can't see the reason... perhaps you would like

Re: [maven-bundle-plugin] No Import-Package for Export-Package generated

2016-07-07 Thread Cristiano Gavião
Hi, It always help me to find generation problems looking the plugin declaration using the *effective POM*. If you use Eclipse IDE, you can use the one provided by m2e's POM editor. It is useful because it will show you a merge of the local plugin configuration plus values coming from the

anyway to filter the gogo help command?

2016-06-30 Thread Cristiano Gavião
Hello, every time I use the help command, the console shows me a lot of info and I spend a good time in order to find the one that I want. is there any way to filter the help ? thanks, Cristiano - To unsubscribe, e-mail:

Re: doubt about component DS 1.3 with scope Prototype and ConfigurationPolicy.REQUIRE

2016-06-28 Thread Cristiano Gavião
different instances. Prototype scope means if you use the ServiceObjects interface you can get as many instances as you want. There’s also stuff you can now do with multiple pids but maybe the above is enough for now…. hope this helps david jencks On Jun 27, 2016, at 3:32 PM, Cristiano Gavião

Re: doubt about component DS 1.3 with scope Prototype and ConfigurationPolicy.REQUIRE

2016-06-27 Thread Cristiano Gavião
Sorry, my mistake... only now I understood what you have said about enable=true be the default value... :-[ On 27/06/2016 19:16, Cristiano Gavião wrote: On 27/06/2016 18:48, David Jencks wrote: You’ve specified prototype scope, so there is never going to be “ONE” canonical instance. You

Re: doubt about component DS 1.3 with scope Prototype and ConfigurationPolicy.REQUIRE

2016-06-27 Thread Cristiano Gavião
hummm... think I got the idea now... I will create another component to consume the registered service and see if the activate method is being called... thanks again, Cristiano On 27/06/2016 19:08, Neil Bartlett wrote: On 27 Jun 2016, at 23:05, Cristiano Gavião <cvgav...@gmail.com>

Re: doubt about component DS 1.3 with scope Prototype and ConfigurationPolicy.REQUIRE

2016-06-27 Thread Cristiano Gavião
specify enabled=true since that is the default value. then you let your components as enabled=false and then will use a master component to enable the others ? david jencks On Jun 27, 2016, at 2:42 PM, Cristiano Gavião <cvgav...@gmail.com> wrote: Hello, I'm facing a situation th

Re: doubt about component DS 1.3 with scope Prototype and ConfigurationPolicy.REQUIRE

2016-06-27 Thread Cristiano Gavião
FixedControllerService. No instances will be created until a consumer binds to it. Neil On 27 Jun 2016, at 22:42, Cristiano Gavião <cvgav...@gmail.com> wrote: Hello, I'm facing a situation that I'm not understanding. I'm using org.apache.felix.scr 2.0.2. I've set a component with this anno

doubt about component DS 1.3 with scope Prototype and ConfigurationPolicy.REQUIRE

2016-06-27 Thread Cristiano Gavião
Hello, I'm facing a situation that I'm not understanding. I'm using org.apache.felix.scr 2.0.2. I've set a component with this annotation: @Component(enabled = true, configurationPolicy = ConfigurationPolicy.REQUIRE, scope = ServiceScope.PROTOTYPE, service =

Re: [maven-bundle-plugin] v.3.0.x regression for DS xml generation ?

2016-06-25 Thread Cristiano Gavião
xml was created when setting it to true. So, what you need to do is to set *unpackBundle* parameter to true. This will make the plugin to traverse the in memory jar created by bndLib and save its contents to disk. On 25/06/2016 11:43, Cristiano Gavião wrote: Hello again, I've passed a long t

Re: [maven-bundle-plugin] v.3.0.x regression for DS xml generation ?

2016-06-25 Thread Cristiano Gavião
and that maven-bundle-plugin still uses this old version. I was able to fix this by switching to the bnd-maven-plugin. So I think the maven-bundle-plugin should be updated to this newest bnd version. Maybe you are facing a similar problem. Christian On 01.06.2016 22:25, Cristiano Gavião wrote: Hi

Re: [maven-bundle-plugin] v.3.0.x regression for DS xml generation ?

2016-06-25 Thread Cristiano Gavião
noted that bndlib 3.2.0 requires osgi.core 6.0.0, but the m-b-plugin is tied to version 4.3.1. I only was able to debug after set the proper osgi bundles in the classpath. could some m-b-p committer give me a feedback, please? thanks On 01/06/2016 17:25, Cristiano Gavião wrote: Hi, I used to use

[maven-bundle-plugin] v.3.0.x regression for DS xml generation ?

2016-06-01 Thread Cristiano Gavião
Hi, I used to use m-b-p version 2.5.4 and the generation of the DS component xmls was working fine. But after I moved to version 3.0.1 (also tried with 3.0.0) the xml generation simply stops to work. also inside eclipse (with m2e). There are any error message in the building maven console

Re: maven-bundle-plugin with class based filtering ?

2015-09-09 Thread Cristiano Gavião
uld be irresponsible to provide the information > without first asking: why do you want to do this? > > Regards, > Neil > > > > On 9 Sep 2015, at 20:34, Cristiano Gavião <cvgav...@gmail.com> wrote: > > > > Hi, > > I've been using the private-package instruction in

maven-bundle-plugin with class based filtering ?

2015-09-09 Thread Cristiano Gavião
Hi, I've been using the private-package instruction in order to embed/ inline some packages with in some bundles that I'm working with. But now I would like to filter a package and inline only some of its classes. Is there any way to perform a class based filtering ? thanks, Cristiano

Something really wrong with felix github trunk branch

2015-08-26 Thread Cristiano Gavião
Hello guys, I did right now a pull from github's apache git repository and got a lot of conflicts. When I was look into them I got scared. :) The version of the *bundlerepository* there is now 1.6.7-SNAPSHOT from 4 years ago !! *https://github.com/apache/felix/tree/trunk/bundlerepository

[Bundle-Repository] Problem identifying a R5 index file inside a repository zip

2015-05-27 Thread Cristiano Gavião
Hello, I'm facing a problem that Bundle-Repository isn't identifying repository zips that I'm generating with my maven plugin... Investigating it a bit, I found were the problem is. The method DataModelHelperImpl.repository() has the following: if (url.getPath().endsWith(.zip)) {

SCR 2.0.0-SNAPSHOT ?

2015-02-20 Thread Cristiano Gavião
Hello, Some month ago I was playing with new SCR bundle that are implementing RFC 190. I built it locally here. In that time the version was 2.0.0-SNAPSHOT, but today I saw that it was returned to 1.8.3-SNAPSHOT again. Could someone explain me what was the problem about the 2.0.0 version ?

[maven-scr-plugin] support of properties paramenter on @Component ?

2015-01-09 Thread Cristiano Gavião
Hi, I woukd like to know whether maven-scr-plugin currently supports the *properties* property of org eclipse-javadoc:%E2%98%82=org.lunifera.runtime.kernel.installer/%5C/home%5C/cvgaviao%5C/.m2%5C/repository%5C/org%5C/osgi%5C/org.osgi.compendium%5C/5.0.0%5C/org.osgi.compendium-5.0.0.jar%3Corg

Re: maven-bundle-plugin with Include-Resource default behaviour and Bundle.getEntry ?

2014-12-11 Thread Cristiano Gavião
an ant task in order to copy the OSGI-INF directory and xmls being generated by maven-scr-plugin to the project's root. I've contacted the m2e guys. thanks 2014-12-10 13:40 GMT-03:00 Cristiano Gavião cvgav...@gmail.com: Hello all, I have a bundle with myresource.xml resource file inside

maven-bundle-plugin with Include-Resource default behaviour and Bundle.getEntry ?

2014-12-10 Thread Cristiano Gavião
Hello all, I have a bundle with myresource.xml resource file inside the src/main/resources/configuration directory. When trying to get this resource using bundle.getEntry(/configuration/myresource.xml) I'm getting a null value (running an eclipse OSGi debug). Then I tried to search for this

Re: Felix GoGo - what the best way to create interactive commands?

2014-12-09 Thread Cristiano Gavião
Hi Jan, I will take a look. thank you. 2014-11-29 13:24 GMT-03:00 Jan Willem Janssen janwillem.jans...@luminis.eu : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 29/11/14 15:36, Cristiano Gavião wrote: I need to create a command that could follow different workflows depending

Felix GoGo - what the best way to create interactive commands?

2014-11-29 Thread Cristiano Gavião
Hello, I need to create a command that could follow different workflows depending on the user choice and the latest result... I mean, when the user triggers the command (with some parameters) it will be executed and I should display some options(depending on the result) and wait for the user to

why org.osgi.util.tracker are embedded ?

2014-09-09 Thread Cristiano Gavião
Hi all, I'm facing a class duplicity problem and while investigating it I noted that org.apache.felix.configadmin, org.apache.felix.scr and others embeds the /org.osgi.util.tracker/ package inline in its own bundle. I thought that this package would be imported/used from the framework...

Re: why org.osgi.util.tracker are embedded ?

2014-09-09 Thread Cristiano Gavião
Framework, such as the OSGi core packages including things like ServiceReference, BundleContext, BundleActivator etc. Note that the tracker package is not and has never been part of OSGi Core. Regards Neil On 9 September 2014 at 15:08:35, Cristiano Gavião (cvgav...@gmail.com mailto:cvgav

Re: OSGi and Git - what release process, how many repos?

2014-08-19 Thread Cristiano Gavião
Hi, Currently I'm with Carsten, after suffering trying to release bundles with different version in same git repository. For new project I decided to go with this path: one bundle (or more than one if they are enough tight to share same version) per git repository. In addition we created a

Re: maven-bundle-plugin and baseline behavior when upgrading parent pom?

2014-08-01 Thread Cristiano Gavião
and the value for both properties was true. so I used this on jenkins: -Dbaseline.failOnWarning=false regards, Cristiano On 01-08-2014 11:10, Cristiano Gavião wrote: Hi, I started to use new baseline feature and I like it a lot. But today I have bitten by an error while building. I had to upgrade

maven-bundle-plugin and baseline behavior when upgrading parent pom?

2014-08-01 Thread Cristiano Gavião
Hi, I started to use new baseline feature and I like it a lot. But today I have bitten by an error while building. I had to upgrade some projects just to use a new parent pom. I did any change in the code and just upgrade the minor version of each. Trying to build and I'm getting this

Re: org.apache.felix.bundlerepository snapshot ?

2014-06-24 Thread Cristiano Gavião
! Best regards, David On 23 June 2014 14:56, Cristiano Gavião cvgav...@gmail.com wrote: Hello, I'm looking into the source code and I noted that a version change happened... now it is 2.0.1-SNAPSHOT. but I can't find this latest snapshot in the apache's snapshot repository. May I ask to some

org.apache.felix.bundlerepository snapshot ?

2014-06-23 Thread Cristiano Gavião
Hello, I'm looking into the source code and I noted that a version change happened... now it is 2.0.1-SNAPSHOT. but I can't find this latest snapshot in the apache's snapshot repository. May I ask to some nice developer with rights to deploy it there ? btw, I can find the version 2.0.0

Re: [Gogo] can I override gosh_profile with a fragment?

2014-06-11 Thread Cristiano Gavião
with resources at /ext. I'm fairly certain that in our environment we'll soon end up with a framework hook which enables this by default. - Ray On Tue, Jun 10, 2014 at 10:06 AM, Cristiano Gavião cvgav...@gmail.com wrote: Hi Derek, I took a look at the source and the current directory actually

Re: [Gogo] can I override gosh_profile with a fragment?

2014-06-11 Thread Cristiano Gavião
This way, you could extend the resources of any bundle simply by attaching a fragment with resources at /ext. I'm fairly certain that in our environment we'll soon end up with a framework hook which enables this by default. - Ray On Tue, Jun 10, 2014 at 10:06 AM, Cristiano Gavião cvgav

[Gogo] can I override gosh_profile with a fragment?

2014-06-10 Thread Cristiano Gavião
Hello, I would like to add a banner at gogo session console. I discovered that gosh_profile and motd are the files that I need to deal with. Would be possible to override gosh_profile and add motd using a bundle fragment instead of define a gosh.home? thanks, Cristiano

Re: [Gogo] can I override gosh_profile with a fragment?

2014-06-10 Thread Cristiano Gavião
”. You can customise gosh_profile (and thus motd) by installed them in an “etc” directory relative to current directory or “gosh.home”. I don’t think a fragment bundle can override the gosh_profile resource in its host bundle. — Derek On 10 Jun 2014, at 14:05, Cristiano Gavião cvgav...@gmail.com

Re: felix-eclipse plugin 0.2.2 release

2014-04-29 Thread Cristiano Gavião
a port may be necessary. On Fri, Apr 25, 2014, at 09:17 AM, Cristiano Gavião wrote: Hi, is Luna already supported ? thanks On 02-04-2014 19:22, Christopher Armstrong wrote: felix-eclipse 0.2.2 has been released. This is an unofficial plugin to the Eclipse environment that adds Felix

problem using org.apache.felix.bundlerepository in equinox

2014-04-24 Thread Cristiano Gavião
Hi, I'm start to experiment the org.apache.felix.bundlerepository bundle to handle R5 xml repositories inside both felix and equinox. at Equinox I'm getting the following error: Caused by: java.lang.ClassNotFoundException: org.apache.felix.utils.log.Logger cannot be found by

Re: problem using org.apache.felix.bundlerepository in equinox

2014-04-24 Thread Cristiano Gavião
bundle. 2014-04-24 17:30 GMT+02:00 Cristiano Gavião cvgav...@gmail.com: Hi, I'm start to experiment the org.apache.felix.bundlerepository bundle to handle R5 xml repositories inside both felix and equinox. at Equinox I'm getting the following error: Caused

Re: felix-eclipse plugin 0.2.2 release

2014-04-24 Thread Cristiano Gavião
Hi, is Luna already supported ? thanks On 02-04-2014 19:22, Christopher Armstrong wrote: felix-eclipse 0.2.2 has been released. This is an unofficial plugin to the Eclipse environment that adds Felix as an OSGi Target Platform for developing Felix-based OSGi bundles. It has a fast startup

Re: Strange error with org.apache.felix.configadmin-1.8.0

2014-03-24 Thread Cristiano Gavião
It is not the Properties object itself that is empty but one of the entries has its value being an empty collection. Now, it is a good question, whether empty collections should actually be allowed in the properties or not. Regards Felix Am 21.03.2014 um 09:18 schrieb Cristiano Gavião cvgav

Strange error with org.apache.felix.configadmin-1.8.0

2014-03-21 Thread Cristiano Gavião
Hi, I've created a itest to verify the behaviour of a extender bundle that uses CM inside Felix and Equinox. In Equinox everything is ok. But in Felix in getting this strange error: ERROR: Bundle org.jbehave.osgi.core [32] EventDispatcher: Error during dispatch.

Re: Strange error with org.apache.felix.configadmin-1.8.0

2014-03-21 Thread Cristiano Gavião
; } and the interesting thing is that even with the error, DS (SCR) is creating the required service... 2014-03-21 12:14 GMT-03:00 Cristiano Gavião cvgav...@gmail.com: Hi, I've created a itest to verify the behaviour of a extender bundle that uses CM inside Felix and Equinox. In Equinox

Re: Strategies for bundle repositories and auto-update

2013-09-24 Thread Cristiano Gavião
Be aware that currently OBR generated by maven-bundle-plugin is not compatible with the new R5 Repository service and with the repositories that could be generated using OSGi Bindex tool. With the new format you can create Federated repositories (a composition of repositories)... regards,

Re: felix github mirror - default branch is not trunk

2013-09-13 Thread Cristiano Gavião
Hi Felix, yep, now trunk is the default branch. ;) best regards, Cristiano On 12/09/13 06:06, Felix Meschberger wrote: Seems to be fixed no. Regards Felix Am 12.09.2013 um 02:17 schrieb Cristiano Gavião: Hi, I was looking for some code and couldn't find. then I realized

felix github mirror - default branch is not trunk

2013-09-11 Thread Cristiano Gavião
Hi, I was looking for some code and couldn't find. then I realized that the default branch in github mirror (https://github.com/apache/felix) is not the trunk but is set to karaf-1.4.x. it would be good if some admin set it to trunk. ;) thanks and regards, Cristiano

Re: Problem with maven-bundle-plugin not importing packages

2013-09-10 Thread Cristiano Gavião
Hi, hi, I faced some like this once. It seems that maven-bundle-plugin adds an import-package declaration only when there are explicitly references to desired packages. by explicitly I mean, you must have a declaration of a parameter or an attribute. even if you just add an not used import

[maven-scr-plugin] Duplicate definition for property foo ?

2013-07-03 Thread Cristiano Gavião
Hi, I'm trying to declare a DS component with a property with multiple values: @Component(name = My commands, property={foo:Integer=1,foo:Integer=2,foo:Integer=3}) And I'm getting the following error: Duplicate definition for property foo in class MyCommandsComponent

Re: [maven-scr-plugin] Duplicate definition for property foo ?

2013-07-03 Thread Cristiano Gavião
name=foo bar baz /property On 03/07/13 12:58, Jad Naous wrote: looks like you're defining three properties called foo in your @Component parameters. Try change foo to foo1, foo2, foo3. On Wed, Jul 3, 2013 at 7:05 AM, Cristiano Gavião cvgav...@gmail.com wrote: Hi, I'm

Re: JDBC drivers as OSGi bundles

2013-07-02 Thread Cristiano Gavião
Using the JDBC service specification. Check this project: http://www.eclipse.org/gemini/dbaccess/ regards, Cristiano On 02/07/13 05:36, Christopher BROWN wrote: Hello, What is the best strategy for integrating JDBC drivers, such as MySQL, jTDS, and others that can start background threads

Re: handle org.apache.servicemix.bundles.freemarker package conflict in Felix?

2013-05-27 Thread Cristiano Gavião
Platform provides the org.w3c.dom.traversal package, you might want to expose it through the system bundle using the org.osgi.framework.system.packages.extra framework property Regards Felix Am 27.05.2013 um 05:24 schrieb Cristiano Gavião: Hello, I'm trying to use

GoGo isn't accepting a function name with different cases

2013-03-20 Thread Cristiano Gavião
Hello, I'm trying to register some commands in GoGo but I'm get problems when using a method name with uppercase and lowercase: The service is being registered but the command is being created by gogo. If I remove the uppercase it handle the function properly.

Re: GoGo isn't accepting a function name with different cases

2013-03-20 Thread Cristiano Gavião
Felix Gogo Shell (0.10.0) g! - richard On 3/20/13 13:59 , Cristiano Gavião wrote: Hello, I'm trying to register some commands in GoGo but I'm get problems when using a method name with uppercase and lowercase: The service is being registered but the command is being created by gogo. If I

Re: GoGo isn't accepting a function name with different cases

2013-03-20 Thread Cristiano Gavião
for me. Not sure what's up. I took the Gogo Command bundle and modified frameworklevel() to be frameworkLevel() and it worked. Make sure you are doing whatever it does. - richard On 3/20/13 14:18 , Cristiano Gavião wrote: Hi Richard, nothing against it ignore cases. the the big problem

maven-bundle-plugin and source bundle

2013-01-05 Thread Cristiano Gavião
Hi all, I'm using maven-bundle-plugin to create a bundle that wraps some jars. Now I need to create a source bundle using maven-source-plugin but its not working properly because it can't find any source... Should I reference the sources of wrapped jars as dependencies instead of the

Felix GoGo bundle example with DS

2012-01-14 Thread Cristiano Gavião
Hi, I would like to create a bundle to add my commands to the felix gogo console. Could someone point me to any example how can I achieve this, please? I could find some examples, but all related to karaf, but it uses blueprint and I would like to use Declarative Service. thanks a lot

Re: Felix GoGo bundle example with DS

2012-01-14 Thread Cristiano Gavião
. cheers Cristiano On 14/01/12 15:27, Felix Meschberger wrote: Hi, Am 14.01.2012 um 18:49 schrieb Cristiano Gavião: Hi, I would like to create a bundle to add my commands to the felix gogo console. Could someone point me to any example how can I achieve this, please? I could find some

Can't embed javax.inject with Bundle Plugin for Maven

2011-05-16 Thread Cristiano Gavião
Hi people, I've created a bundle with Bundle Plugin for Maven that wrap one specific JAR that I need to port to OSGi. That jar has javax.inject and others jars as transitive dependencies of it. I've used this to setup maven-bundle-plugin: Embed-Transitivetrue/Embed-Transitive

how to list all classes from exported packages of a bundle?

2011-05-06 Thread Cristiano Gavião
Hi, I have a no-osgi api that I'm trying to port to osgi. In this api I have a method that searchs for all classes in classpath that contain one determinated annotation. So I want to do the same on OSGi. I've started this challenge by creating one service bundle and I've create fragments

Re: how to list all classes from exported packages of a bundle?

2011-05-06 Thread Cristiano Gavião
packages by using BundleWiring.getProvidedWires(BundleRevision.PACKAGE_NAMESPACE). Angelo On May 6, 2011, at 3:05 PM, Cristiano Gavião wrote: Hi, I have a no-osgi api that I'm trying to port to osgi. In this api I have a method that searchs for all classes in classpath that contain one

Re: Configuration Admin service example?

2011-04-28 Thread Cristiano Gavião
with the filename as id. Each property in the file is available in blueprint then. The example above is from the ssh module of karaf which itself uses blueprint. Btw. Have a look at the sources of Karaf to learn more blueprint :-) Christian Am 26.04.2011 16:41, schrieb Cristiano Gavião: Hi Christian

Re: Configuration Admin service example?

2011-04-28 Thread Cristiano Gavião
such as blueprint confug, active srrvices,... kind regards, Andreas p.s.: Written from my mobile phone, please excuse half sentences and typos. On Apr 28, 2011 9:07 PM, Cristiano Gavião cvgav...@gmail.com wrote: -- Tudo vale a pena se a alma não é pequena...

Re: Configuration Admin service example?

2011-04-26 Thread Cristiano Gavião
, spring dm or blueprint? Christian Am 26.04.2011 00:03, schrieb Cristiano Gavião: Hi, I would like to use Configuration Admin Service with Declared Service. But I couldn't find yet a updated tutorial with a good example. Someone knows any to point me? thanks Cristiano

Re: Configuration Admin service example?

2011-04-26 Thread Cristiano Gavião
, Cristiano Gavião cvgav...@gmail.com wrote: I would like to use Configuration Admin Service with Declared Service. But I couldn't find yet a updated tutorial with a good example If your goal is to create Declarative Services that have configuration parameters, the maven-scr-plugin

Configuration Admin service example?

2011-04-25 Thread Cristiano Gavião
Hi, I would like to use Configuration Admin Service with Declared Service. But I couldn't find yet a updated tutorial with a good example. Someone knows any to point me? thanks Cristiano - To unsubscribe, e-mail: