<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-28135</id>
	<title>Nabble - Apache Felix - Users</title>
	<updated>2009-11-12T13:39:40Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Apache-Felix---Users-f28135.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Apache-Felix---Users-f28135.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26326962</id>
	<title>Re: Maven-Bundle-Plugin ignores servicefactory-directive</title>
	<published>2009-11-12T13:39:40Z</published>
	<updated>2009-11-12T13:39:40Z</updated>
	<author>
		<name>Guido Spadotto</name>
	</author>
	<content type="html">Mustafa Caylak wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This is no Customer Service, so you'll have to do some homework.
&lt;br&gt;&amp;gt;&amp;gt; Read [1], slide 18 and following, read [2], slide 19 for an example 
&lt;br&gt;&amp;gt;&amp;gt; of annotated class.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [1]: &lt;a href=&quot;http://www.slideshare.net/cziegeler/maven-scr-plugin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.slideshare.net/cziegeler/maven-scr-plugin&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [2]: &lt;a href=&quot;http://www.slideshare.net/bdelacretaz/tales-from-the-osgi-trenches&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.slideshare.net/bdelacretaz/tales-from-the-osgi-trenches&lt;/a&gt;&lt;br&gt;&amp;gt; Yes, you're right. And I hate that I have to ask you guys for help. 
&lt;br&gt;&amp;gt; Just a minute ago I argued with someone because he didn't want to do 
&lt;br&gt;&amp;gt; his homework.
&lt;br&gt;&amp;gt; I really searched for tutorials or something alike but I couldn't find 
&lt;br&gt;&amp;gt; anything.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The two sites you send me - I've never seen them before.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Where I do get these sites?
&lt;/div&gt;Here:
&lt;br&gt;&lt;a href=&quot;http://tinyurl.com/y9vjg53&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tinyurl.com/y9vjg53&lt;/a&gt;&lt;br&gt;&lt;br&gt;:)
&lt;br&gt;&lt;br&gt;Guido
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326962&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326962&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maven-Bundle-Plugin-ignores-servicefactory-directive-tp26028226p26326962.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26326850</id>
	<title>Re: Maven-Bundle-Plugin ignores servicefactory-directive</title>
	<published>2009-11-12T13:34:08Z</published>
	<updated>2009-11-12T13:34:08Z</updated>
	<author>
		<name>Mustafa Caylak</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; This is no Customer Service, so you'll have to do some homework.
&lt;br&gt;&amp;gt; Read [1], slide 18 and following, read [2], slide 19 for an example of 
&lt;br&gt;&amp;gt; annotated class.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [1]: &lt;a href=&quot;http://www.slideshare.net/cziegeler/maven-scr-plugin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.slideshare.net/cziegeler/maven-scr-plugin&lt;/a&gt;&lt;br&gt;&amp;gt; [2]: &lt;a href=&quot;http://www.slideshare.net/bdelacretaz/tales-from-the-osgi-trenches&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.slideshare.net/bdelacretaz/tales-from-the-osgi-trenches&lt;/a&gt;&lt;br&gt;Yes, you're right. And I hate that I have to ask you guys for help. Just 
&lt;br&gt;a minute ago I argued with someone because he didn't want to do his 
&lt;br&gt;homework.
&lt;br&gt;I really searched for tutorials or something alike but I couldn't find 
&lt;br&gt;anything.
&lt;br&gt;&lt;br&gt;The two sites you send me - I've never seen them before.
&lt;br&gt;&lt;br&gt;Where I do get these sites?
&lt;br&gt;&lt;br&gt;&lt;br&gt;I think it won't take any longer until I let you alone :)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;Mustafa
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326850&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326850&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maven-Bundle-Plugin-ignores-servicefactory-directive-tp26028226p26326850.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26326638</id>
	<title>Re: Maven-Bundle-Plugin ignores servicefactory-directive</title>
	<published>2009-11-12T13:20:17Z</published>
	<updated>2009-11-12T13:20:17Z</updated>
	<author>
		<name>Guido Spadotto</name>
	</author>
	<content type="html">Mustafa Caylak wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I know that I can set the name of the xml-file. I was just too lazy :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The problem could be that there is no a directory like 
&lt;br&gt;&amp;gt; /target/scr-plugin-generated/OSGI-INF.
&lt;br&gt;&amp;gt; Does it mean that no descriptor.xml is generated?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm a bit confused. Where do I use the annotations? Aren't they the 
&lt;br&gt;&amp;gt; same annotations that you use when you define a Declarative Service 
&lt;br&gt;&amp;gt; Component?
&lt;br&gt;&amp;gt; Where do the scr-plugin know what it has to generate?
&lt;/div&gt;You embed JAVA annotations in your Component implementation source code.
&lt;br&gt;When you execute Maven, the scr plugin will inspect the annotated 
&lt;br&gt;classes and generate
&lt;br&gt;the corresponding XML Component Descriptor file for you.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I know I'm annoying but you have to bear it, please ^^
&lt;br&gt;This is no Customer Service, so you'll have to do some homework.
&lt;br&gt;Read [1], slide 18 and following, read [2], slide 19 for an example of 
&lt;br&gt;annotated class.
&lt;br&gt;&lt;br&gt;[1]: &lt;a href=&quot;http://www.slideshare.net/cziegeler/maven-scr-plugin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.slideshare.net/cziegeler/maven-scr-plugin&lt;/a&gt;&lt;br&gt;[2]: &lt;a href=&quot;http://www.slideshare.net/bdelacretaz/tales-from-the-osgi-trenches&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.slideshare.net/bdelacretaz/tales-from-the-osgi-trenches&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&amp;nbsp;Guido
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326638&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326638&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maven-Bundle-Plugin-ignores-servicefactory-directive-tp26028226p26326638.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26326239</id>
	<title>Re: Maven-Bundle-Plugin ignores servicefactory-directive</title>
	<published>2009-11-12T12:55:43Z</published>
	<updated>2009-11-12T12:55:43Z</updated>
	<author>
		<name>Mustafa Caylak</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I know that I can set the name of the xml-file. I was just too lazy :)
&lt;br&gt;&lt;br&gt;The problem could be that there is no a directory like 
&lt;br&gt;/target/scr-plugin-generated/OSGI-INF.
&lt;br&gt;Does it mean that no descriptor.xml is generated?
&lt;br&gt;&lt;br&gt;I'm a bit confuesed. Where do I use the annotations? Aren't they the 
&lt;br&gt;same annotations that you use when you define a Declarative Service 
&lt;br&gt;Component?
&lt;br&gt;Where do the scr-plugin know what it has to generate?
&lt;br&gt;&lt;br&gt;I know I'm annoying but you have to bear it, please ^^
&lt;br&gt;&lt;br&gt;I think I hate maven more every day... :P
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Mustafa
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Guido Spadotto wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Mustafa Caylak wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello Guido,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I've used your suggestion, but the only output I got is:
&lt;br&gt;&amp;gt;&amp;gt; [ERROR] Error building bundle 
&lt;br&gt;&amp;gt;&amp;gt; de.offis.utils.configSC:configSC:bundle:1.0-SNAPSHOT : 
&lt;br&gt;&amp;gt;&amp;gt; Service-Component entry can not be located in JAR: OSGI-INF/Locator.xml
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Of course I renamed my xml-file to Locator.xml.
&lt;br&gt;&amp;gt;&amp;gt; What do your Locator.xml look like?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Mustafa,
&lt;br&gt;&amp;gt; first, you can name the *automatically* generated component descriptor 
&lt;br&gt;&amp;gt; as you like.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've named it Locator.xml because that made sense for the component I 
&lt;br&gt;&amp;gt; developed,
&lt;br&gt;&amp;gt; but you can set the value of the *component.descriptor.name *property 
&lt;br&gt;&amp;gt; to anything
&lt;br&gt;&amp;gt; you like.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That said, could you take a look inside the 
&lt;br&gt;&amp;gt; \target\scr-plugin-generated\OSGI-INF
&lt;br&gt;&amp;gt; directory of your project? It should contain the generated component 
&lt;br&gt;&amp;gt; descriptor file,
&lt;br&gt;&amp;gt; whose name will be the value of the *component.descriptor.name 
&lt;br&gt;&amp;gt; *property, if specified.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If it's there, then the scr plugin worked, and that's all it's 
&lt;br&gt;&amp;gt; supposed to do (according to [1]).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In order for the maven-bundle-plugin to insert that descriptor file in 
&lt;br&gt;&amp;gt; the bundle,
&lt;br&gt;&amp;gt; you will have to add this directive within its configuration 
&lt;br&gt;&amp;gt; instructions:
&lt;br&gt;&amp;gt; &amp;lt;Service-Component&amp;gt;OSGI-INF/${component.descriptor.name}&amp;lt;/Service-Component&amp;gt; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry to ask this, but have you added the relevant annotations inside
&lt;br&gt;&amp;gt; the component implementation?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It might also be that you've experienced [2], but I can't say for sure 
&lt;br&gt;&amp;gt; with the amount
&lt;br&gt;&amp;gt; of information you provided so far.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Guido
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [1]: &lt;a href=&quot;http://felix.apache.org/site/apache-felix-maven-scr-plugin.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-maven-scr-plugin.html&lt;/a&gt;&lt;br&gt;&amp;gt; [2]: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/-jira--Created:-%28FELIX-1847%29-Error-with-duplicates-when-using-maven-bundle-plugin-2.0.1-and-maven-scr-plugin-1.4-td26216540.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/-jira--Created:-%28FELIX-1847%29-Error-with-duplicates-when-using-maven-bundle-plugin-2.0.1-and-maven-scr-plugin-1.4-td26216540.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Guido Spadotto wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Why don't you just use the maven-scr-plugin and its annotations?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I've found it very handy to generate the component descriptor.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This is a snippet of a pom of mine (notice there's no bnd file 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;tampering&amp;quot;):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;project xmlns=&amp;quot;&lt;a href=&quot;http://maven.apache.org/POM/4.0.0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/POM/4.0.0&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;xsi:schemaLocation=&amp;quot;&lt;a href=&quot;http://maven.apache.org/POM/4.0.0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/POM/4.0.0&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://maven.apache.org/maven-v4_0_0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/maven-v4_0_0.xsd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;properties&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;*component.descriptor.name*&amp;gt;_WhateverYouLike.xml_&amp;lt;/component.descriptor.name&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/properties&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependencies&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;build&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugins&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;maven-bundle-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;extensions&amp;gt;true&amp;lt;/extensions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;instructions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Bundle-Name&amp;gt;${project.name}&amp;lt;/Bundle-Name&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;Export-Package&amp;gt;org.something.api&amp;lt;/Export-Package&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;Service-Component&amp;gt;OSGI-INF/${*component.descriptor.name*}&amp;lt;/Service-Component&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/instructions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugin&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;maven-scr-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;1.0.8&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;finalName&amp;gt;${*component.descriptor.name*}&amp;lt;/finalName&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;executions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;execution&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;id&amp;gt;generate-scr-scrdescriptor&amp;lt;/id&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;goals&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;goal&amp;gt;scr&amp;lt;/goal&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/goals&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/execution&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/executions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugin&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugins&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/build&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/project&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Guido
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326239&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326239&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326239&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326239&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326239&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26326239&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maven-Bundle-Plugin-ignores-servicefactory-directive-tp26028226p26326239.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26325718</id>
	<title>Re: Maven-Bundle-Plugin ignores servicefactory-directive</title>
	<published>2009-11-12T12:22:53Z</published>
	<updated>2009-11-12T12:22:53Z</updated>
	<author>
		<name>Guido Spadotto</name>
	</author>
	<content type="html">Mustafa Caylak wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Guido,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've used your suggestion, but the only output I got is:
&lt;br&gt;&amp;gt; [ERROR] Error building bundle 
&lt;br&gt;&amp;gt; de.offis.utils.configSC:configSC:bundle:1.0-SNAPSHOT : 
&lt;br&gt;&amp;gt; Service-Component entry can not be located in JAR: OSGI-INF/Locator.xml
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Of course I renamed my xml-file to Locator.xml.
&lt;br&gt;&amp;gt; What do your Locator.xml look like?
&lt;br&gt;&amp;gt;
&lt;/div&gt;Hi Mustafa,
&lt;br&gt;&amp;nbsp;first, you can name the *automatically* generated component descriptor 
&lt;br&gt;as you like.
&lt;br&gt;&lt;br&gt;I've named it Locator.xml because that made sense for the component I 
&lt;br&gt;developed,
&lt;br&gt;but you can set the value of the *component.descriptor.name *property to 
&lt;br&gt;anything
&lt;br&gt;you like.
&lt;br&gt;&lt;br&gt;That said, could you take a look inside the 
&lt;br&gt;\target\scr-plugin-generated\OSGI-INF
&lt;br&gt;directory of your project? It should contain the generated component 
&lt;br&gt;descriptor file,
&lt;br&gt;whose name will be the value of the *component.descriptor.name 
&lt;br&gt;*property, if specified.
&lt;br&gt;&lt;br&gt;If it's there, then the scr plugin worked, and that's all it's supposed 
&lt;br&gt;to do (according to [1]).
&lt;br&gt;&lt;br&gt;In order for the maven-bundle-plugin to insert that descriptor file in 
&lt;br&gt;the bundle,
&lt;br&gt;you will have to add this directive within its configuration instructions:
&lt;br&gt;&amp;lt;Service-Component&amp;gt;OSGI-INF/${component.descriptor.name}&amp;lt;/Service-Component&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sorry to ask this, but have you added the relevant annotations inside
&lt;br&gt;the component implementation?
&lt;br&gt;&lt;br&gt;It might also be that you've experienced [2], but I can't say for sure 
&lt;br&gt;with the amount
&lt;br&gt;of information you provided so far.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&amp;nbsp;Guido
&lt;br&gt;&lt;br&gt;[1]: &lt;a href=&quot;http://felix.apache.org/site/apache-felix-maven-scr-plugin.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-maven-scr-plugin.html&lt;/a&gt;&lt;br&gt;[2]: 
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/-jira--Created:-%28FELIX-1847%29-Error-with-duplicates-when-using-maven-bundle-plugin-2.0.1-and-maven-scr-plugin-1.4-td26216540.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/-jira--Created:-%28FELIX-1847%29-Error-with-duplicates-when-using-maven-bundle-plugin-2.0.1-and-maven-scr-plugin-1.4-td26216540.html&lt;/a&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Guido Spadotto wrote:
&lt;br&gt;&amp;gt;&amp;gt; Why don't you just use the maven-scr-plugin and its annotations?
&lt;br&gt;&amp;gt;&amp;gt; I've found it very handy to generate the component descriptor.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This is a snippet of a pom of mine (notice there's no bnd file 
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;tampering&amp;quot;):
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;project xmlns=&amp;quot;&lt;a href=&quot;http://maven.apache.org/POM/4.0.0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/POM/4.0.0&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt;&amp;gt; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;xsi:schemaLocation=&amp;quot;&lt;a href=&quot;http://maven.apache.org/POM/4.0.0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/POM/4.0.0&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://maven.apache.org/maven-v4_0_0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/maven-v4_0_0.xsd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;properties&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;*component.descriptor.name*&amp;gt;_WhateverYouLike.xml_&amp;lt;/component.descriptor.name&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/properties&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/dependencies&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;build&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugins&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;maven-bundle-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;extensions&amp;gt;true&amp;lt;/extensions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;instructions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Bundle-Name&amp;gt;${project.name}&amp;lt;/Bundle-Name&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;Export-Package&amp;gt;org.something.api&amp;lt;/Export-Package&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;Service-Component&amp;gt;OSGI-INF/${*component.descriptor.name*}&amp;lt;/Service-Component&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/instructions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugin&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;maven-scr-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;1.0.8&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;finalName&amp;gt;${*component.descriptor.name*}&amp;lt;/finalName&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;executions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;execution&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;id&amp;gt;generate-scr-scrdescriptor&amp;lt;/id&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;goals&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;goal&amp;gt;scr&amp;lt;/goal&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/goals&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/execution&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/executions&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugin&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugins&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/build&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/project&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; Guido
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26325718&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26325718&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26325718&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26325718&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maven-Bundle-Plugin-ignores-servicefactory-directive-tp26028226p26325718.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26324508</id>
	<title>Re: Maven-Bundle-Plugin ignores servicefactory-directive</title>
	<published>2009-11-12T11:06:00Z</published>
	<updated>2009-11-12T11:06:00Z</updated>
	<author>
		<name>Mustafa Caylak</name>
	</author>
	<content type="html">Hello Guido,
&lt;br&gt;&lt;br&gt;I've used your suggestion, but the only output I got is:
&lt;br&gt;[ERROR] Error building bundle 
&lt;br&gt;de.offis.utils.configSC:configSC:bundle:1.0-SNAPSHOT : Service-Component 
&lt;br&gt;entry can not be located in JAR: OSGI-INF/Locator.xml
&lt;br&gt;&lt;br&gt;Of course I renamed my xml-file to Locator.xml.
&lt;br&gt;What do your Locator.xml look like?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Guido Spadotto wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Why don't you just use the maven-scr-plugin and its annotations?
&lt;br&gt;&amp;gt; I've found it very handy to generate the component descriptor.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is a snippet of a pom of mine (notice there's no bnd file 
&lt;br&gt;&amp;gt; &amp;quot;tampering&amp;quot;):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;project xmlns=&amp;quot;&lt;a href=&quot;http://maven.apache.org/POM/4.0.0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/POM/4.0.0&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;xsi:schemaLocation=&amp;quot;&lt;a href=&quot;http://maven.apache.org/POM/4.0.0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/POM/4.0.0&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://maven.apache.org/maven-v4_0_0.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://maven.apache.org/maven-v4_0_0.xsd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;properties&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;lt;component.descriptor.name&amp;gt;Locator.xml&amp;lt;/component.descriptor.name&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/properties&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;!-- List dependencies here --&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;dependencies&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;org.apache.felix.scr.annotations&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;0.9.0&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/dependencies&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;build&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugins&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;maven-bundle-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;extensions&amp;gt;true&amp;lt;/extensions&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;instructions&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Bundle-Name&amp;gt;${project.name}&amp;lt;/Bundle-Name&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Export-Package&amp;gt;org.something.api&amp;lt;/Export-Package&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;lt;Service-Component&amp;gt;OSGI-INF/${component.descriptor.name}&amp;lt;/Service-Component&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/instructions&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugin&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;plugin&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;maven-scr-plugin&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;1.0.8&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;configuration&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;finalName&amp;gt;${component.descriptor.name}&amp;lt;/finalName&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;executions&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;execution&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;id&amp;gt;generate-scr-scrdescriptor&amp;lt;/id&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;goals&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;goal&amp;gt;scr&amp;lt;/goal&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/goals&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/execution&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/executions&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugin&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/plugins&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;/build&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/project&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Guido
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324508&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324508&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324508&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324508&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maven-Bundle-Plugin-ignores-servicefactory-directive-tp26028226p26324508.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26322942</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-12T09:35:49Z</published>
	<updated>2009-11-12T09:35:49Z</updated>
	<author>
		<name>Jeremias Maerki-2</name>
	</author>
	<content type="html">Good point. This may get unsuitable for the user list. I think we could
&lt;br&gt;switch to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322942&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;, if nobody objects (I've just subscribed).
&lt;br&gt;I'm sure this is not off-topic for that list, especially if maybe
&lt;br&gt;something useful will result for Felix. If you have a better suggestion,
&lt;br&gt;I'm all ears.
&lt;br&gt;&lt;br&gt;On 12.11.2009 15:23:11 lukewpatterson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jeremias Maerki-2 wrote:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Looks like we really have to find one good solution for everyone. 
&lt;br&gt;&amp;gt; &amp;gt; Otherwise, everyone will continue to find a solution for themselves...
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Agreed. &amp;nbsp;Where is the best place to continue this discussion? &amp;nbsp;I want to
&lt;br&gt;&amp;gt; make sure the discussion is archived and open, but I don't want to clog this
&lt;br&gt;&amp;gt; mailing list. &amp;nbsp;At least the subject line should probably be changed.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thoughts?
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26319530.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26319530.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Apache Felix - Users mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Jeremias Maerki
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322942&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26322942&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26322942.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26319530</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-12T06:23:10Z</published>
	<updated>2009-11-12T06:23:10Z</updated>
	<author>
		<name>lukewpatterson</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Jeremias Maerki-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Looks like we really have to find one good solution for everyone. &amp;nbsp;Otherwise, everyone will continue to find a solution for themselves...
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Agreed. &amp;nbsp;Where is the best place to continue this discussion? &amp;nbsp;I want to make sure the discussion is archived and open, but I don't want to clog this mailing list. &amp;nbsp;At least the subject line should probably be changed.
&lt;br&gt;&lt;br&gt;Thoughts?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26319530.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26315879</id>
	<title>Felix bundle repository does not consider bundle relationships</title>
	<published>2009-11-12T03:58:49Z</published>
	<updated>2009-11-12T03:58:49Z</updated>
	<author>
		<name>Hehe</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I have two bundles, bundle1 and bundle2. Both of them depends on bundle3. 
&lt;br&gt;&lt;br&gt;The bundle bundle1 does not specify the version of bundle3, while the bundle2 specifies to need bundle3 with version 1.0.
&lt;br&gt;&lt;br&gt;In my repository, I have two versions of bundle3, version 1.0 and version 2.0.
&lt;br&gt;&lt;br&gt;I put them through to felix obr to resolve. The resolver returned the following result:
&lt;br&gt;bundle1, bundle2, bundle3;version=1.0 and bundle3;version2.0
&lt;br&gt;&lt;br&gt;&lt;br&gt;However, my expectation is that the resolver should just return the following:
&lt;br&gt;bundle1, bundle2, bundle3;version=1.0 
&lt;br&gt;&lt;br&gt;It is no reason to pull in two versions of the bundle3
&lt;br&gt;&lt;br&gt;It clearly shows that Felix OBR does NOT consider the bundle relations. It should not pull in two versions of the same bundle.
&lt;br&gt;&lt;br&gt;Please can you let me know whether Felix OBR copes with the scenario I described above.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Emily</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Felix-bundle-repository-does-not-consider-bundle-relationships-tp26315879p26315879.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26315671</id>
	<title>Re: javax.xml.bind classes (JDK 1.6) - Apache Felix Karaf 1.0.0 -  Apache CXF 2.2</title>
	<published>2009-11-12T01:21:25Z</published>
	<updated>2009-11-12T01:21:25Z</updated>
	<author>
		<name>gnodet</name>
	</author>
	<content type="html">The reason is that the system bundle exports (or does not export) the
&lt;br&gt;pacakge, depending if you're on jdk 1.5 or 1.6.
&lt;br&gt;This is configured in the etc/config.properties file, and I would
&lt;br&gt;think the best way would be to simply remove this package from the
&lt;br&gt;list and do not let the system bundle export this package.
&lt;br&gt;&lt;br&gt;On Wed, Nov 11, 2009 at 09:21, Charles Moulliard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315671&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cmoulliard@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I would like to know if we have to export (or not) the javax.xml.bind*
&lt;br&gt;&amp;gt; packages defined in the file config.properties file of Apache Felix
&lt;br&gt;&amp;gt; 2.2 when I would like to use Apache CXF. By default, they are exported
&lt;br&gt;&amp;gt; but I have an unresolved constraint issue when deploying bundles
&lt;br&gt;&amp;gt; required fro CXF 2.2 and especially for the following bundle :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This bundle requires the packages
&lt;br&gt;&amp;gt; javax.xml.bind;version=&amp;quot;2.1&amp;quot;,javax.xml.bind.annotation;ver
&lt;br&gt;&amp;gt;  sion=&amp;quot;2.1&amp;quot;,javax.xml.bind.annotation.adapters;version=&amp;quot;2.1&amp;quot;,javax.xml
&lt;br&gt;&amp;gt;  .bind.attachment;version=&amp;quot;2.1&amp;quot;,javax.xml.bind.helpers;version=&amp;quot;2.1&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I see using the command exports that these packages are exported but
&lt;br&gt;&amp;gt; though the version 0.0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Remark : in ServiceMix 4.xxx, they are not exported. In this case,
&lt;br&gt;&amp;gt; which jar file export those required packages ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Charles Moulliard
&lt;br&gt;&amp;gt; Senior Enterprise Architect
&lt;br&gt;&amp;gt; Apache Camel Committer
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *****************************
&lt;br&gt;&amp;gt; blog : &lt;a href=&quot;http://cmoulliard.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cmoulliard.blogspot.com&lt;/a&gt;&lt;br&gt;&amp;gt; twitter : &lt;a href=&quot;http://twitter.com/cmoulliard&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/cmoulliard&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315671&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315671&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Cheers,
&lt;br&gt;Guillaume Nodet
&lt;br&gt;------------------------
&lt;br&gt;Blog: &lt;a href=&quot;http://gnodet.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gnodet.blogspot.com/&lt;/a&gt;&lt;br&gt;------------------------
&lt;br&gt;Open Source SOA
&lt;br&gt;&lt;a href=&quot;http://fusesource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fusesource.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315671&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315671&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/javax.xml.bind-classes-%28JDK-1.6%29---Apache-Felix-Karaf-1.0.0---Apache--CXF-2.2-tp26297612p26315671.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26315211</id>
	<title>Re: Launching Felix 2.0</title>
	<published>2009-11-12T00:40:54Z</published>
	<updated>2009-11-12T00:40:54Z</updated>
	<author>
		<name>Karl Pauls</name>
	</author>
	<content type="html">Is it possible that you forgot to remove felix 2.0.0 from the classpath?
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;&lt;br&gt;Karl
&lt;br&gt;&lt;br&gt;On Thu, Nov 12, 2009 at 3:01 AM, Nikita Sawant &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikita.Sawant@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now I am using Framework 2.0.2, I get this exception:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError:
&lt;br&gt;&amp;gt; org.osgi.vendor.framework property not set)
&lt;br&gt;&amp;gt; java.lang.NoClassDefFoundError: org.osgi.vendor.framework property not set
&lt;br&gt;&amp;gt;       at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
&lt;br&gt;&amp;gt;       at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;gt;       at org.osgi.framework.FrameworkUtil.&amp;lt;clinit&amp;gt;(FrameworkUtil.java:56)
&lt;br&gt;&amp;gt;       at
&lt;br&gt;&amp;gt; org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I saw a discussion elsewhere, where the cause for the above was having the
&lt;br&gt;&amp;gt; osgi.core in the classpath. I have removed osgi.core from my classpath, is
&lt;br&gt;&amp;gt; there any other cause for this error?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using maven 2.0.8
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 11/11/09 20:15, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks for the quick reply.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ideally I would like to not install the osgi core api into the framework,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I had to cause the framework was not exporting it.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Still, if a bundle requires a version of org.osgi.framework that the
&lt;br&gt;&amp;gt;&amp;gt; framework cannot satisfy, then installing it separately will only cause
&lt;br&gt;&amp;gt;&amp;gt; problems like these.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Using the latest Felix runtime should fix this issue, right?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2.0.2 should work...just download main 2.0.2 from the download page and
&lt;br&gt;&amp;gt;&amp;gt; save it over your felix.jar file.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/11/09 20:00, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I followed the instructions to launch Felix in the link below and am
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; able to launch Felix successfully.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Now, I can start and stop the felix instance  without any problem. When
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I install a bundle which has a BundleActivator, which is started by my host
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; application I cannot activate the bundle, due to a ClassCastException:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;       at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Note that I also have the org.osgi.core bundle installed in the felix
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; runtime ( otherwise the bundle I am trying to activate above gives an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; unresolved constraint error for the org.osgi.framework package ( version
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;=1.5 ).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There seem to be two different definitions of BundleActivator. How do I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; resolve this issue?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; You should not be installing the OSGi core API into the framework, this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; will generally always be a bad idea.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There was a bug in Framework 2.0.0 that we were not exporting the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; version of the OSGi packages with the correct version...that should fix your
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; issue.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; However, you might want to make sure your bundle actually requires OSGi
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; R4.2 API, because it is best to specify the lowest possible version you
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; need.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The osgi core I am using is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.osgi
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.osgi.core
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 4.2.0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There is a link to our wiki off the &amp;quot;documents&amp;quot; page of the web
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; site...the link to the actual document is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  &lt;a href=&quot;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am not sure why are static site is not syncing with this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; page...anyone else have any ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 21:13, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Can you provide me the link to the wiki, I could not find it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For some reason our wiki is not correctly being exported to create
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; our static site, so go directly to the wiki for now since it is up to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; date...unfortunately, the wiki appears to be down right now for me, so I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; can't give you the link.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 0:37, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Where can I find documentation on launching Felix 2.0, similar to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The AutoActivator class has been replaced with AutoProcessor, it is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; not clear to me how exactly this class is to be configured and used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any information you provide would help.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Karl Pauls
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karlpauls@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26315211&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Launching-Felix-2.0-tp25777734p26315211.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26314521</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-11T23:25:57Z</published>
	<updated>2009-11-11T23:25:57Z</updated>
	<author>
		<name>Jeremias Maerki-2</name>
	</author>
	<content type="html">On 11.11.2009 16:37:31 lukewpatterson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jeremias Maerki-2 wrote:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On 10.11.2009 18:26:37 lukewpatterson wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; In my activator, I'm bundletracking looking for /META-INF/services
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; folders. 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I wrap around the service-providing bundles with a custom ClassLoader and
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; then register them with my API's service factory.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; This approach seems to work fine except when the /META-INF/services are
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; provided exclusively from the Bundle-ClassPath entries. &amp;nbsp;i.e. doesn't
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; work
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; when no /META-INF/services folder on root, but embedded jars on the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Bundle-ClassPath have the folder
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Is Bundle.findEntries(...) [1] supposed to look on the Bundle-Classpath?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Are you trying to solve the same problem as I've done lately?
&lt;br&gt;&amp;gt; &amp;gt; See: &lt;a href=&quot;http://www.jeremias-maerki.ch/development/osgi/jar-services.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jeremias-maerki.ch/development/osgi/jar-services.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; Well, I didn't specifically look into the Bundle-Classpath issue in this
&lt;br&gt;&amp;gt; &amp;gt; context. I've turned the META-INF/services carrying JARs into full OSGi
&lt;br&gt;&amp;gt; &amp;gt; bundles.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes Jeremias, I think what you've done is very close to what I'm looking
&lt;br&gt;&amp;gt; for. &amp;nbsp;I think the restlet team is doing something kinda like this too [1].
&lt;/div&gt;&lt;br&gt;Looks like we really have to find one good solution for everyone.
&lt;br&gt;Otherwise, everyone will continue to find a solution for themselves and
&lt;br&gt;we end up with dozens of extenders which scan lots of bundles. And that
&lt;br&gt;is a performance killer (see below).
&lt;br&gt;&lt;br&gt;&amp;gt; I'm working with other teams which use jar SPI (they are kind enough to make
&lt;br&gt;&amp;gt; their stuff bundles, but don't care about OSGi beyond that point), and I
&lt;br&gt;&amp;gt; want a generic way of loading impls. &amp;nbsp;The dynamism obviously wouldn't be
&lt;br&gt;&amp;gt; there, so I was thinking that the appropriate level of bundle state required
&lt;br&gt;&amp;gt; would merely be INSTALLED.
&lt;br&gt;&lt;br&gt;But doesn't INSTALLED mean that the dependencies are not RESOLVED, yet?
&lt;br&gt;So instantiating plug-ins might actually cause ClassNotFoundExceptions.
&lt;br&gt;Especially for debugging, I find it useful, to stop a bundle and thereby
&lt;br&gt;making the plug-ins in that bundle unavailable. That's why I require
&lt;br&gt;the ACTIVE state to make the plug-ins available.
&lt;br&gt;&lt;br&gt;&amp;gt; I started reading through your code and documentation. &amp;nbsp;I was wondering if
&lt;br&gt;&amp;gt; it handles all the scenarios where a bundle can be updated, installed,
&lt;br&gt;&amp;gt; uninstalled.
&lt;br&gt;&lt;br&gt;That was the intention. But I don't have much long-term experience, yet,
&lt;br&gt;but so far it seems to work just fine.
&lt;br&gt;&lt;br&gt;&amp;gt; I was hoping to accomplish this generic lookup without requiring a special
&lt;br&gt;&amp;gt; manifest header, but I see how that introduces all sorts of complexities for
&lt;br&gt;&amp;gt; the implementation (even with BundleTracker and PackageAdmin).
&lt;br&gt;&lt;br&gt;I've added an option (system property) to work without the manifest
&lt;br&gt;header but I've added the header because I've once done a profiling
&lt;br&gt;session of the service locator (implemented as an extender) found in
&lt;br&gt;ServiceMix4's spec bundles. The results:
&lt;br&gt;&lt;a href=&quot;http://www.mail-archive.com/users@servicemix.apache.org/msg09270.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mail-archive.com/users@.../msg09270.html&lt;/a&gt;&lt;br&gt;With the header I can avoid scanning the bundles that don't have any JAR
&lt;br&gt;services. Since JARs have to be made OSGi-compatible anyway, adding
&lt;br&gt;another header shouldn't be any trouble, I think.
&lt;br&gt;&lt;br&gt;&amp;gt; [1] &lt;a href=&quot;http://n2.nabble.com/OSGi-vs-Service-Provider-patterns-td2478338.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://n2.nabble.com/OSGi-vs-Service-Provider-patterns-td2478338.html&lt;/a&gt;&lt;br&gt;&amp;gt; and
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://restlet.tigris.org/source/browse/restlet/trunk/modules/org.restlet/src/org/restlet/engine/internal/Activator.java?view=markup&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://restlet.tigris.org/source/browse/restlet/trunk/modules/org.restlet/src/org/restlet/engine/internal/Activator.java?view=markup&lt;/a&gt;&lt;br&gt;&amp;gt; and 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26302990.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26302990.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Apache Felix - Users mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Jeremias Maerki
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26314521&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26314521&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26314521.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26312277</id>
	<title>Re: Launching Felix 2.0</title>
	<published>2009-11-11T18:10:01Z</published>
	<updated>2009-11-11T18:10:01Z</updated>
	<author>
		<name>Richard S. Hall</name>
	</author>
	<content type="html">On 11/11/09 21:01, Nikita Sawant wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now I am using Framework 2.0.2, I get this exception:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError: 
&lt;br&gt;&amp;gt; org.osgi.vendor.framework property not set)
&lt;br&gt;&amp;gt; java.lang.NoClassDefFoundError: org.osgi.vendor.framework property not 
&lt;br&gt;&amp;gt; set
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt; org.osgi.framework.FrameworkUtil.&amp;lt;clinit&amp;gt;(FrameworkUtil.java:56)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt; org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102) 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I saw a discussion elsewhere, where the cause for the above was having 
&lt;br&gt;&amp;gt; the osgi.core in the classpath. I have removed osgi.core from my 
&lt;br&gt;&amp;gt; classpath, is there any other cause for this error?
&lt;/div&gt;&lt;br&gt;I am not sure what's up. Seems odd that it worked with 2.0.0 and not 
&lt;br&gt;with 2.0.2...are you sure you did everything the same way?
&lt;br&gt;&lt;br&gt;Try to start it the normal way with &amp;quot;java -jar bin/felix.jar&amp;quot;...
&lt;br&gt;&lt;br&gt;-&amp;gt; richard
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using maven 2.0.8
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt; On 11/11/09 20:15, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks for the quick reply.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ideally I would like to not install the osgi core api into the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; framework, I had to cause the framework was not exporting it.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Still, if a bundle requires a version of org.osgi.framework that the 
&lt;br&gt;&amp;gt;&amp;gt; framework cannot satisfy, then installing it separately will only 
&lt;br&gt;&amp;gt;&amp;gt; cause problems like these.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Using the latest Felix runtime should fix this issue, right?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2.0.2 should work...just download main 2.0.2 from the download page 
&lt;br&gt;&amp;gt;&amp;gt; and save it over your felix.jar file.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/11/09 20:00, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I followed the instructions to launch Felix in the link below and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; am able to launch Felix successfully.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Now, I can start and stop the felix instance &amp;nbsp;without any problem. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; When I install a bundle which has a BundleActivator, which is 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; started by my host application I cannot activate the bundle, due 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to a ClassCastException:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Note that I also have the org.osgi.core bundle installed in the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; felix runtime ( otherwise the bundle I am trying to activate above 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; gives an unresolved constraint error for the org.osgi.framework 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; package ( version &amp;gt;=1.5 ).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There seem to be two different definitions of BundleActivator. How 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; do I resolve this issue?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; You should not be installing the OSGi core API into the framework, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this will generally always be a bad idea.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There was a bug in Framework 2.0.0 that we were not exporting the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; version of the OSGi packages with the correct version...that should 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; fix your issue.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; However, you might want to make sure your bundle actually requires 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; OSGi R4.2 API, because it is best to specify the lowest possible 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; version you need.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The osgi core I am using is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.osgi
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.osgi.core
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 4.2.0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There is a link to our wiki off the &amp;quot;documents&amp;quot; page of the web 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; site...the link to the actual document is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am not sure why are static site is not syncing with this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; page...anyone else have any ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 21:13, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Can you provide me the link to the wiki, I could not find it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For some reason our wiki is not correctly being exported to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; create our static site, so go directly to the wiki for now 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; since it is up to date...unfortunately, the wiki appears to be 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; down right now for me, so I can't give you the link.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 0:37, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Where can I find documentation on launching Felix 2.0, similar 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&lt;/a&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The AutoActivator class has been replaced with AutoProcessor, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it is not clear to me how exactly this class is to be 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; configured and used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any information you provide would help.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312277&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Launching-Felix-2.0-tp25777734p26312277.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26312207</id>
	<title>Re: Launching Felix 2.0</title>
	<published>2009-11-11T18:01:24Z</published>
	<updated>2009-11-11T18:01:24Z</updated>
	<author>
		<name>Nikita Sawant</name>
	</author>
	<content type="html">Hi Richard,
&lt;br&gt;&lt;br&gt;Now I am using Framework 2.0.2, I get this exception:
&lt;br&gt;&lt;br&gt;ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError: 
&lt;br&gt;org.osgi.vendor.framework property not set)
&lt;br&gt;java.lang.NoClassDefFoundError: org.osgi.vendor.framework property not set
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.osgi.framework.FrameworkUtil.&amp;lt;clinit&amp;gt;(FrameworkUtil.java:56)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)
&lt;br&gt;&lt;br&gt;&lt;br&gt;I saw a discussion elsewhere, where the cause for the above was having 
&lt;br&gt;the osgi.core in the classpath. I have removed osgi.core from my 
&lt;br&gt;classpath, is there any other cause for this error?
&lt;br&gt;&lt;br&gt;I am using maven 2.0.8
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Nikita
&lt;br&gt;&lt;br&gt;Richard S. Hall wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 11/11/09 20:15, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt; Thanks for the quick reply.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ideally I would like to not install the osgi core api into the 
&lt;br&gt;&amp;gt;&amp;gt; framework, I had to cause the framework was not exporting it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Still, if a bundle requires a version of org.osgi.framework that the 
&lt;br&gt;&amp;gt; framework cannot satisfy, then installing it separately will only 
&lt;br&gt;&amp;gt; cause problems like these.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Using the latest Felix runtime should fix this issue, right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2.0.2 should work...just download main 2.0.2 from the download page 
&lt;br&gt;&amp;gt; and save it over your felix.jar file.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On 11/11/09 20:00, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I followed the instructions to launch Felix in the link below and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; am able to launch Felix successfully.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Now, I can start and stop the felix instance &amp;nbsp;without any problem. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; When I install a bundle which has a BundleActivator, which is 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; started by my host application I cannot activate the bundle, due to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; a ClassCastException:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Note that I also have the org.osgi.core bundle installed in the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; felix runtime ( otherwise the bundle I am trying to activate above 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; gives an unresolved constraint error for the org.osgi.framework 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; package ( version &amp;gt;=1.5 ).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There seem to be two different definitions of BundleActivator. How 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; do I resolve this issue?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You should not be installing the OSGi core API into the framework, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this will generally always be a bad idea.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There was a bug in Framework 2.0.0 that we were not exporting the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; version of the OSGi packages with the correct version...that should 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fix your issue.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; However, you might want to make sure your bundle actually requires 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; OSGi R4.2 API, because it is best to specify the lowest possible 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; version you need.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The osgi core I am using is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.osgi
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.osgi.core
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 4.2.0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There is a link to our wiki off the &amp;quot;documents&amp;quot; page of the web 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; site...the link to the actual document is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am not sure why are static site is not syncing with this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; page...anyone else have any ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 21:13, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Can you provide me the link to the wiki, I could not find it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For some reason our wiki is not correctly being exported to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; create our static site, so go directly to the wiki for now since 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it is up to date...unfortunately, the wiki appears to be down 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; right now for me, so I can't give you the link.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 0:37, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Where can I find documentation on launching Felix 2.0, similar 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&lt;/a&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The AutoActivator class has been replaced with AutoProcessor, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it is not clear to me how exactly this class is to be 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; configured and used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any information you provide would help.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312207&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Launching-Felix-2.0-tp25777734p26312207.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26311897</id>
	<title>Re: Launching Felix 2.0</title>
	<published>2009-11-11T17:22:51Z</published>
	<updated>2009-11-11T17:22:51Z</updated>
	<author>
		<name>Richard S. Hall</name>
	</author>
	<content type="html">On 11/11/09 20:15, Nikita Sawant wrote:
&lt;br&gt;&amp;gt; Thanks for the quick reply.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ideally I would like to not install the osgi core api into the 
&lt;br&gt;&amp;gt; framework, I had to cause the framework was not exporting it.
&lt;br&gt;&lt;br&gt;Still, if a bundle requires a version of org.osgi.framework that the 
&lt;br&gt;framework cannot satisfy, then installing it separately will only cause 
&lt;br&gt;problems like these.
&lt;br&gt;&lt;br&gt;&amp;gt; Using the latest Felix runtime should fix this issue, right?
&lt;br&gt;&lt;br&gt;2.0.2 should work...just download main 2.0.2 from the download page and 
&lt;br&gt;save it over your felix.jar file.
&lt;br&gt;&lt;br&gt;-&amp;gt; richard
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt; On 11/11/09 20:00, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I followed the instructions to launch Felix in the link below and am 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; able to launch Felix successfully.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now, I can start and stop the felix instance &amp;nbsp;without any problem. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; When I install a bundle which has a BundleActivator, which is 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; started by my host application I cannot activate the bundle, due to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a ClassCastException:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Note that I also have the org.osgi.core bundle installed in the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; felix runtime ( otherwise the bundle I am trying to activate above 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; gives an unresolved constraint error for the org.osgi.framework 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; package ( version &amp;gt;=1.5 ).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There seem to be two different definitions of BundleActivator. How 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; do I resolve this issue?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You should not be installing the OSGi core API into the framework, 
&lt;br&gt;&amp;gt;&amp;gt; this will generally always be a bad idea.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There was a bug in Framework 2.0.0 that we were not exporting the 
&lt;br&gt;&amp;gt;&amp;gt; version of the OSGi packages with the correct version...that should 
&lt;br&gt;&amp;gt;&amp;gt; fix your issue.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; However, you might want to make sure your bundle actually requires 
&lt;br&gt;&amp;gt;&amp;gt; OSGi R4.2 API, because it is best to specify the lowest possible 
&lt;br&gt;&amp;gt;&amp;gt; version you need.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The osgi core I am using is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.osgi
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.osgi.core
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 4.2.0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There is a link to our wiki off the &amp;quot;documents&amp;quot; page of the web 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; site...the link to the actual document is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am not sure why are static site is not syncing with this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; page...anyone else have any ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 21:13, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Can you provide me the link to the wiki, I could not find it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For some reason our wiki is not correctly being exported to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; create our static site, so go directly to the wiki for now since 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it is up to date...unfortunately, the wiki appears to be down 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; right now for me, so I can't give you the link.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 0:37, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Where can I find documentation on launching Felix 2.0, similar 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&lt;/a&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The AutoActivator class has been replaced with AutoProcessor, it 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; is not clear to me how exactly this class is to be configured 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any information you provide would help.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------- 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311897&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Launching-Felix-2.0-tp25777734p26311897.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26311845</id>
	<title>Re: Launching Felix 2.0</title>
	<published>2009-11-11T17:15:42Z</published>
	<updated>2009-11-11T17:15:42Z</updated>
	<author>
		<name>Nikita Sawant</name>
	</author>
	<content type="html">Thanks for the quick reply.
&lt;br&gt;&lt;br&gt;Ideally I would like to not install the osgi core api into the 
&lt;br&gt;framework, I had to cause the framework was not exporting it.
&lt;br&gt;&lt;br&gt;Using the latest Felix runtime should fix this issue, right?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Nikita
&lt;br&gt;&lt;br&gt;Richard S. Hall wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 11/11/09 20:00, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I followed the instructions to launch Felix in the link below and am 
&lt;br&gt;&amp;gt;&amp;gt; able to launch Felix successfully.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Now, I can start and stop the felix instance &amp;nbsp;without any problem. 
&lt;br&gt;&amp;gt;&amp;gt; When I install a bundle which has a BundleActivator, which is started 
&lt;br&gt;&amp;gt;&amp;gt; by my host application I cannot activate the bundle, due to a 
&lt;br&gt;&amp;gt;&amp;gt; ClassCastException:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt;&amp;gt; org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Note that I also have the org.osgi.core bundle installed in the felix 
&lt;br&gt;&amp;gt;&amp;gt; runtime ( otherwise the bundle I am trying to activate above gives an 
&lt;br&gt;&amp;gt;&amp;gt; unresolved constraint error for the org.osgi.framework package ( 
&lt;br&gt;&amp;gt;&amp;gt; version &amp;gt;=1.5 ).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There seem to be two different definitions of BundleActivator. How do 
&lt;br&gt;&amp;gt;&amp;gt; I resolve this issue?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You should not be installing the OSGi core API into the framework, 
&lt;br&gt;&amp;gt; this will generally always be a bad idea.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There was a bug in Framework 2.0.0 that we were not exporting the 
&lt;br&gt;&amp;gt; version of the OSGi packages with the correct version...that should 
&lt;br&gt;&amp;gt; fix your issue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, you might want to make sure your bundle actually requires 
&lt;br&gt;&amp;gt; OSGi R4.2 API, because it is best to specify the lowest possible 
&lt;br&gt;&amp;gt; version you need.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The osgi core I am using is:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; org.osgi
&lt;br&gt;&amp;gt;&amp;gt; org.osgi.core
&lt;br&gt;&amp;gt;&amp;gt; 4.2.0
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There is a link to our wiki off the &amp;quot;documents&amp;quot; page of the web 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; site...the link to the actual document is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am not sure why are static site is not syncing with this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; page...anyone else have any ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 21:13, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Can you provide me the link to the wiki, I could not find it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For some reason our wiki is not correctly being exported to create 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; our static site, so go directly to the wiki for now since it is up 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to date...unfortunately, the wiki appears to be down right now for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; me, so I can't give you the link.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 0:37, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Where can I find documentation on launching Felix 2.0, similar to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&lt;/a&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The AutoActivator class has been replaced with AutoProcessor, it 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; is not clear to me how exactly this class is to be configured and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any information you provide would help.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311845&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Launching-Felix-2.0-tp25777734p26311845.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26311743</id>
	<title>Re: Launching Felix 2.0</title>
	<published>2009-11-11T17:04:58Z</published>
	<updated>2009-11-11T17:04:58Z</updated>
	<author>
		<name>Richard S. Hall</name>
	</author>
	<content type="html">On 11/11/09 20:00, Nikita Sawant wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I followed the instructions to launch Felix in the link below and am 
&lt;br&gt;&amp;gt; able to launch Felix successfully.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now, I can start and stop the felix instance &amp;nbsp;without any problem. 
&lt;br&gt;&amp;gt; When I install a bundle which has a BundleActivator, which is started 
&lt;br&gt;&amp;gt; by my host application I cannot activate the bundle, due to a 
&lt;br&gt;&amp;gt; ClassCastException:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt; org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at 
&lt;br&gt;&amp;gt; org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Note that I also have the org.osgi.core bundle installed in the felix 
&lt;br&gt;&amp;gt; runtime ( otherwise the bundle I am trying to activate above gives an 
&lt;br&gt;&amp;gt; unresolved constraint error for the org.osgi.framework package ( 
&lt;br&gt;&amp;gt; version &amp;gt;=1.5 ).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There seem to be two different definitions of BundleActivator. How do 
&lt;br&gt;&amp;gt; I resolve this issue?
&lt;/div&gt;&lt;br&gt;You should not be installing the OSGi core API into the framework, this 
&lt;br&gt;will generally always be a bad idea.
&lt;br&gt;&lt;br&gt;There was a bug in Framework 2.0.0 that we were not exporting the 
&lt;br&gt;version of the OSGi packages with the correct version...that should fix 
&lt;br&gt;your issue.
&lt;br&gt;&lt;br&gt;However, you might want to make sure your bundle actually requires OSGi 
&lt;br&gt;R4.2 API, because it is best to specify the lowest possible version you 
&lt;br&gt;need.
&lt;br&gt;&lt;br&gt;-&amp;gt; richard
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The osgi core I am using is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.osgi
&lt;br&gt;&amp;gt; org.osgi.core
&lt;br&gt;&amp;gt; 4.2.0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt; There is a link to our wiki off the &amp;quot;documents&amp;quot; page of the web 
&lt;br&gt;&amp;gt;&amp;gt; site...the link to the actual document is:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am not sure why are static site is not syncing with this 
&lt;br&gt;&amp;gt;&amp;gt; page...anyone else have any ideas?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 10/7/09 21:13, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can you provide me the link to the wiki, I could not find it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For some reason our wiki is not correctly being exported to create 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; our static site, so go directly to the wiki for now since it is up 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to date...unfortunately, the wiki appears to be down right now for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; me, so I can't give you the link.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 0:37, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Where can I find documentation on launching Felix 2.0, similar to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&lt;/a&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The AutoActivator class has been replaced with AutoProcessor, it 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; is not clear to me how exactly this class is to be configured and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any information you provide would help.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311743&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Launching-Felix-2.0-tp25777734p26311743.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26311691</id>
	<title>Re: Launching Felix 2.0</title>
	<published>2009-11-11T17:00:06Z</published>
	<updated>2009-11-11T17:00:06Z</updated>
	<author>
		<name>Nikita Sawant</name>
	</author>
	<content type="html">Hi Richard,
&lt;br&gt;&lt;br&gt;I followed the instructions to launch Felix in the link below and am 
&lt;br&gt;able to launch Felix successfully.
&lt;br&gt;&lt;br&gt;Now, I can start and stop the felix instance &amp;nbsp;without any problem. When 
&lt;br&gt;I install a bundle which has a BundleActivator, which is started by my 
&lt;br&gt;host application I cannot activate the bundle, due to a ClassCastException:
&lt;br&gt;&lt;br&gt;Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Note that I also have the org.osgi.core bundle installed in the felix 
&lt;br&gt;runtime ( otherwise the bundle I am trying to activate above gives an 
&lt;br&gt;unresolved constraint error for the org.osgi.framework package ( version 
&lt;br&gt;&amp;nbsp;&amp;gt;=1.5 ).
&lt;br&gt;&lt;br&gt;There seem to be two different definitions of BundleActivator. How do I 
&lt;br&gt;resolve this issue?
&lt;br&gt;&lt;br&gt;The osgi core I am using is:
&lt;br&gt;&lt;br&gt;org.osgi
&lt;br&gt;org.osgi.core
&lt;br&gt;4.2.0
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Nikita
&lt;br&gt;&lt;br&gt;Richard S. Hall wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; There is a link to our wiki off the &amp;quot;documents&amp;quot; page of the web 
&lt;br&gt;&amp;gt; site...the link to the actual document is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am not sure why are static site is not syncing with this 
&lt;br&gt;&amp;gt; page...anyone else have any ideas?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 10/7/09 21:13, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Can you provide me the link to the wiki, I could not find it.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For some reason our wiki is not correctly being exported to create 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; our static site, so go directly to the wiki for now since it is up 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to date...unfortunately, the wiki appears to be down right now for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; me, so I can't give you the link.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -&amp;gt; richard
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On 10/7/09 0:37, Nikita Sawant wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Richard,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Where can I find documentation on launching Felix 2.0, similar to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher&lt;/a&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The AutoActivator class has been replaced with AutoProcessor, it is 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; not clear to me how exactly this class is to be configured and used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Any information you provide would help.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Nikita
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311691&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311691&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311691&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311691&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311691&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311691&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311691&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311691&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Launching-Felix-2.0-tp25777734p26311691.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26310194</id>
	<title>Re: D-Bus</title>
	<published>2009-11-11T14:47:49Z</published>
	<updated>2009-11-11T14:47:49Z</updated>
	<author>
		<name>Guido Spadotto</name>
	</author>
	<content type="html">Christopher Armstrong wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; 1) Compiling the relevant parts of libmatthew. This can be done by 
&lt;br&gt;&amp;gt; modifying the Makefiles. Note that you need relevant headers for the 
&lt;br&gt;&amp;gt; native code component of libmatthew unix library (the JNI stuff is a 
&lt;br&gt;&amp;gt; bit of a pain).
&lt;br&gt;&amp;gt; 2) Compiling DBus-Java for OSGi. Again, it should be reasonably simple 
&lt;br&gt;&amp;gt; to generate a Makefile
&lt;br&gt;&amp;gt; 3) You need code that establishes a DBusConnection and can extract 
&lt;br&gt;&amp;gt; objects. This is fairly straightforward. The main issue will be if you 
&lt;br&gt;&amp;gt; have multiple bundles that need the connection, in which case you will 
&lt;br&gt;&amp;gt; have to write some code to publish it into the OSGi service registry 
&lt;br&gt;&amp;gt; (its a singleton and behaves as such). You will also need code to 
&lt;br&gt;&amp;gt; manage the connection object so that you can withdraw it when the 
&lt;br&gt;&amp;gt; connection is dropped).
&lt;br&gt;&amp;gt; 4) DBus-Java Signal handling. Unfortunately, this suffers the same 
&lt;br&gt;&amp;gt; problem as a lot of normal Java code, in that it uses reflection to 
&lt;br&gt;&amp;gt; determine the signal handling class when it comes time to deliver a 
&lt;br&gt;&amp;gt; DBus &amp;quot;signal&amp;quot;. The best solution would be to translate the signal 
&lt;br&gt;&amp;gt; handlers, within the DBus-Java bundle you create, and then re-publish 
&lt;br&gt;&amp;gt; them with an OSGi event handling mechanism such as EventAdmin.
&lt;br&gt;&amp;gt; 5) The component that needs to be communicated with will need Java 
&lt;br&gt;&amp;gt; classes generated for its interfaces. There is a tool in DBus-Java to 
&lt;br&gt;&amp;gt; do this, and the generated source code files can be easily put into a 
&lt;br&gt;&amp;gt; bundle.
&lt;/div&gt;Thanks Chris, much appreciated.
&lt;br&gt;&lt;br&gt;I don't think my demo justifies this amount of work,
&lt;br&gt;nevertheless your suggestions will become precious
&lt;br&gt;whenever I'll *have to* integrate OSGi and D-Bus.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&amp;nbsp;Guido
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26310194&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26310194&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/D-Bus-tp26093093p26310194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26309952</id>
	<title>Re: D-Bus</title>
	<published>2009-11-11T14:32:18Z</published>
	<updated>2009-11-11T14:32:18Z</updated>
	<author>
		<name>Christopher Armstrong-5</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;I have done this before.
&lt;br&gt;&lt;br&gt;I used Java-DBus in a thesis project, and modified it to work on OSGi. &amp;nbsp;
&lt;br&gt;There are multiple issues to sort through, and it really needs a re- 
&lt;br&gt;design or compatibility layer to get it to work properly with OSGi.
&lt;br&gt;&lt;br&gt;Some of the things you will need to do:
&lt;br&gt;1) Compiling the relevant parts of libmatthew. This can be done by &amp;nbsp;
&lt;br&gt;modifying the Makefiles. Note that you need relevant headers for the &amp;nbsp;
&lt;br&gt;native code component of libmatthew unix library (the JNI stuff is a &amp;nbsp;
&lt;br&gt;bit of a pain).
&lt;br&gt;2) Compiling DBus-Java for OSGi. Again, it should be reasonably simple &amp;nbsp;
&lt;br&gt;to generate a Makefile
&lt;br&gt;3) You need code that establishes a DBusConnection and can extract &amp;nbsp;
&lt;br&gt;objects. This is fairly straightforward. The main issue will be if you &amp;nbsp;
&lt;br&gt;have multiple bundles that need the connection, in which case you will &amp;nbsp;
&lt;br&gt;have to write some code to publish it into the OSGi service registry &amp;nbsp;
&lt;br&gt;(its a singleton and behaves as such). You will also need code to &amp;nbsp;
&lt;br&gt;manage the connection object so that you can withdraw it when the &amp;nbsp;
&lt;br&gt;connection is dropped).
&lt;br&gt;4) DBus-Java Signal handling. Unfortunately, this suffers the same &amp;nbsp;
&lt;br&gt;problem as a lot of normal Java code, in that it uses reflection to &amp;nbsp;
&lt;br&gt;determine the signal handling class when it comes time to deliver a &amp;nbsp;
&lt;br&gt;DBus &amp;quot;signal&amp;quot;. The best solution would be to translate the signal &amp;nbsp;
&lt;br&gt;handlers, within the DBus-Java bundle you create, and then re-publish &amp;nbsp;
&lt;br&gt;them with an OSGi event handling mechanism such as EventAdmin.
&lt;br&gt;5) The component that needs to be communicated with will need Java &amp;nbsp;
&lt;br&gt;classes generated for its interfaces. There is a tool in DBus-Java to &amp;nbsp;
&lt;br&gt;do this, and the generated source code files can be easily put into a &amp;nbsp;
&lt;br&gt;bundle.
&lt;br&gt;&lt;br&gt;Given the amount of work, its not really worth it unless you need to &amp;nbsp;
&lt;br&gt;communicate with an existing component that uses the DBus. For new &amp;nbsp;
&lt;br&gt;code, use something suggested by one of the other authors, especially &amp;nbsp;
&lt;br&gt;if this is for a throw-away demo.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Chris
&lt;br&gt;&lt;br&gt;On 28/10/2009, at 12:31 PM, Guido Spadotto wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; I've searched for this a bit but found nothing useful, so I'm here &amp;nbsp;
&lt;br&gt;&amp;gt; to ask you:
&lt;br&gt;&amp;gt; &amp;quot;Do you know if there's any bundle-ized version of the Java D-Bus &amp;nbsp;
&lt;br&gt;&amp;gt; implementation available somewhere?&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Guido
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26309952&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26309952&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--------
&lt;br&gt;Christopher Armstrong
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26309952&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carmstrong@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26309952&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26309952&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/D-Bus-tp26093093p26309952.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26309767</id>
	<title>Configurable properties for a custom service are not configurable via the Configuration Console (OSGI Declarative Services - SCR)</title>
	<published>2009-11-11T14:13:28Z</published>
	<updated>2009-11-11T14:13:28Z</updated>
	<author>
		<name>Che Frenz</name>
	</author>
	<content type="html">On our project we are developing classes that are configurable via the Apache Felix Maven SCR Plugin and Felix Configuration Console. &amp;nbsp;I understand the concept of the scr.property tag and am able to view and edit these properties within the Console Configuration screen. &amp;nbsp;However, I am having trouble with property values that appear to persist when a bundle is updated, but in actuality are not persisted to that property.
&lt;br&gt;&lt;br&gt;For example, I have these two properties in my LDAPManager that is in my Authentication bundle:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /** @scr.property label=&amp;quot;Security Principle Password&amp;quot; description=&amp;quot;Security principle password&amp;quot; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; private static String SECURITY_CREDENTIALS = &amp;quot;security.credentials&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /** @scr.property label=&amp;quot;Authorization Type&amp;quot; description=&amp;quot;LDAP Authorization Type&amp;quot; value=&amp;quot;Simple&amp;quot;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; private static String SECURITY_AUTH_TYPE = &amp;quot;security.authorization.type&amp;quot;;
&lt;br&gt;&lt;br&gt;When I upload the bundle to Felix and go the configurations tab, I see both of these configurable form fields and auth type is defaulted to &amp;quot;Simple.&amp;quot; &amp;nbsp;If I fill out the password form field to &amp;quot;my_password&amp;quot; and hit 'save,' through log files, I am able to see the password field being updated in my code. &amp;nbsp;However, if I go back to my bundles tab and update that bundle (browse to that bundle in the file system, select &amp;quot;install or update&amp;quot;, select &amp;quot;refresh packages&amp;quot;), my issue occurs. &amp;nbsp;I notice that if I go to my configurations tab, &amp;quot;my_password&amp;quot; is still filled out/populated in to the password form field but when I check my logs, the property value in the code is set to null. &amp;nbsp;I'm worried that people may assume that the property has been filled out and correct in the code since the form field displays the value but in actuality, the property is still null and won't be set until I hit the save button. &amp;nbsp;
&lt;br&gt;&lt;br&gt;I am populating these fields via the following code:
&lt;br&gt;&lt;br&gt;@SuppressWarnings(&amp;quot;unchecked&amp;quot;)
&lt;br&gt;protected void activate(ComponentContext context) 
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.setup(context.getProperties());
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;void setup(Dictionary&amp;lt;String, Object&amp;gt; configuration)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Object parameter = configuration.get(&amp;quot;password&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userPassword = parameter.toString();
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Configurable-properties-for-a-custom-service-are-not-configurable-via-the-Configuration-Console-%28OSGI-Declarative-Services---SCR%29-tp26309767p26309767.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26305660</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-11T09:56:23Z</published>
	<updated>2009-11-11T09:56:23Z</updated>
	<author>
		<name>Richard S. Hall</name>
	</author>
	<content type="html">On 11/11/09 10:20, lukewpatterson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm just trying to understand how the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;contents of the contents&amp;quot;, as you put it, aren't included in &amp;quot;the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; contents&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Just think of how you manually unzip an archive. If you unzip it, you
&lt;br&gt;&amp;gt;&amp;gt; get its contents. If the contents contain other zip files, they still
&lt;br&gt;&amp;gt;&amp;gt; need to be unzip to see what is inside of them. Unzipping is not
&lt;br&gt;&amp;gt;&amp;gt; recursive.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; My analogy with the Matryoshka doll wasn't very good. &amp;nbsp;Like you said, it
&lt;br&gt;&amp;gt; isn't recursive. &amp;nbsp;It is nested/embedded at most one level deep.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; On 11/10/09 19:38, lukewpatterson wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So entries in the &amp;quot;Bundle Space&amp;quot; (v4.2, sec. 4.4.14) aren't retrieved
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; from
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the &amp;quot;Bundle Class Path&amp;quot; (v4.2, sec. 3.8.1)? &amp;nbsp;Am I missing something
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; conceptual or fundamental?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Correct. The term &amp;quot;entry&amp;quot; was used to correlate to the terminology of
&lt;br&gt;&amp;gt;&amp;gt; ZipFile/JarFile.getEntry(). In OSGi the entry-related methods are
&lt;br&gt;&amp;gt;&amp;gt; intended to give access to the &amp;quot;raw content&amp;quot; of the bundle.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Now it makes more sense. &amp;nbsp;I could use the &amp;quot;entry&amp;quot; methods to retrieve the
&lt;br&gt;&amp;gt; actual embedded jar files, for example.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;Yes.
&lt;br&gt;&lt;br&gt;-&amp;gt; richard
&lt;br&gt;&lt;br&gt;&amp;gt; In my scenario, I'm trying to detect the presence of &amp;quot;META-INF/services/*&amp;quot;
&lt;br&gt;&amp;gt; resources which would be present in the &amp;quot;Bundle Space&amp;quot; without resolving.
&lt;br&gt;&amp;gt; In my bundletracking, I don't want to resolve every bundle I find. &amp;nbsp;(I
&lt;br&gt;&amp;gt; shouldn't have been trying to use findEntries anyway, cause that resolves)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26305660&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26305660&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26305660.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26302990</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-11T07:37:30Z</published>
	<updated>2009-11-11T07:37:30Z</updated>
	<author>
		<name>lukewpatterson</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Jeremias Maerki-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On 10.11.2009 18:26:37 lukewpatterson wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In my activator, I'm bundletracking looking for /META-INF/services folders. 
&lt;br&gt;&amp;gt; I wrap around the service-providing bundles with a custom ClassLoader and
&lt;br&gt;&amp;gt; then register them with my API's service factory.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This approach seems to work fine except when the /META-INF/services are
&lt;br&gt;&amp;gt; provided exclusively from the Bundle-ClassPath entries. &amp;nbsp;i.e. doesn't work
&lt;br&gt;&amp;gt; when no /META-INF/services folder on root, but embedded jars on the
&lt;br&gt;&amp;gt; Bundle-ClassPath have the folder
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is Bundle.findEntries(...) [1] supposed to look on the Bundle-Classpath?
&lt;br&gt;&lt;br&gt;Are you trying to solve the same problem as I've done lately?
&lt;br&gt;See: &lt;a href=&quot;http://www.jeremias-maerki.ch/development/osgi/jar-services.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jeremias-maerki.ch/development/osgi/jar-services.html&lt;/a&gt;&lt;br&gt;Well, I didn't specifically look into the Bundle-Classpath issue in this
&lt;br&gt;context. I've turned the META-INF/services carrying JARs into full OSGi
&lt;br&gt;bundles.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Yes Jeremias, I think what you've done is very close to what I'm looking for. &amp;nbsp;I think the restlet team is doing something kinda like this too [1].
&lt;br&gt;&lt;br&gt;I'm working with other teams which use jar SPI (they are kind enough to make their stuff bundles, but don't care about OSGi beyond that point), and I want a generic way of loading impls. &amp;nbsp;The dynamism obviously wouldn't be there, so I was thinking that the appropriate level of bundle state required would merely be INSTALLED.
&lt;br&gt;&lt;br&gt;I started reading through your code and documentation. &amp;nbsp;I was wondering if it handles all the scenarios where a bundle can be updated, installed, uninstalled.
&lt;br&gt;&lt;br&gt;I was hoping to accomplish this generic lookup without requiring a special manifest header, but I see how that introduces all sorts of complexities for the implementation (even with BundleTracker and PackageAdmin).
&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://n2.nabble.com/OSGi-vs-Service-Provider-patterns-td2478338.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://n2.nabble.com/OSGi-vs-Service-Provider-patterns-td2478338.html&lt;/a&gt;&amp;nbsp;and &lt;a href=&quot;http://restlet.tigris.org/source/browse/restlet/trunk/modules/org.restlet/src/org/restlet/engine/internal/Activator.java?view=markup&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://restlet.tigris.org/source/browse/restlet/trunk/modules/org.restlet/src/org/restlet/engine/internal/Activator.java?view=markup&lt;/a&gt;&amp;nbsp;and </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26302990.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26302677</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-11T07:20:07Z</published>
	<updated>2009-11-11T07:20:07Z</updated>
	<author>
		<name>lukewpatterson</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Richard S. Hall wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;&amp;gt; I'm just trying to understand how the
&lt;br&gt;&amp;gt; &amp;quot;contents of the contents&amp;quot;, as you put it, aren't included in &amp;quot;the
&lt;br&gt;&amp;gt; contents&amp;quot;.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Just think of how you manually unzip an archive. If you unzip it, you 
&lt;br&gt;get its contents. If the contents contain other zip files, they still 
&lt;br&gt;need to be unzip to see what is inside of them. Unzipping is not recursive.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
My analogy with the Matryoshka doll wasn't very good. &amp;nbsp;Like you said, it isn't recursive. &amp;nbsp;It is nested/embedded at most one level deep.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Richard S. Hall wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On 11/10/09 19:38, lukewpatterson wrote:
&lt;br&gt;&amp;gt; So entries in the &amp;quot;Bundle Space&amp;quot; (v4.2, sec. 4.4.14) aren't retrieved from
&lt;br&gt;&amp;gt; the &amp;quot;Bundle Class Path&amp;quot; (v4.2, sec. 3.8.1)? &amp;nbsp;Am I missing something
&lt;br&gt;&amp;gt; conceptual or fundamental?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Correct. The term &amp;quot;entry&amp;quot; was used to correlate to the terminology of 
&lt;br&gt;ZipFile/JarFile.getEntry(). In OSGi the entry-related methods are 
&lt;br&gt;intended to give access to the &amp;quot;raw content&amp;quot; of the bundle.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Now it makes more sense. &amp;nbsp;I could use the &amp;quot;entry&amp;quot; methods to retrieve the actual embedded jar files, for example.
&lt;br&gt;&lt;br&gt;In my scenario, I'm trying to detect the presence of &amp;quot;META-INF/services/*&amp;quot; resources which would be present in the &amp;quot;Bundle Space&amp;quot; without resolving. &amp;nbsp;In my bundletracking, I don't want to resolve every bundle I find. &amp;nbsp;(I shouldn't have been trying to use findEntries anyway, cause that resolves)</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26302677.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26297612</id>
	<title>javax.xml.bind classes (JDK 1.6) - Apache Felix Karaf 1.0.0 - Apache  CXF 2.2</title>
	<published>2009-11-11T00:21:18Z</published>
	<updated>2009-11-11T00:21:18Z</updated>
	<author>
		<name>cmoulliard</name>
	</author>
	<content type="html">I would like to know if we have to export (or not) the javax.xml.bind*
&lt;br&gt;packages defined in the file config.properties file of Apache Felix
&lt;br&gt;2.2 when I would like to use Apache CXF. By default, they are exported
&lt;br&gt;but I have an unresolved constraint issue when deploying bundles
&lt;br&gt;required fro CXF 2.2 and especially for the following bundle :
&lt;br&gt;&lt;br&gt;mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.6_1
&lt;br&gt;&lt;br&gt;This bundle requires the packages
&lt;br&gt;javax.xml.bind;version=&amp;quot;2.1&amp;quot;,javax.xml.bind.annotation;ver
&lt;br&gt;&amp;nbsp;sion=&amp;quot;2.1&amp;quot;,javax.xml.bind.annotation.adapters;version=&amp;quot;2.1&amp;quot;,javax.xml
&lt;br&gt;&amp;nbsp;.bind.attachment;version=&amp;quot;2.1&amp;quot;,javax.xml.bind.helpers;version=&amp;quot;2.1&amp;quot;
&lt;br&gt;&lt;br&gt;I see using the command exports that these packages are exported but
&lt;br&gt;though the version 0.0
&lt;br&gt;&lt;br&gt;Remark : in ServiceMix 4.xxx, they are not exported. In this case,
&lt;br&gt;which jar file export those required packages ?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Charles Moulliard
&lt;br&gt;Senior Enterprise Architect
&lt;br&gt;Apache Camel Committer
&lt;br&gt;&lt;br&gt;*****************************
&lt;br&gt;blog : &lt;a href=&quot;http://cmoulliard.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cmoulliard.blogspot.com&lt;/a&gt;&lt;br&gt;twitter : &lt;a href=&quot;http://twitter.com/cmoulliard&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/cmoulliard&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297612&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297612&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;signature&quot;&gt;Charles Moulliard
&lt;br&gt;SOA Architect
&lt;br&gt;&lt;br&gt;My Blog : &lt;a href=&quot;http://cmoulliard.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cmoulliard.blogspot.com/&lt;/a&gt;&amp;nbsp;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/javax.xml.bind-classes-%28JDK-1.6%29---Apache-Felix-Karaf-1.0.0---Apache--CXF-2.2-tp26297612p26297612.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26297176</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T23:34:10Z</published>
	<updated>2009-11-10T23:34:10Z</updated>
	<author>
		<name>Jeremias Maerki-2</name>
	</author>
	<content type="html">Are you trying to solve the same problem as I've done lately?
&lt;br&gt;See: &lt;a href=&quot;http://www.jeremias-maerki.ch/development/osgi/jar-services.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jeremias-maerki.ch/development/osgi/jar-services.html&lt;/a&gt;&lt;br&gt;Well, I didn't specifically look into the Bundle-Classpath issue in this
&lt;br&gt;context. I've turned the META-INF/services carrying JARs into full OSGi
&lt;br&gt;bundles.
&lt;br&gt;&lt;br&gt;On 10.11.2009 18:26:37 lukewpatterson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In my activator, I'm bundletracking looking for /META-INF/services folders. 
&lt;br&gt;&amp;gt; I wrap around the service-providing bundles with a custom ClassLoader and
&lt;br&gt;&amp;gt; then register them with my API's service factory.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This approach seems to work fine except when the /META-INF/services are
&lt;br&gt;&amp;gt; provided exclusively from the Bundle-ClassPath entries. &amp;nbsp;i.e. doesn't work
&lt;br&gt;&amp;gt; when no /META-INF/services folder on root, but embedded jars on the
&lt;br&gt;&amp;gt; Bundle-ClassPath have the folder
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is Bundle.findEntries(...) [1] supposed to look on the Bundle-Classpath?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Luke
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [1]
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.osgi.org/javadoc/r4v41/org/osgi/framework/Bundle.html#findEntries%28java.lang.String,%20java.lang.String,%20boolean%29&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.osgi.org/javadoc/r4v41/org/osgi/framework/Bundle.html#findEntries%28java.lang.String,%20java.lang.String,%20boolean%29&lt;/a&gt;&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26287340.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26287340.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Apache Felix - Users mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Jeremias Maerki
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297176&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297176&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26297176.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26294149</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T16:44:19Z</published>
	<updated>2009-11-10T16:44:19Z</updated>
	<author>
		<name>Richard S. Hall</name>
	</author>
	<content type="html">On 11/10/09 19:38, lukewpatterson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; since you are confused
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Yes I truly am confused. :) &amp;nbsp;But this mailing list seems pretty responsive
&lt;br&gt;&amp;gt; and welcoming, so I think I'm on the path to figuring things out.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So entries in the &amp;quot;Bundle Space&amp;quot; (v4.2, sec. 4.4.14) aren't retrieved from
&lt;br&gt;&amp;gt; the &amp;quot;Bundle Class Path&amp;quot; (v4.2, sec. 3.8.1)? &amp;nbsp;Am I missing something
&lt;br&gt;&amp;gt; conceptual or fundamental?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;Correct. The term &amp;quot;entry&amp;quot; was used to correlate to the terminology of 
&lt;br&gt;ZipFile/JarFile.getEntry(). In OSGi the entry-related methods are 
&lt;br&gt;intended to give access to the &amp;quot;raw content&amp;quot; of the bundle.
&lt;br&gt;&lt;br&gt;&amp;gt; I'm not trying to be difficult, I'm just trying to understand how the
&lt;br&gt;&amp;gt; &amp;quot;contents of the contents&amp;quot;, as you put it, aren't included in &amp;quot;the
&lt;br&gt;&amp;gt; contents&amp;quot;.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Just think of how you manually unzip an archive. If you unzip it, you 
&lt;br&gt;get its contents. If the contents contain other zip files, they still 
&lt;br&gt;need to be unzip to see what is inside of them. Unzipping is not recursive.
&lt;br&gt;&lt;br&gt;-&amp;gt; richard
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Luke
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26294149&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26294149&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26294149.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26294088</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T16:38:44Z</published>
	<updated>2009-11-10T16:38:44Z</updated>
	<author>
		<name>lukewpatterson</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Richard S. Hall wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;since you are confused
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Yes I truly am confused. :) &amp;nbsp;But this mailing list seems pretty responsive and welcoming, so I think I'm on the path to figuring things out.
&lt;br&gt;&lt;br&gt;So entries in the &amp;quot;Bundle Space&amp;quot; (v4.2, sec. 4.4.14) aren't retrieved from the &amp;quot;Bundle Class Path&amp;quot; (v4.2, sec. 3.8.1)? &amp;nbsp;Am I missing something conceptual or fundamental?
&lt;br&gt;&lt;br&gt;I'm not trying to be difficult, I'm just trying to understand how the &amp;quot;contents of the contents&amp;quot;, as you put it, aren't included in &amp;quot;the contents&amp;quot;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Luke</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26294088.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26292410</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T14:24:21Z</published>
	<updated>2009-11-10T14:24:21Z</updated>
	<author>
		<name>Richard S. Hall</name>
	</author>
	<content type="html">On 11/10/09 16:57, lukewpatterson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Richard S. Hall wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 11/10/09 14:38, lukewpatterson wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Stuart McCulloch wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; as the Bundle.findEntries() javadoc states:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;This bundle's class loader is not used to search for entries&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; so it won't look inside embedded jars - you'll need to use
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Bundle.getResource() / getResources() for that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The part that was confusing me was &amp;quot;Only the contents of this bundle and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; its
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; attached fragments are searched for the specified entries.&amp;quot;. &amp;nbsp;I thought
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; embedded jars on the Bundle-Classpath would qualify as &amp;quot;contents of this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; bundle&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; That would be the contents of the contents. :-)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; :) Which does the smiley face mean:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A) the current behavior is correct and properly documented
&lt;br&gt;&amp;gt; B) the current behavior is correct but the documentation is misleading (or
&lt;br&gt;&amp;gt; potentially misleading)
&lt;br&gt;&amp;gt; C) the current behavior is incorrect and the documentation is correct
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 'A' doesn't make sense to me, and I don't think it would make sense to
&lt;br&gt;&amp;gt; anyone else who has seen a Matryoshka doll.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm guessing 'B', but I hope it is 'C', cause then it could be &amp;quot;fixed&amp;quot;. :)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;Well, for me, it is 'A', but since you are confused, I guess it is 'B'. :-)
&lt;br&gt;&lt;br&gt;-&amp;gt; richard
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26292410&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26292410&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26292410.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26291979</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T13:57:30Z</published>
	<updated>2009-11-10T13:57:30Z</updated>
	<author>
		<name>lukewpatterson</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Richard S. Hall wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&lt;br&gt;On 11/10/09 14:38, lukewpatterson wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Stuart McCulloch wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; as the Bundle.findEntries() javadoc states:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;This bundle's class loader is not used to search for entries&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; so it won't look inside embedded jars - you'll need to use
&lt;br&gt;&amp;gt;&amp;gt; Bundle.getResource() / getResources() for that
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; The part that was confusing me was &amp;quot;Only the contents of this bundle and its
&lt;br&gt;&amp;gt; attached fragments are searched for the specified entries.&amp;quot;. &amp;nbsp;I thought
&lt;br&gt;&amp;gt; embedded jars on the Bundle-Classpath would qualify as &amp;quot;contents of this
&lt;br&gt;&amp;gt; bundle&amp;quot;.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;That would be the contents of the contents. :-)
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
:) Which does the smiley face mean:
&lt;br&gt;&lt;br&gt;A) the current behavior is correct and properly documented
&lt;br&gt;B) the current behavior is correct but the documentation is misleading (or potentially misleading)
&lt;br&gt;C) the current behavior is incorrect and the documentation is correct
&lt;br&gt;&lt;br&gt;'A' doesn't make sense to me, and I don't think it would make sense to anyone else who has seen a Matryoshka doll.
&lt;br&gt;&lt;br&gt;I'm guessing 'B', but I hope it is 'C', cause then it could be &amp;quot;fixed&amp;quot;. :)</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26291979.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26290170</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T11:55:32Z</published>
	<updated>2009-11-10T11:55:32Z</updated>
	<author>
		<name>Richard S. Hall</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On 11/10/09 14:38, lukewpatterson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Stuart McCulloch wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; as the Bundle.findEntries() javadoc states:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;This bundle's class loader is not used to search for entries&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; so it won't look inside embedded jars - you'll need to use
&lt;br&gt;&amp;gt;&amp;gt; Bundle.getResource() / getResources() for that
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; The part that was confusing me was &amp;quot;Only the contents of this bundle and its
&lt;br&gt;&amp;gt; attached fragments are searched for the specified entries.&amp;quot;. &amp;nbsp;I thought
&lt;br&gt;&amp;gt; embedded jars on the Bundle-Classpath would qualify as &amp;quot;contents of this
&lt;br&gt;&amp;gt; bundle&amp;quot;.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;That would be the contents of the contents. :-)
&lt;br&gt;&lt;br&gt;&amp;gt; With Bundle.getResource() / getResources(), it could potentially find
&lt;br&gt;&amp;gt; resources from other bundles, right?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Yes. This delegates first before searching bundle class path.
&lt;br&gt;&lt;br&gt;-&amp;gt; richard
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290170&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290170&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26290170.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26289069</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T11:38:02Z</published>
	<updated>2009-11-10T11:38:02Z</updated>
	<author>
		<name>lukewpatterson</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Stuart McCulloch wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;as the Bundle.findEntries() javadoc states:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;This bundle's class loader is not used to search for entries&amp;quot;
&lt;br&gt;&lt;br&gt;so it won't look inside embedded jars - you'll need to use
&lt;br&gt;Bundle.getResource() / getResources() for that
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
The part that was confusing me was &amp;quot;Only the contents of this bundle and its attached fragments are searched for the specified entries.&amp;quot;. &amp;nbsp;I thought embedded jars on the Bundle-Classpath would qualify as &amp;quot;contents of this bundle&amp;quot;.
&lt;br&gt;&lt;br&gt;With Bundle.getResource() / getResources(), it could potentially find resources from other bundles, right?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26289069.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26287838</id>
	<title>Re: Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T09:37:19Z</published>
	<updated>2009-11-10T09:37:19Z</updated>
	<author>
		<name>Stuart McCulloch</name>
	</author>
	<content type="html">2009/11/11 lukewpatterson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26287838&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lukewpatterson@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In my activator, I'm bundletracking looking for /META-INF/services folders.
&lt;br&gt;&amp;gt; I wrap around the service-providing bundles with a custom ClassLoader and
&lt;br&gt;&amp;gt; then register them with my API's service factory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This approach seems to work fine except when the /META-INF/services are
&lt;br&gt;&amp;gt; provided exclusively from the Bundle-ClassPath entries. &amp;nbsp;i.e. doesn't work
&lt;br&gt;&amp;gt; when no /META-INF/services folder on root, but embedded jars on the
&lt;br&gt;&amp;gt; Bundle-ClassPath have the folder
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is Bundle.findEntries(...) [1] supposed to look on the Bundle-Classpath?
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;as the Bundle.findEntries() javadoc states:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;This bundle's class loader is not used to search for entries&amp;quot;
&lt;br&gt;&lt;br&gt;so it won't look inside embedded jars - you'll need to use
&lt;br&gt;Bundle.getResource() / getResources() for that
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Luke
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [1]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.osgi.org/javadoc/r4v41/org/osgi/framework/Bundle.html#findEntries%28java.lang.String,%20java.lang.String,%20boolean%29&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.osgi.org/javadoc/r4v41/org/osgi/framework/Bundle.html#findEntries%28java.lang.String,%20java.lang.String,%20boolean%29&lt;/a&gt;&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26287340.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26287340.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Apache Felix - Users mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26287838&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26287838&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Cheers, Stuart
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26287838.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26287340</id>
	<title>Bundle.findEntries(...) and Bundle-Classpath</title>
	<published>2009-11-10T09:26:35Z</published>
	<updated>2009-11-10T09:26:35Z</updated>
	<author>
		<name>lukewpatterson</name>
	</author>
	<content type="html">In my activator, I'm bundletracking looking for /META-INF/services folders. &amp;nbsp;I wrap around the service-providing bundles with a custom ClassLoader and then register them with my API's service factory.
&lt;br&gt;&lt;br&gt;This approach seems to work fine except when the /META-INF/services are provided exclusively from the Bundle-ClassPath entries. &amp;nbsp;i.e. doesn't work when no /META-INF/services folder on root, but embedded jars on the Bundle-ClassPath have the folder
&lt;br&gt;&lt;br&gt;Is Bundle.findEntries(...) [1] supposed to look on the Bundle-Classpath?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Luke
&lt;br&gt;&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://www.osgi.org/javadoc/r4v41/org/osgi/framework/Bundle.html#findEntries%28java.lang.String,%20java.lang.String,%20boolean%29&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.osgi.org/javadoc/r4v41/org/osgi/framework/Bundle.html#findEntries%28java.lang.String,%20java.lang.String,%20boolean%29&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bundle.findEntries%28...%29-and-Bundle-Classpath-tp26287340p26287340.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26287194</id>
	<title>Re: Declarative Services, loading from &lt;ACTIVE bundles</title>
	<published>2009-11-10T09:04:24Z</published>
	<updated>2009-11-10T09:04:24Z</updated>
	<author>
		<name>lukewpatterson</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Felix Meschberger-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;In this case I suggest you declare your bundle with lazy activation
&lt;br&gt;policy and just start the bundles. The bundles will then not really be
&lt;br&gt;started.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Thanks Felix. &amp;nbsp;I think I'll have to go a slightly different route than DS cause in the downstream deployed products I won't have control over which bundles are started and I don't want to unnecessarily start (programmatically) any bundles.
&lt;br&gt;&lt;br&gt;Luke</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Declarative-Services%2C-loading-from-%3CACTIVE-bundles-tp26224997p26287194.html" />
</entry>

</feed>
