Re: Predictable order of bundle resolution

2021-10-15 Thread Justin Edelson
e D is used with the org.foo API. > > > > > > If I understand the StatefulResolver correctly, it uses a ThreadPool > > > as executor for the ResolverImpl, meaning it may happen that bundles > > > do not alway get resolved in the same order. If so I would assume the > > > implementation sho

Re: Predictable order of bundle resolution

2021-10-14 Thread Justin Edelson
Hi Dirk, This is a possibly impractical suggestion in your context, but have you thought about modeling this as services? Something like: Bundle A (ID: 200) - Export-Package: org.foo;version=1.0.0 Bundle B (ID: 210) - Import-Package: org.foo;version="[1.0,2)" - Export-Package:

Re: API baselining with maven-bundle-plugin

2017-06-23 Thread Justin Edelson
rogramming.com> wrote: > > > > The cadence is important I that if I want to "release" off the back of > each build, I don't want to have to manually make a code modification every > day, nor do I want to have the build process modify the source code, that > just doesn

Re: API baselining with maven-bundle-plugin

2017-06-22 Thread Justin Edelson
small differences can creep in. > > Neil > > On 22 Jun 2017 8:23 p.m., "Justin Edelson" <jus...@justinedelson.com> > wrote: > > > Neil- > > Out of curiosity, in the bnd worldview you're describing, how is the > > distinction between a snapshot an

Re: API baselining with maven-bundle-plugin

2017-06-22 Thread Justin Edelson
want to "release" off the back of > each build, I don't want to have to manually make a code modification every > day, nor do I want to have the build process modify the source code, that > just doesn't seem right. > > > > I'm probably at odds with standard practice

Re: API baselining with maven-bundle-plugin

2017-06-22 Thread Justin Edelson
the build process modify the source code, that > just doesn't seem right. > > I'm probably at odds with standard practice. > > -----Original Message- > From: Justin Edelson [mailto:jus...@justinedelson.com] > Sent: 22 June 2017 17:40 > To: users@felix.apache.org >

Re: API baselining with maven-bundle-plugin

2017-06-22 Thread Justin Edelson
ed in an apparently different way to bndtools, which is based > on the same thing. > > > > -Original Message- > From: Justin Edelson [mailto:jus...@justinedelson.com] > Sent: 22 June 2017 15:15 > To: users@felix.apache.org > Subject: Re: API baselining with m

Re: API baselining with maven-bundle-plugin

2017-06-22 Thread Justin Edelson
Hi, I think you might be mixing up the bundle version (what I think you are referring to as the "project version") with the package versions. baseline is larger concerned with the latter, and only uses the former to find the comparison version. Released versions should always be considered

Re: Providing extra manifest entries in bundles with maven-bundle-plugin?

2016-08-02 Thread Justin Edelson
Yes, this is possible. The syntax is something like: io7m And so on. On Tue, Aug 2, 2016 at 1:05 PM wrote: > Hello. > > I'm in the process of converting a project to OSGi bundle form. I'm > doing this by changing the Maven packaging type to

Re: bundle starting order

2014-08-15 Thread Justin Edelson
Hi, Regarding Sling Models specifically (vs. the larger OSGi question), when you have a Sling Model annotated class and the appropriate bundle header, Sling Models will automatically register an AdapterFactory OSGi service. So if you had a downstream component which needed to do something *only*

Re: DS unsetting the wrong services

2013-12-07 Thread Justin Edelson
Hi, Your component is configured with three mandatory (1..1), static references. This means that all three services must be available for your compnent to be activated. Thus when one of those services goes away, all three references are unbound and the component is deactivated. It sounds like the

Is the file format used by Felix ConfigAdmin documented somewhere?

2012-10-08 Thread Justin Edelson
Hi, I see a grammer in http://svn.apache.org/repos/asf/felix/trunk/configadmin/src/main/java/org/apache/felix/cm/file/ConfigurationHandler.java, but I'm not sure where (if anywhere) this is actually published. Thanks, Justin -

Re: Setup Felix Web Console with Apache HTTP Server

2012-09-26 Thread Justin Edelson
Ulrich- I think you've misunderstood the recommendation - I suspect that what was intended was that you would look at the Web Console included with CQ5, not a separate installation of Felix. Would suggest you post CQ-specific questions at

Re: Setup Felix Web Console with Apache HTTP Server

2012-09-26 Thread Justin Edelson
Jetty (2.2.0) best regards, Ulrich Justin Edelson jus...@justinedelson.com hat am 26. September 2012 um 16:35 geschrieben: Ulrich- I think you've misunderstood the recommendation - I suspect that what was intended was that you would look at the Web Console included with CQ5

Re: Groovy, SCR annotations and the maven-scr-plugin

2012-07-23 Thread Justin Edelson
Hi Miles, I don't think the maven-scr-plugin works with any language other than Java right now. There's an effort on to rewrite the core of the scr-plugin in such a way that it operates at the bytecode rather than the source code level. See https://issues.apache.org/jira/browse/FELIX-3568 for

Re: activator with dependency injection for service

2012-05-30 Thread Justin Edelson
Hi, On Wed, May 30, 2012 at 12:20 AM, miten mehta imi...@yahoo.com wrote: Hi, I modified code as you suggested. Removed the activator logic and converted it into simple bean. The bundle when starts it does activate the spring framework which instantiates the beans and does DI. The

Re: activator with dependency injection for service

2012-05-30 Thread Justin Edelson
of osgi container into remote osgi services or ejbs ? is the service reference capable of remoting across host ? Regards, Miten. -- *From:* Justin Edelson jus...@justinedelson.com *To:* users@felix.apache.org; miten mehta imi...@yahoo.com *Sent:* Wednesday, May 30

Re: hi everyone

2012-05-14 Thread Justin Edelson
Tayeb- You need to install your bundle into a running framework and then start it. I really would recommend you understanding the context of what you are trying to do before jumping into the tutorial. OSGi is heady stuff and to jump into it without knowing how to compile classes is just going to

Re: Configuring Anonymous access for Sling Servlet in the Apache Felix Console

2012-05-08 Thread Justin Edelson
This has nothing to do with Felix. On May 7, 2012, at 9:16 PM, durga nuvvula durganuvv...@gmail.com wrote: Sorry I have posted the same question in sling and day forum and increase the traffic. I was not sure about posting this question in one forum as it was related to sling servlet

Re: duplicate a bundle OSGI

2012-05-01 Thread Justin Edelson
Fariouz- Could you point to the specific 'literature' you are referring to? Justin On Apr 30, 2012, at 6:04 PM, Fairouz Fakhfakh fairouz.fakhf...@gmail.com wrote: Hello, I would like to test a bundle (send a request to test the behaviour of a component). But, the problem, the test data and

Re: java scripting inside a bundle

2011-10-19 Thread Justin Edelson
Lance: You might also want to look at Apache Sling's scripting support. After installing a few bundles (I'd need to test to be sure, but my guess is its probably 3 or 4), you can get a ScriptEngineManager from the OSGi service registry. If you have questions about this approach, probably better

Re: offline deployment of bundles?

2011-10-13 Thread Justin Edelson
On Oct 13, 2011, at 8:44 AM, sam ” skyn...@gmail.com wrote: Hey, I'm using Felix Web Console to deploy bundles to running Felix. pkg=$1 host=$2 url=http://$host/system/console/install; curl -f -Faction=install -F_noredir_=_noredir_ -Fbundlefile=@$pkg -Fbundlestart=start

Re: maven-bundle-plugin and classifiers with SCR

2011-08-08 Thread Justin Edelson
This is not a good idea as it runs against Maven best practices. You should restructure your project to produce a single artifact per project. Justin On Mon, Aug 8, 2011 at 6:23 AM, Caspar MacRae ear...@gmail.com wrote: Hello, I'm trying to get a single maven module to build separate bundles

Re: maven-bundle-plugin and classifiers with SCR

2011-08-08 Thread Justin Edelson
just messed up my pom? thanks, Caspar On 8 August 2011 14:54, Justin Edelson jus...@justinedelson.com wrote: This is not a good idea as it runs against Maven best practices. You should restructure your project to produce a single artifact per project. Justin On Mon, Aug 8, 2011 at 6:23

Re: maven-bundle-plugin and classifiers with SCR

2011-08-08 Thread Justin Edelson
in my pom? thanks, Caspar On 8 August 2011 15:26, Justin Edelson jus...@justinedelson.com wrote: http://www.sonatype.com/people/2010/01/how-to-create-two-jars-from-one-project-and-why-you-shouldnt/ If you have further questions on Maven best practices, you should post this question

Re: Moving fragment to Resolved state in fileinstall watched directory?

2011-07-13 Thread Justin Edelson
Is code running inside the framework? If so, why not just install the bundle directly (and the refresh the host bundle) rather than mucking with FileInstall. Justin On Jul 13, 2011, at 12:03 PM, lili_ili svet...@gmail.com wrote: Thank you, Richard. Can you recommend a java side solution?

Re: Apache Felix Web Console - System Information

2011-06-27 Thread Justin Edelson
.  We tried specifying the -Xmx and -Xms options to java when starting felix. We are stumped.  Why is Runtime.totalMemory() returning 5MB? Bruce -Original Message- From: justinedel...@gmail.com [mailto:justinedel...@gmail.com] On Behalf Of Justin Edelson Sent: Monday, June 27, 2011

Re: Apache Felix Web Console - System Information

2011-06-27 Thread Justin Edelson
options to java when starting felix. We are stumped.  Why is Runtime.totalMemory() returning 5MB? Bruce -Original Message- From: justinedel...@gmail.com [mailto:justinedel...@gmail.com] On Behalf Of Justin Edelson Sent: Monday, June 27, 2011 10:28 AM To: users@felix.apache.org Subject

Re: Felix maven-bundle-plugin transitive dependency issue

2011-06-14 Thread Justin Edelson
for projectC as well. So what are my options in this case? Should I make embed-transitive true and let projectC 2.0 and commons-lang 2.5be embedded inside the bundle or install the versions in felix and then install the bundle ? On Fri, Jun 10, 2011 at 8:24 PM, Justin Edelson jus

Re: Felix maven-bundle-plugin transitive dependency issue

2011-06-10 Thread Justin Edelson
I would highly recommend not using resolution=optional with * It would be very atypical for *all* imports to truly be optional. When you use optional imports blindly like this you will inevitably end up with the wrong class space at some point. What I generally advise people is this: 1) deal

Re: Felix maven-bundle-plugin transitive dependency issue

2011-06-10 Thread Justin Edelson
into a bundle is the right approach? I think it contravenes some of the core principles of OSGi to embed dependencies except in some rare corner-cases. - Original Message - From: Justin Edelson jus...@justinedelson.com To: users@felix.apache.org Sent: Friday, June 10, 2011 5

Re: Felix maven-bundle-plugin transitive dependency issue

2011-06-10 Thread Justin Edelson
at 2:22 PM, Justin Edelson jus...@justinedelson.com wrote: I would highly recommend not using resolution=optional with * It would be very atypical for *all* imports to truly be optional. When you use optional imports blindly like this you will inevitably end up with the wrong class space

Re: how can I get a Component object?

2011-06-02 Thread Justin Edelson
Is there a reason you don't want to make it a service? On Thu, Jun 2, 2011 at 3:02 PM, sam lee skyn...@gmail.com wrote: Hey, I am using maven-scr-plugin. I have: @Component(immediate=true) public class Foo {    @Reference    private Bar bar; } Obviously, when I get  Foo instance by  

Re: how can I get a Component object?

2011-06-02 Thread Justin Edelson
, Justin Edelson jus...@justinedelson.comwrote: Is there a reason you don't want to make it a service? On Thu, Jun 2, 2011 at 3:02 PM, sam lee skyn...@gmail.com wrote: Hey, I am using maven-scr-plugin. I have: @Component(immediate=true) public class Foo {    @Reference

Re: how can I handle error condition during activate()?

2011-05-16 Thread Justin Edelson
Yes - you can throw an exception in the activate method if you don't want the component to be activated. See section 112.5.8 of the Compendium: If the activate method throws an exception, SCR must log an error message containing the exception with the Log Service, if present, and the component

Re: A better life: quick webapp deploy

2011-05-10 Thread Justin Edelson
On Tue, May 10, 2011 at 11:37 AM, Daniele Dellafiore dani...@dellafiore.net wrote: On Tue, May 10, 2011 at 3:17 PM, Peter Kriens peter.kri...@aqute.bizwrote: In OSGi the idea is that you get a bunch of bundles that collaborate through services. The bundle is a module and is therefore supposed

Re: BundleException: Unresolved constraint in bundle (package=org.apache.commons.lang)

2011-05-08 Thread Justin Edelson
Actually, the regular distribution of commons-lang 2.5 is a valid OSGi bundle, so you don't need an alternate distribution. On Sun, May 8, 2011 at 2:16 AM, Bahadir Konu bah.k...@gmail.com wrote: Thank you for the quick replies. I learned more now and this worked:

Re: BundleException: Unresolved constraint in bundle (package=org.apache.commons.lang)

2011-05-07 Thread Justin Edelson
You need to deploy a bundle which exports this package with a version within the range specified. The version specification [2.5,3) means any version equal to or greater than 2.5 and less than 3.0. Would suggest you read the sections of the OSGi spec describing versioning. Justin On May 7,

Re: newbie question on adoption

2011-04-25 Thread Justin Edelson
This really has nothing to do with OSGi. It's an implementation question about how your timer is implemented. On Apr 25, 2011, at 2:59 PM, Parvez Shah parvez.s...@live.com wrote: We are keen to adopt OSGI for our application, but before I undertake study to implement it would like to

Re: How to generate a file with .war extension using maven-bundle-plugin's bundle goal?

2011-04-21 Thread Justin Edelson
There would need to be a new packaging type for this. But it is possible to use m-b-p when the packaging type is 'war'. Not sure if this works with WABs specifically, but in Sling we produce an OSGi bundle with the extension war using this technique. Justin On Apr 21, 2011, at 7:16 PM, Sahoo

Re: A better life: quick webapp deploy

2011-04-06 Thread Justin Edelson
Why write a web.xml at all? http://felix.apache.org/site/apache-felix-http-service.html#ApacheFelixHTTPService-UsingtheWhiteboard On Wed, Apr 6, 2011 at 11:01 AM, Daniele Dellafiore ilde...@gmail.com wrote: Hi. I am trying to achive this goal. What do I hate the most of webapp development in

Re: Automating Creating a factory configuration

2011-02-20 Thread Justin Edelson
Shay- maven-sling-plugin does something along these lines. Look at the configure() and addConfiguration() methods in http://svn.apache.org/repos/asf/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java Justin On Sat, Feb 19, 2011

Re: Updatable agent with OSGI. Possible?

2011-02-14 Thread Justin Edelson
At bit OT now, but does DropBox work in headless mode (i.e. Without X/GNOME/KDE) on Linux? On Feb 14, 2011, at 8:17 AM, Peter Kriens peter.kri...@aqute.biz wrote: Dropbox does not mount ... it just maintains a folder, there is no magic involved, at least not on my Mac. I made the same

Re: cfg files in bundles

2011-02-11 Thread Justin Edelson
Carl- Take a look at https://issues.apache.org/jira/browse/FELIX-2100 Justin On Fri, Feb 11, 2011 at 10:38 PM, Carl Hall c...@hallwaytech.com wrote: Is this something that would be desirable to have in file install? I wouldn't mind having a go at implementing it. On Thu, Feb 10, 2011 at 1:49

Re: Getting error while starting a bundle

2011-02-09 Thread Justin Edelson
Is a bundle exporting this package installed in the framework? I'm guessing no and that's your problem. Justin On Feb 9, 2011, at 5:46 PM, samsmarty sadashiv.bor...@gmail.com wrote: Hi All, Iam getting following error while starting the bundle. org.osgi.framework.BundleException:

Re: New OSGi presentation

2011-01-28 Thread Justin Edelson
I had this feedback as well. 'uses' constraints are really important and actually pretty reasonable once you understand them. Karl and Marcel's presentation from OSGi DevCon did a good job (IMHO) of explaining them. Justin On Jan 28, 2011, at 8:56 AM, teemu kanstren tkanst...@gmail.com wrote:

Re: JUnit in Felix OSGI

2011-01-24 Thread Justin Edelson
Have you looked at Pax Exam? On Jan 24, 2011, at 4:50 PM, Bruce Hartman bhart...@westell.com wrote: Hi, I'm new to OSGI in general. I have a question, and will appreciate any or all of your suggestions. I realize that I may need answers to questions I haven't even asked yet. Here's the

Re: why javax.xml.stream from system package cannot satisfy dom4j's need

2011-01-13 Thread Justin Edelson
What's the version of the package exported by the system bundle? It would appear it doesn't fall into the range required by dom4j. Justin On 1/13/11 9:32 PM, Rice Yeh wrote: Hi, I use bundle com.springsource.org.dom4j, which imports javax.xml.stream package. The

Re: What do I do about strange package in Import-Package?

2011-01-12 Thread Justin Edelson
On 1/12/11 9:13 AM, Clay McCoy wrote: The whole reason that I am trying to use Embed dependencies and transitive = true is so that I don't have to deal with dependencies. They are all supposed to be embedded into a self contained jar. But now I am having to deal with sun.misc. This seems

Re: What do I do about strange package in Import-Package?

2011-01-11 Thread Justin Edelson
If this package is necessary for guava to operate, you should add it to the system bundle's exports. Justin On Jan 11, 2011, at 6:04 PM, Clay McCoy c...@claymccoy.com wrote: I have a dependency on guava and I am using Embed dependencies. The maven plugin bundle adds javax.annotation and

Re: What do I do about strange package in Import-Package?

2011-01-11 Thread Justin Edelson
The system bundle is described in section 4.6 of the OSGi core spec. On Jan 11, 2011, at 6:36 PM, Clay McCoy c...@claymccoy.com wrote: What is the system bundle? I don't know what guava needs, and I don't want to. On Jan 11, 2011 5:09 PM, Justin Edelson jus...@justinedelson.com wrote

Re: Getting started with the framework and Javadocs

2010-12-15 Thread Justin Edelson
On Dec 15, 2010, at 8:17 AM, Bjorn Roche bj...@xowave.com wrote: On Dec 14, 2010, at 9:45 PM, Richard S. Hall wrote: On 12/14/10 9:42 PM, Richard S. Hall wrote: You should read the OSGi R4.2 specification of the OSGi JavaDoc Sorry, that should say, ...the OSGi R4.2 specification OR

Re: Referencing maven 3 snapshots from config.properties

2010-12-02 Thread Justin Edelson
If you're using Nexus specifically, there was (and probably still is) a plugin called LVO which enabled you to formulate an URL to the Latest Version Of an artifact. This might do the trick. Justin On Dec 2, 2010, at 5:27 PM, Tobias Wunden tobias.wun...@id.ethz.ch wrote: Hi, I am looking

Re: Remote Logging

2010-11-24 Thread Justin Edelson
On 11/24/10 9:51 AM, Richard S. Hall wrote: On 11/23/10 22:36, jo...@softvation.com wrote: Hi all Can i do remote logging? If i do log from a Felix instance, can another Felix instance recieve LogEntry also and add to its current log bundle? Is there a bundle to this? Or how can i combine

Re: Issues that need to be addressed in Apache Felix and the OSGi specification

2010-11-24 Thread Justin Edelson
On 11/24/10 11:28 AM, John Platts wrote: I actually want to address issues with Felix and the OSGi specification that are not specific to the Spring Framework, Spring DM, or Eclipse Gemini. That's fine. But what you are suggesting IMHO is to break modularity and so whether this is an issue

Re: Issues that need to be addressed in Apache Felix and the OSGi specification

2010-11-24 Thread Justin Edelson
On 11/24/10 12:01 PM, Guillaume Nodet wrote: On Wed, Nov 24, 2010 at 17:45, Justin Edelson justinedel...@gmail.com wrote: On 11/24/10 11:28 AM, John Platts wrote: I actually want to address issues with Felix and the OSGi specification that are not specific to the Spring Framework, Spring DM

Re: Scala and osgi

2010-11-19 Thread Justin Edelson
annotation classes. bnd uses CLASS annotations for its DS support because it is a lot easier to parse byte codes than source code. Kind regards, Peter Kriens On 18 nov 2010, at 20:47, Felix Meschberger wrote: Hi, Am Donnerstag, den 18.11.2010, 11:50 -0500 schrieb Justin

Re: Scala and osgi

2010-11-19 Thread Justin Edelson
one though. On Fri, Nov 19, 2010 at 16:21, Justin Edelson jus...@justinedelson.com wrote: Peter- This is perhaps a bit of lazymail, but will bnd by default create an Import-Package statement for CLASS-retained annotations? In other words, if you had package foo; import

Re: Scala and osgi

2010-11-18 Thread Justin Edelson
On Thu, Nov 18, 2010 at 3:35 AM, Felix Meschberger fmesc...@gmail.com wrote: Hi, Am Sonntag, den 01.08.2010, 14:07 +0200 schrieb Reto Bachmann-Gmuer: Hi Atle In the clerezza projects we're using more and more scala, the biggest disandvantage for me is that the maven-scr-plugin doesn't work

Re: Dependency on org.jaxen from within org.dom4j

2010-11-12 Thread Justin Edelson
Mike- Did you install the jaxen bundle? If the import is optional and isn't resolved, then I don't think that shows up in the web console (at least not in the Imported Packages section because, you know, it isn't imported). Try installing the jaxen bundle and then refreshing the dom4j bundle.

Re: Oracle JDBC in OSGI

2010-11-11 Thread Justin Edelson
Ask Oracle. On Nov 11, 2010, at 12:48 PM, Larry T la...@touve.net wrote: I'm trying to migrate a simple application into our OSGi framework. I've got the typical code that does: Class.forName(oracle.jdbc.driver.OracleDriver); connection = DriverManager.getConnection(url, user, pass);

Re: Felix embedded in JEE AS

2010-11-05 Thread Justin Edelson
Yes. http://felix.apache.org/site/apache-felix-http-service.html#ApacheFelixHTTP Service-UsingtheServletBridge Sling uses this (although in a more elaborate form). Karaf, I believe, has something similar. HTH, Justin On 11/5/10 1:16 PM, Joel Schuster jo...@navsys.com wrote: There is work

Re: how can I remotely manage OSGi bundles and components/services?

2010-10-28 Thread Justin Edelson
Yes and no. There is an implicit HTTP API (which is more or less RESTful AFAIK) exposed by the WebConsole plugins. However, it isn't formalized as such. You can take a look at the Maven Sling Plugin (http://svn.apache.org/repos/asf/sling/trunk/maven/maven-sling-plugin/) for examples of uploading

Re: Database within Karaf?

2010-10-28 Thread Justin Edelson
Derby certainly does. I don't know of any reason why H2 or Hypersonic wouldn't as well, but you're probably better off asking on those mailing lists instead of Felix's or Karaf's. Justin On Oct 28, 2010, at 7:35 PM, Mike van Geertruy wrote: Are there databases that run within and OSGi

Re: mvn package, multi-modules and bundles

2010-10-22 Thread Justin Edelson
FWIW, Maven 3 can certainly be run via a Hudson freestyle job. It's only the special Maven 2 job type which won't work with Maven 3. On 10/22/10 10:47 AM, Pieter van Boxtel wrote: I can confirm this. Just fixed a breaking build by upgrading to Maven 3.0. Unfortunately Maven 3 won't run on

Re: Mime utility issue

2010-09-29 Thread Justin Edelson
Based on http://mime-util.svn.sourceforge.net/viewvc/mime-util/trunk/eu.medsea.mimeutil/src/eu/medsea/mimeutil/magicfile/Helper.java?revision=91view=markup, the magic.mime file has to be in the root of the classpath, not META-INF. Are you embedding mime-util into your own bundle or using it as a

Re: maven-bundle-plugin: install-dependencies

2010-09-28 Thread Justin Edelson
OBR. Furthermore I would depend on a specific maven repository with a specific url. having a fallback-repository would not be possible and the through compile dependencies already installed maven bundle is completely ignored. Thanks Enrico Am 27.09.2010 um 17:03 schrieb Justin Edelson

Re: Forcing the import of specific classes

2010-09-27 Thread Justin Edelson
Don't use .* On Sep 27, 2010, at 12:09 PM, mvangeert...@comcast.net wrote: All, Currently, I am having an issue where when I include 2 specific packages in the import directive of the maven-bundle-plugin, the plugin decides it doesn't need them, and leaves them out, even if I

Re: strange behavior in the Import-Package section of maven-bundle-plugin

2010-09-27 Thread Justin Edelson
I don't know if this is intended or not, but it isn't surprising to me. As an aside, I would be VERY careful about the version of packages contained in the JDK/JRE. In general, the version numbers for JRE packages isn't defined. Check the list archives for both felix-users and osgi-dev for past

Re: Forcing the import of specific classes

2010-09-27 Thread Justin Edelson
Mike- Please keep reply on-list and without thread trimming... I didn't actually mean to hit send because this seemed to warrant a longer response than I was prepared to give at the time. First off, yes, I was answering your question in the context of maven-bundle-plugin. Wildcards are perfectly

Re: maven-bundle-plugin: install-dependencies

2010-09-24 Thread Justin Edelson
If you have an OSGi bundle, why are you re-bundling it? I don't have first-hand knowledge of this, but AFAIK, bundle:install-file will use the MANIFEST.MF from the bundle being installed. In point of fact, I don't see how it could work otherwise. Justin On 9/24/10 12:24 AM, Enrico Schnepel

Re: Including non-bundle .jars in Export-Package issue

2010-08-25 Thread Justin Edelson
If I understand this correctly, you want to create an OSGi bundle which: 1) Contains some of your code 2) Contains some code from a 3rd party library 3) Exports some of your packages 4) Exports some packages from the 3rd party library Best thing I can do it to point you to a working example:

Re: Heuristic for exporting proper version numbers in Export Package

2010-08-23 Thread Justin Edelson
On 8/23/10 4:07 PM, Van Geertruy, Michael wrote: Packaging them all together in this library bundle is good It's not good. It's bad. If someone's providing you with an OSGi bundle, you shouldn't be repackaging this into your own OSGi bundle. IMHO, the behavior of * you're describing is

Re: Multiple build types for a submodule (bundle and artifact)?

2010-08-20 Thread Justin Edelson
On 8/20/10 11:32 AM, motes motes wrote: Is it possible in a maven submodule pom file to specify that it should build a normal artifact jar and a felix bundle during the packaging phase? I don't think so, but it certainly is possible by setting a classifier. It works fine for each case

Re: fragment bundle support in maven-bundle-plugin

2010-08-19 Thread Justin Edelson
This works already. On Aug 19, 2010, at 8:59 AM, niiba...@gmail.com niiba...@gmail.com wrote: Greetings! I wonder, when maven-bundle-plugin will support Fragment-Host attribute ininstructions? Is there any roadmap for this plugin?

Re: fragment bundle support in maven-bundle-plugin

2010-08-19 Thread Justin Edelson
No. Using Fragment-Host. Maybe I'm misunderstanding your question. On Aug 19, 2010, at 9:15 AM, niiba...@gmail.com niiba...@gmail.com wrote: Using _include/_include ? On 19.08.2010 17:06, Justin Edelson wrote: This works already. On Aug 19, 2010, at 8:59 AM, niiba...@gmail.comniiba

Re: Missing Constraint: Import-Package

2010-07-20 Thread Justin Edelson
You can suppress this import by adding Import-Package!com.google.inject.internal.asm.util,*/Import-Package But this import looks important, so you are probably better off tracking it down. Also, isn't there an OSGi-ified version of Guice you can use instead of embedding it? On Jul 20, 2010,

Re: Missing Constraint: Import-Package

2010-07-20 Thread Justin Edelson
it down I guess. But I thought that Embed-Transitivetrue/Embed-Transitive Embed-Dependency*;scope=compile|runtime/Embed-Dependency would take care of transitive dependencies? On Tue, Jul 20, 2010 at 2:44 PM, Justin Edelson justinedel...@gmail.com wrote

Re: Missing Constraint: Import-Package

2010-07-20 Thread Justin Edelson
the Felix osgi container. But I am a bit confused if this is the right way to go based on the above described objective (the final application should be an eclipse only plugin). Any suggestions? On Tue, Jul 20, 2010 at 4:18 PM, Justin Edelson jus...@justinedelson.com wrote: I answered

Re: Setting Component Attributes Through Config File

2010-07-20 Thread Justin Edelson
On Jul 20, 2010, at 5:05 PM, Carl Hall c...@hallwaytech.com wrote: Hi Felix, Thanks for the response. Do you know if it is possible to submit multiple values for a particular property via the cfg file like can be done with the admin console? See

Re: Problems including external jar's with felix

2010-07-15 Thread Justin Edelson
If you want to use Axis 1.4.0, you can use the bundles from the SpringSource repo. Starting with: http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.apache.axisversion=1.4.0searchType=bundlesByNamesearchQuery=axis and also ensuring that all of the require

Re: SV: Problems including external jar's with felix

2010-07-15 Thread Justin Edelson
should make a .bar out of every external jar, and place it on the server? Or shouldn't the dependency somehow be able to be satisfied by FUSE/Servicemix downloading and installing it? - Morten -Oprindelig meddelelse- Fra: Justin Edelson [mailto:justinedel...@gmail.com] Sendt

looks like an error message... but maybe it isn't

2010-07-07 Thread Justin Edelson
After upgrading from 2.0.4 to 3.0.1, I get these two messages: RE: org.apache.felix.framework.resolver.ResolveException: Constraint violation for package 'javax.activation' when resolving module 16.0 between existing import 0.javax.activation BLAMED ON [[16.0] package;

Re: looks like an error message... but maybe it isn't

2010-07-07 Thread Justin Edelson
egads. I saw these last two comments on the mailing list, but neglected to look at the root issue. Sorry for the noise. Justin On 7/7/10 12:34 PM, Richard S. Hall wrote: See: https://issues.apache.org/jira/browse/FELIX-2451 - richard On 7/7/10 11:54, Justin Edelson wrote: After

Re: Limit of bundles and corresponding performance

2010-07-03 Thread Justin Edelson
On Jul 3, 2010, at 3:58 AM, Sander de Groot s.degr...@jdi.nl wrote: On 07/02/2010 03:22 PM, Richard S. Hall wrote: On 7/2/10 6:27, Sander de Groot wrote: Hi, Our production environment consists of = 500 websites and are currently all written in PHP. We're considering moving from PHP to

Re: Embed-Dependency does not work

2010-07-02 Thread Justin Edelson
Embed-Dependency needs to go inside instructions. On 7/2/10 12:51 PM, Sudhir Dharmadhikari wrote: Hi - I saw couple threads about Embed-Dependency not working. But not sure if it was fixed or if there is any other way. Here is my code, Nothing gets embedded in the bundle . I have tried

Re: Hello from Sydney and PML!

2010-06-28 Thread Justin Edelson
On Jun 28, 2010, at 5:28 AM, Will Budic vilija...@gmail.com wrote: Hello everyone! A very lone Felix user cowboy here! :) This is just a quick hello for now till I get used to posting to the list. My project is something called PML which on first look is just an programmer friendly

Re: Will felix treat system.bundle as org.eclipse.osgi?

2010-06-23 Thread Justin Edelson
On Jun 23, 2010, at 6:02 PM, Uk Jiang ukji...@yahoo.com wrote: Hi, In OSGi world, system.bundle is another name for org.eclipse.osgi. No, it isn't. This is only true if you are using Equinox. Some bundles such as org.apache.xml.serializer_2.7.1.v200902170519,

Re: classloader and 3rd party jar

2010-06-22 Thread Justin Edelson
This is not, as far as I know, accurate. org.osgi.framework.system.packages.extra exposes packages from the host application to embedded bundles, not vice versa. Justin On 6/22/10 2:21 AM, khepel lak wrote: Just on remark about the org.osgi.framework.system.packages.extra: it is handy when u

Re: classloader and 3rd party jar

2010-06-22 Thread Justin Edelson
On 6/22/10 8:16 PM, jamie campbell wrote: On 10-06-22 06:42 PM, Richard S. Hall wrote: You don't need the trailing semi-colon, that separates the package from any attributes. Was your bundle importing this package when you tried this? I've tried with importing and without. When I have

Re: Web Management Console / Configuration and Spring-DM

2010-06-16 Thread Justin Edelson
IIRC, you need to manually create metatype information for configurations to show up in this plugin. Create a file /OSGI-INF/metatype/metatype.xml and populate it according to the Metatype spec using the PID you reference from Spring DM. You can see an example of this here:

Re: Duplicate import

2010-06-10 Thread Justin Edelson
On 6/10/10 9:15 AM, petergent wrote: - Thank you Richard, I deleted the line (and some others) manually. It works now. - The problem is: It's the latest and only version of log4j that supports OSGi (and that is deployed on the Maven repo). FYI - this bug was reopened:

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Justin Edelson
On 6/2/10 7:58 AM, Norbert Somlai wrote: Hi, I know how to use FileInstall or the Web Console to reconfigure a component. What I could not find is a way to declaratively configure a component instance in component.xml, so I could keep the reference and the configuration at the same place.

Re: Is configuring service properties the Spring DM way possible with Declarative Services

2010-06-02 Thread Justin Edelson
On 6/2/10 12:22 PM, Felix Meschberger wrote: Hi, On 02.06.2010 13:58, Norbert Somlai wrote: Hi, I know how to use FileInstall or the Web Console to reconfigure a component. What I could not find is a way to declaratively configure a component instance in component.xml, so I could keep

Re: Maven bundle plugin trace log

2010-05-27 Thread Justin Edelson
Perhaps something like JDepend would be better suited to this type of analysis. On 5/27/10 8:53 AM, Thiago Souza wrote: Hi, Ok than, thanks for the info... My current problem is that I'm bundling a jar and bnd is generating import-package with dependencies that are not accepted

static optional SCR references

2010-05-18 Thread Justin Edelson
I know there was some confusion about the handling of SCR static optional references in the past, so could someone confirmt that a static optional reference will do this: Assume Component 1 has a static optional reference to Component 2 1) Component 1 activated with null reference to Component

Re: Felix URLs changed/unresoved = Pax runner stopped working with felix

2010-05-17 Thread Justin Edelson
That URL looks wrong. It should be mvn:org.apache.felix/org.apache.felix.main/2.0.1 There is no Felix artifact with the artifact ID org.apache.main. Justin On May 17, 2010, at 3:23 PM, Morten mortench2...@yahoo.dk wrote: Since a few days ago I am unable to use felix since I depend on Pax

Re: Felix URLs changed/unresoved = Pax runner stopped working with felix

2010-05-17 Thread Justin Edelson
know for sure that pax runner for eclipse worked fine last week and it stopped working at the same time I can see other people on this list complaining about broken downloads. --- Den man 17/5/10 skrev Justin Edelson justinedel...@gmail.com: That URL looks wrong. It should

Re: Building multiple versions of a bundle using Maven

2010-05-12 Thread Justin Edelson
Maybe I'm too far into the Maven community, but I don't see a problem here. You say: The problem I have arises when app1 and app2 use different versions of the commons module. If app1 references commons/1.0.0 as a dependency and app2 references commons/2.0.0 as a dependency I'm in trouble

Re: Building multiple versions of a bundle using Maven

2010-05-12 Thread Justin Edelson
On 5/12/10 2:19 PM, Chris Blunck wrote: On Wed, May 12, 2010 at 1:48 PM, Justin Edelson justinedel...@gmail.com mailto:justinedel...@gmail.com wrote: Maybe I'm too far into the Maven community, but I don't see a problem here. You say: The problem I have arises when app1

  1   2   >