Re: Resolution of embedded dependencies during compilation

2009-04-28 Thread David Leangen
Once again, many thanks! I'll try inlining to see what happens... That worked, and is sufficient for now. ( FYI, this is also another thing the maven-pax-plugin lifecycle helps out with, as it modifies the compilation phase to support compilation against embedded jars - however, this do

Re: Bundle and components lifecycles.

2009-04-28 Thread Clement Escoffier
On 28.04.2009, at 22:39, Luc Dewavrin wrote: Hi, I have a newbie question regarding bundle lifecycle and declarative services lifecycle : are they linked together ? Your DS components are created and activated only if the bundle containing them is ACTIVE (i.e. started). As soon as this

Re: Resolution of embedded dependencies during compilation

2009-04-28 Thread Stuart McCulloch
2009/4/29 David Leangen > > Stuart, > > As always, your reply is very quick, timely, and extremely informative. > Thanks! > > I updated to maven 2.1.0, and this indeed _appears_ to fix the classpath > problem: > > [DEBUG] Classpath: > [/Users/dleangen/bioscene/dev/trunk/domains/lsd/model/impl/tar

Re: Resolution of embedded dependencies during compilation

2009-04-28 Thread David Leangen
Stuart, As always, your reply is very quick, timely, and extremely informative. Thanks! I updated to maven 2.1.0, and this indeed _appears_ to fix the classpath problem: [DEBUG] Classpath: [/Users/dleangen/bioscene/dev/trunk/domains/lsd/ model/impl/target/classes /Users/dleangen/.m2/re

Re: Resolution of embedded dependencies during compilation

2009-04-28 Thread Stuart McCulloch
2009/4/29 David Leangen > > Hi, > > I just updated to maven-bundle-plugin 2.0.0. It appears that there have > been a few changes to the way things compile, and I'm just discovering many > interesting things in my own projects. This is of course a good thing, as > it's bringing out many erroneous

Resolution of embedded dependencies during compilation

2009-04-28 Thread David Leangen
Hi, I just updated to maven-bundle-plugin 2.0.0. It appears that there have been a few changes to the way things compile, and I'm just discovering many interesting things in my own projects. This is of course a good thing, as it's bringing out many erroneous interpretations I made earlie

Re: Bundle and components lifecycles.

2009-04-28 Thread Christopher Armstrong
Hi Unfortunately everything is the other way around. The services in OSGi are not really "instantiated", but "registered". Your bundle needs to be activated, and then it registers the services in the framework. When another bundle requests the services, they need to be published into the

Bundle and components lifecycles.

2009-04-28 Thread Luc Dewavrin
Hi, I have a newbie question regarding bundle lifecycle and declarative services lifecycle : are they linked together ? I would like the services of my bundle to be singletons and my bundle should be activated only when services are instantiated. Is it possible to do that by configuration ? Can a

Re: maven-bundle-plugin embed-dependency for test scope

2009-04-28 Thread Stuart McCulloch
2009/4/23 Steve Schwartz > > Is it possible for "provided" dependencies to be passed as well? > the 2.0.0 bundleplugin can now embed provided dependencies (basically it can see anything that the Maven resolver can see) > I am creating an OSGi bundle, based on an existing jar from a separate >

Re: Axis2 for OSGi for Creating Web Service Interface

2009-04-28 Thread Sagara Gunathunga
Hi , Sometimes ago I have tested Axis2 with Eclipse Equinox successfully , so it's should support to Felix too , WSO2's Carbon [4] is a OSGI based great SOA platform that use AXIS2 as it's web service engine . So if you are familiar with Axis2 you can try out for following links . For any issue

Re: Axis2 for OSGi for Creating Web Service Interface

2009-04-28 Thread dawg
Thanks David. Sounds interesting, I'm not familiar with CXF, so I'll have a look. -- View this message in context: http://www.nabble.com/Axis2-for-OSGi-for-Creating-Web-Service-Interface-tp23278830p23279489.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. -

Re: Axis2 for OSGi for Creating Web Service Interface

2009-04-28 Thread David Bosschaert
Hi, I think that much of what you're looking for is available in the Apache CXF implementation of Distributed OSGi (http://cxf.apache.org/distributed-osgi.html). It dynamically exposes and creates a WSDL for OSGi services that are registered with RFC 119 properties. See here for an example: http:/

Re: Axis2 for OSGi for Creating Web Service Interface

2009-04-28 Thread davidb
Hi, I think that much of what you're looking for is available in the Apache CXF implementation of Distributed OSGi (http://cxf.apache.org/distributed-osgi.html). It dynamically exposes and creates a WSDL for OSGi services that are registered with RFC 119 properties. See here for an example: http:/

Axis2 for OSGi for Creating Web Service Interface

2009-04-28 Thread dawg
Hi, My first question is whether Axis2 is already support in Apache Felix. If so, my a bit more complex question is if it is even possible to do the following in OSGi with axis2. What I'd like to do is dynamically register web service interfaces for services that are loaded in OSGi. To be more sp

PermissionAdmin service does not work with Felix 1.6

2009-04-28 Thread Ulf Dittmer
Hi everyone- I have not so much a question, but a heads-up in case someone else runs into this. I built the framework.security bundle, and it works fine with Felix 1.4. (Well, the PermissionAdmin service does, I haven't tried the ConditionalPermissionAdmin service.) But it fails with Fe

Re: Building Bundle Jar for test jar with maven-bundle-plugin

2009-04-28 Thread Stuart McCulloch
2009/4/28 Kristian Köhler > Thanks! Looks interesting... ;-) > FYI, another option is to use something like Pax-Exam to run your OSGi tests: http://wiki.ops4j.org/display/paxexam/Pax+Exam it also lets you run the same tests on a mixture of different OSGi frameworks Kristian > > 2009/4/28

Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

2009-04-28 Thread Stuart McCulloch
2009/4/28 itripl > > We are using Nexus and I added > http://people.apache.org/repo/m2-snapshot-repository to the repository > list. > But it did not work. After many hours of despair, now I know why. The > Default setting of maven is, NOT to download snapshot-artifacts. You have > to > tell

Re: Building Bundle Jar for test jar with maven-bundle-plugin

2009-04-28 Thread Kristian Köhler
Thanks! Looks interesting... ;-) Kristian 2009/4/28 : >> Is there a good way to do this? > It depends on what you understand by "good". I had to write a plugin that > extends the maven-bundle-plugin only to include the test classes and > dependencies (the maven-bundle-plugin clearly states that

Re: Felix Build Error - Unable to load the mojo org.apache.felix:maven-bundle-plugin:1.4.3:bundle

2009-04-28 Thread itripleeee
We are using Nexus and I added http://people.apache.org/repo/m2-snapshot-repository to the repository list. But it did not work. After many hours of despair, now I know why. The Default setting of maven is, NOT to download snapshot-artifacts. You have to tell maven explicit, that you want to use s

Re: List entries with the bundle protocol

2009-04-28 Thread Triquoit Mathieu
Hi, Thank you very much, I will take a look. In fact, I am migrating an existing application and yes, there was a "Classpath scanner" which automatically loads language files by example. Thank you very much, Mathieu 2009/4/28 Neil Bartlett > Mathieu, > > But where do you "receive" this URL fro

Re: List entries with the bundle protocol

2009-04-28 Thread Neil Bartlett
Mathieu, But where do you "receive" this URL from? It sounds like you have some kind of classpath scanner... is that how you were handling extensibility in your pre-OSGi code? What Stuart is saying (and I strongly agree with) is that in OSGi we have a better way to handle this whole problem, call

Re: List entries with the bundle protocol

2009-04-28 Thread Richard S. Hall
It is not clear to me how you are getting the bundle URL, but you might look into Bundle.getEntryPaths()/Bundle.findEntries() for listing the contents of the bundle's JAR. -> richard On 4/28/09 5:26 AM, Triquoit Mathieu wrote: OK but I receive something like : bundle://140.0:1/org/mtr/resourc

Re: List entries with the bundle protocol

2009-04-28 Thread Triquoit Mathieu
OK but I receive something like : bundle://140.0:1/org/mtr/resources. The package org.mtr.resources contains properties files and I would like to load these files. Is there a URL Converter or something like that ? Thanks, 2009/4/27 Stuart McCulloch > 2009/4/27 Triquoit Mathieu > > > Dear, > >

Antwort: Building Bundle Jar for test jar with maven-bundle-plugin

2009-04-28 Thread Clovis . SERAGIOTTO
> Is there a good way to do this? It depends on what you understand by "good". I had to write a plugin that extends the maven-bundle-plugin only to include the test classes and dependencies (the maven-bundle-plugin clearly states that "test scoped dependencies are not included in the classpath s

Building Bundle Jar for test jar with maven-bundle-plugin

2009-04-28 Thread Kristian Köhler
Hi is there a way to build two bundle artifacts for a project? One for the "normal" classes and one for the "test" classes. Currently maven builds to jars for me (normal-1.0.jar, normal-1.0-tests.jar) and both should be enhanced with OSGi metadata. Is there a good way to do this? Thanks Kristian

AW: Exceptions during bundle plugin

2009-04-28 Thread Lewis, Eric
Ok, thanks for all your help! Best regards, Eric > -Ursprüngliche Nachricht- > Von: Jim Breen [mailto:jbreen.gro...@gmail.com] > Gesendet: Montag, 27. April 2009 23:37 > An: users@felix.apache.org > Betreff: Re: Exceptions during bundle plugin > > You can get rid of the messages by for