Launching Felix 2.0

View: New views
15 Messages — Rating Filter:   Alert me  

Launching Felix 2.0

by Nikita Sawant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Richard,

Where can I find documentation on launching Felix 2.0, similar to this
<http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>

The AutoActivator class has been replaced with AutoProcessor, it is not
clear to me how exactly this class is to be configured and used.

Any information you provide would help.

Thanks,
Nikita

Re: Launching Felix 2.0

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For some reason our wiki is not correctly being exported to create our
static site, so go directly to the wiki for now since it is up to
date...unfortunately, the wiki appears to be down right now for me, so I
can't give you the link.

-> richard


On 10/7/09 0:37, Nikita Sawant wrote:

> Hi Richard,
>
> Where can I find documentation on launching Felix 2.0, similar to this
> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>
>
> The AutoActivator class has been replaced with AutoProcessor, it is
> not clear to me how exactly this class is to be configured and used.
>
> Any information you provide would help.
>
> Thanks,
> Nikita
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Nikita Sawant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Richard,

Can you provide me the link to the wiki, I could not find it.

Thanks,
Nikita

Richard S. Hall wrote:

> For some reason our wiki is not correctly being exported to create our
> static site, so go directly to the wiki for now since it is up to
> date...unfortunately, the wiki appears to be down right now for me, so
> I can't give you the link.
>
> -> richard
>
>
> On 10/7/09 0:37, Nikita Sawant wrote:
>> Hi Richard,
>>
>> Where can I find documentation on launching Felix 2.0, similar to
>> this
>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>
>>
>> The AutoActivator class has been replaced with AutoProcessor, it is
>> not clear to me how exactly this class is to be configured and used.
>>
>> Any information you provide would help.
>>
>> Thanks,
>> Nikita
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is a link to our wiki off the "documents" page of the web
site...the link to the actual document is:

     
http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding

I am not sure why are static site is not syncing with this page...anyone
else have any ideas?

-> richard


On 10/7/09 21:13, Nikita Sawant wrote:

> Hi Richard,
>
> Can you provide me the link to the wiki, I could not find it.
>
> Thanks,
> Nikita
>
> Richard S. Hall wrote:
>> For some reason our wiki is not correctly being exported to create
>> our static site, so go directly to the wiki for now since it is up to
>> date...unfortunately, the wiki appears to be down right now for me,
>> so I can't give you the link.
>>
>> -> richard
>>
>>
>> On 10/7/09 0:37, Nikita Sawant wrote:
>>> Hi Richard,
>>>
>>> Where can I find documentation on launching Felix 2.0, similar to
>>> this
>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>
>>>
>>> The AutoActivator class has been replaced with AutoProcessor, it is
>>> not clear to me how exactly this class is to be configured and used.
>>>
>>> Any information you provide would help.
>>>
>>> Thanks,
>>> Nikita
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Nikita Sawant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Richard,

I followed the instructions to launch Felix in the link below and am
able to launch Felix successfully.

Now, I can start and stop the felix instance  without any problem. When
I install a bundle which has a BundleActivator, which is started by my
host application I cannot activate the bundle, due to a ClassCastException:

Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
        at
org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)


Note that I also have the org.osgi.core bundle installed in the felix
runtime ( otherwise the bundle I am trying to activate above gives an
unresolved constraint error for the org.osgi.framework package ( version
 >=1.5 ).

There seem to be two different definitions of BundleActivator. How do I
resolve this issue?

The osgi core I am using is:

org.osgi
org.osgi.core
4.2.0


Thanks,
Nikita

Richard S. Hall wrote:

> There is a link to our wiki off the "documents" page of the web
> site...the link to the actual document is:
>
>    
> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>
>
> I am not sure why are static site is not syncing with this
> page...anyone else have any ideas?
>
> -> richard
>
>
> On 10/7/09 21:13, Nikita Sawant wrote:
>> Hi Richard,
>>
>> Can you provide me the link to the wiki, I could not find it.
>>
>> Thanks,
>> Nikita
>>
>> Richard S. Hall wrote:
>>> For some reason our wiki is not correctly being exported to create
>>> our static site, so go directly to the wiki for now since it is up
>>> to date...unfortunately, the wiki appears to be down right now for
>>> me, so I can't give you the link.
>>>
>>> -> richard
>>>
>>>
>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>> Hi Richard,
>>>>
>>>> Where can I find documentation on launching Felix 2.0, similar to
>>>> this
>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>
>>>>
>>>> The AutoActivator class has been replaced with AutoProcessor, it is
>>>> not clear to me how exactly this class is to be configured and used.
>>>>
>>>> Any information you provide would help.
>>>>
>>>> Thanks,
>>>> Nikita
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/11/09 20:00, Nikita Sawant wrote:

> Hi Richard,
>
> I followed the instructions to launch Felix in the link below and am
> able to launch Felix successfully.
>
> Now, I can start and stop the felix instance  without any problem.
> When I install a bundle which has a BundleActivator, which is started
> by my host application I cannot activate the bundle, due to a
> ClassCastException:
>
> Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
>        at
> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>        at
> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>
>
> Note that I also have the org.osgi.core bundle installed in the felix
> runtime ( otherwise the bundle I am trying to activate above gives an
> unresolved constraint error for the org.osgi.framework package (
> version >=1.5 ).
>
> There seem to be two different definitions of BundleActivator. How do
> I resolve this issue?

You should not be installing the OSGi core API into the framework, this
will generally always be a bad idea.

There was a bug in Framework 2.0.0 that we were not exporting the
version of the OSGi packages with the correct version...that should fix
your issue.

However, you might want to make sure your bundle actually requires OSGi
R4.2 API, because it is best to specify the lowest possible version you
need.

-> richard

>
> The osgi core I am using is:
>
> org.osgi
> org.osgi.core
> 4.2.0
>
>
> Thanks,
> Nikita
>
> Richard S. Hall wrote:
>> There is a link to our wiki off the "documents" page of the web
>> site...the link to the actual document is:
>>
>>    
>> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>>
>>
>> I am not sure why are static site is not syncing with this
>> page...anyone else have any ideas?
>>
>> -> richard
>>
>>
>> On 10/7/09 21:13, Nikita Sawant wrote:
>>> Hi Richard,
>>>
>>> Can you provide me the link to the wiki, I could not find it.
>>>
>>> Thanks,
>>> Nikita
>>>
>>> Richard S. Hall wrote:
>>>> For some reason our wiki is not correctly being exported to create
>>>> our static site, so go directly to the wiki for now since it is up
>>>> to date...unfortunately, the wiki appears to be down right now for
>>>> me, so I can't give you the link.
>>>>
>>>> -> richard
>>>>
>>>>
>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>> Hi Richard,
>>>>>
>>>>> Where can I find documentation on launching Felix 2.0, similar to
>>>>> this
>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>
>>>>>
>>>>> The AutoActivator class has been replaced with AutoProcessor, it
>>>>> is not clear to me how exactly this class is to be configured and
>>>>> used.
>>>>>
>>>>> Any information you provide would help.
>>>>>
>>>>> Thanks,
>>>>> Nikita
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Nikita Sawant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the quick reply.

Ideally I would like to not install the osgi core api into the
framework, I had to cause the framework was not exporting it.

Using the latest Felix runtime should fix this issue, right?

Thanks,
Nikita

Richard S. Hall wrote:

> On 11/11/09 20:00, Nikita Sawant wrote:
>> Hi Richard,
>>
>> I followed the instructions to launch Felix in the link below and am
>> able to launch Felix successfully.
>>
>> Now, I can start and stop the felix instance  without any problem.
>> When I install a bundle which has a BundleActivator, which is started
>> by my host application I cannot activate the bundle, due to a
>> ClassCastException:
>>
>> Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
>>        at
>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>        at
>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>
>>
>> Note that I also have the org.osgi.core bundle installed in the felix
>> runtime ( otherwise the bundle I am trying to activate above gives an
>> unresolved constraint error for the org.osgi.framework package (
>> version >=1.5 ).
>>
>> There seem to be two different definitions of BundleActivator. How do
>> I resolve this issue?
>
> You should not be installing the OSGi core API into the framework,
> this will generally always be a bad idea.
>
> There was a bug in Framework 2.0.0 that we were not exporting the
> version of the OSGi packages with the correct version...that should
> fix your issue.
>
> However, you might want to make sure your bundle actually requires
> OSGi R4.2 API, because it is best to specify the lowest possible
> version you need.
>
> -> richard
>
>>
>> The osgi core I am using is:
>>
>> org.osgi
>> org.osgi.core
>> 4.2.0
>>
>>
>> Thanks,
>> Nikita
>>
>> Richard S. Hall wrote:
>>> There is a link to our wiki off the "documents" page of the web
>>> site...the link to the actual document is:
>>>
>>>    
>>> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>>>
>>>
>>> I am not sure why are static site is not syncing with this
>>> page...anyone else have any ideas?
>>>
>>> -> richard
>>>
>>>
>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>> Hi Richard,
>>>>
>>>> Can you provide me the link to the wiki, I could not find it.
>>>>
>>>> Thanks,
>>>> Nikita
>>>>
>>>> Richard S. Hall wrote:
>>>>> For some reason our wiki is not correctly being exported to create
>>>>> our static site, so go directly to the wiki for now since it is up
>>>>> to date...unfortunately, the wiki appears to be down right now for
>>>>> me, so I can't give you the link.
>>>>>
>>>>> -> richard
>>>>>
>>>>>
>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>> Hi Richard,
>>>>>>
>>>>>> Where can I find documentation on launching Felix 2.0, similar to
>>>>>> this
>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>
>>>>>>
>>>>>> The AutoActivator class has been replaced with AutoProcessor, it
>>>>>> is not clear to me how exactly this class is to be configured and
>>>>>> used.
>>>>>>
>>>>>> Any information you provide would help.
>>>>>>
>>>>>> Thanks,
>>>>>> Nikita
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/11/09 20:15, Nikita Sawant wrote:
> Thanks for the quick reply.
>
> Ideally I would like to not install the osgi core api into the
> framework, I had to cause the framework was not exporting it.

Still, if a bundle requires a version of org.osgi.framework that the
framework cannot satisfy, then installing it separately will only cause
problems like these.

> Using the latest Felix runtime should fix this issue, right?

2.0.2 should work...just download main 2.0.2 from the download page and
save it over your felix.jar file.

-> richard

>
> Thanks,
> Nikita
>
> Richard S. Hall wrote:
>> On 11/11/09 20:00, Nikita Sawant wrote:
>>> Hi Richard,
>>>
>>> I followed the instructions to launch Felix in the link below and am
>>> able to launch Felix successfully.
>>>
>>> Now, I can start and stop the felix instance  without any problem.
>>> When I install a bundle which has a BundleActivator, which is
>>> started by my host application I cannot activate the bundle, due to
>>> a ClassCastException:
>>>
>>> Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
>>>        at
>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>>        at
>>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>>
>>>
>>> Note that I also have the org.osgi.core bundle installed in the
>>> felix runtime ( otherwise the bundle I am trying to activate above
>>> gives an unresolved constraint error for the org.osgi.framework
>>> package ( version >=1.5 ).
>>>
>>> There seem to be two different definitions of BundleActivator. How
>>> do I resolve this issue?
>>
>> You should not be installing the OSGi core API into the framework,
>> this will generally always be a bad idea.
>>
>> There was a bug in Framework 2.0.0 that we were not exporting the
>> version of the OSGi packages with the correct version...that should
>> fix your issue.
>>
>> However, you might want to make sure your bundle actually requires
>> OSGi R4.2 API, because it is best to specify the lowest possible
>> version you need.
>>
>> -> richard
>>
>>>
>>> The osgi core I am using is:
>>>
>>> org.osgi
>>> org.osgi.core
>>> 4.2.0
>>>
>>>
>>> Thanks,
>>> Nikita
>>>
>>> Richard S. Hall wrote:
>>>> There is a link to our wiki off the "documents" page of the web
>>>> site...the link to the actual document is:
>>>>
>>>>    
>>>> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>>>>
>>>>
>>>> I am not sure why are static site is not syncing with this
>>>> page...anyone else have any ideas?
>>>>
>>>> -> richard
>>>>
>>>>
>>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>>> Hi Richard,
>>>>>
>>>>> Can you provide me the link to the wiki, I could not find it.
>>>>>
>>>>> Thanks,
>>>>> Nikita
>>>>>
>>>>> Richard S. Hall wrote:
>>>>>> For some reason our wiki is not correctly being exported to
>>>>>> create our static site, so go directly to the wiki for now since
>>>>>> it is up to date...unfortunately, the wiki appears to be down
>>>>>> right now for me, so I can't give you the link.
>>>>>>
>>>>>> -> richard
>>>>>>
>>>>>>
>>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>>> Hi Richard,
>>>>>>>
>>>>>>> Where can I find documentation on launching Felix 2.0, similar
>>>>>>> to this
>>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>>
>>>>>>>
>>>>>>> The AutoActivator class has been replaced with AutoProcessor, it
>>>>>>> is not clear to me how exactly this class is to be configured
>>>>>>> and used.
>>>>>>>
>>>>>>> Any information you provide would help.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Nikita
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Nikita Sawant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Richard,

Now I am using Framework 2.0.2, I get this exception:

ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError:
org.osgi.vendor.framework property not set)
java.lang.NoClassDefFoundError: org.osgi.vendor.framework property not set
        at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.osgi.framework.FrameworkUtil.<clinit>(FrameworkUtil.java:56)
        at
org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)


I saw a discussion elsewhere, where the cause for the above was having
the osgi.core in the classpath. I have removed osgi.core from my
classpath, is there any other cause for this error?

I am using maven 2.0.8

Thanks,
Nikita

Richard S. Hall wrote:

> On 11/11/09 20:15, Nikita Sawant wrote:
>> Thanks for the quick reply.
>>
>> Ideally I would like to not install the osgi core api into the
>> framework, I had to cause the framework was not exporting it.
>
> Still, if a bundle requires a version of org.osgi.framework that the
> framework cannot satisfy, then installing it separately will only
> cause problems like these.
>
>> Using the latest Felix runtime should fix this issue, right?
>
> 2.0.2 should work...just download main 2.0.2 from the download page
> and save it over your felix.jar file.
>
> -> richard
>
>>
>> Thanks,
>> Nikita
>>
>> Richard S. Hall wrote:
>>> On 11/11/09 20:00, Nikita Sawant wrote:
>>>> Hi Richard,
>>>>
>>>> I followed the instructions to launch Felix in the link below and
>>>> am able to launch Felix successfully.
>>>>
>>>> Now, I can start and stop the felix instance  without any problem.
>>>> When I install a bundle which has a BundleActivator, which is
>>>> started by my host application I cannot activate the bundle, due to
>>>> a ClassCastException:
>>>>
>>>> Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
>>>>        at
>>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>>>
>>>>        at
>>>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>>>
>>>>
>>>> Note that I also have the org.osgi.core bundle installed in the
>>>> felix runtime ( otherwise the bundle I am trying to activate above
>>>> gives an unresolved constraint error for the org.osgi.framework
>>>> package ( version >=1.5 ).
>>>>
>>>> There seem to be two different definitions of BundleActivator. How
>>>> do I resolve this issue?
>>>
>>> You should not be installing the OSGi core API into the framework,
>>> this will generally always be a bad idea.
>>>
>>> There was a bug in Framework 2.0.0 that we were not exporting the
>>> version of the OSGi packages with the correct version...that should
>>> fix your issue.
>>>
>>> However, you might want to make sure your bundle actually requires
>>> OSGi R4.2 API, because it is best to specify the lowest possible
>>> version you need.
>>>
>>> -> richard
>>>
>>>>
>>>> The osgi core I am using is:
>>>>
>>>> org.osgi
>>>> org.osgi.core
>>>> 4.2.0
>>>>
>>>>
>>>> Thanks,
>>>> Nikita
>>>>
>>>> Richard S. Hall wrote:
>>>>> There is a link to our wiki off the "documents" page of the web
>>>>> site...the link to the actual document is:
>>>>>
>>>>>    
>>>>> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>>>>>
>>>>>
>>>>> I am not sure why are static site is not syncing with this
>>>>> page...anyone else have any ideas?
>>>>>
>>>>> -> richard
>>>>>
>>>>>
>>>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>>>> Hi Richard,
>>>>>>
>>>>>> Can you provide me the link to the wiki, I could not find it.
>>>>>>
>>>>>> Thanks,
>>>>>> Nikita
>>>>>>
>>>>>> Richard S. Hall wrote:
>>>>>>> For some reason our wiki is not correctly being exported to
>>>>>>> create our static site, so go directly to the wiki for now since
>>>>>>> it is up to date...unfortunately, the wiki appears to be down
>>>>>>> right now for me, so I can't give you the link.
>>>>>>>
>>>>>>> -> richard
>>>>>>>
>>>>>>>
>>>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>>>> Hi Richard,
>>>>>>>>
>>>>>>>> Where can I find documentation on launching Felix 2.0, similar
>>>>>>>> to this
>>>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>>>
>>>>>>>>
>>>>>>>> The AutoActivator class has been replaced with AutoProcessor,
>>>>>>>> it is not clear to me how exactly this class is to be
>>>>>>>> configured and used.
>>>>>>>>
>>>>>>>> Any information you provide would help.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Nikita
>>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/11/09 21:01, Nikita Sawant wrote:

> Hi Richard,
>
> Now I am using Framework 2.0.2, I get this exception:
>
> ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError:
> org.osgi.vendor.framework property not set)
> java.lang.NoClassDefFoundError: org.osgi.vendor.framework property not
> set
>        at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at
> org.osgi.framework.FrameworkUtil.<clinit>(FrameworkUtil.java:56)
>        at
> org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)
>
>
>
> I saw a discussion elsewhere, where the cause for the above was having
> the osgi.core in the classpath. I have removed osgi.core from my
> classpath, is there any other cause for this error?

I am not sure what's up. Seems odd that it worked with 2.0.0 and not
with 2.0.2...are you sure you did everything the same way?

Try to start it the normal way with "java -jar bin/felix.jar"...

-> richard

>
> I am using maven 2.0.8
>
> Thanks,
> Nikita
>
> Richard S. Hall wrote:
>> On 11/11/09 20:15, Nikita Sawant wrote:
>>> Thanks for the quick reply.
>>>
>>> Ideally I would like to not install the osgi core api into the
>>> framework, I had to cause the framework was not exporting it.
>>
>> Still, if a bundle requires a version of org.osgi.framework that the
>> framework cannot satisfy, then installing it separately will only
>> cause problems like these.
>>
>>> Using the latest Felix runtime should fix this issue, right?
>>
>> 2.0.2 should work...just download main 2.0.2 from the download page
>> and save it over your felix.jar file.
>>
>> -> richard
>>
>>>
>>> Thanks,
>>> Nikita
>>>
>>> Richard S. Hall wrote:
>>>> On 11/11/09 20:00, Nikita Sawant wrote:
>>>>> Hi Richard,
>>>>>
>>>>> I followed the instructions to launch Felix in the link below and
>>>>> am able to launch Felix successfully.
>>>>>
>>>>> Now, I can start and stop the felix instance  without any problem.
>>>>> When I install a bundle which has a BundleActivator, which is
>>>>> started by my host application I cannot activate the bundle, due
>>>>> to a ClassCastException:
>>>>>
>>>>> Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
>>>>>        at
>>>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>>>>
>>>>>        at
>>>>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>>>>
>>>>>
>>>>> Note that I also have the org.osgi.core bundle installed in the
>>>>> felix runtime ( otherwise the bundle I am trying to activate above
>>>>> gives an unresolved constraint error for the org.osgi.framework
>>>>> package ( version >=1.5 ).
>>>>>
>>>>> There seem to be two different definitions of BundleActivator. How
>>>>> do I resolve this issue?
>>>>
>>>> You should not be installing the OSGi core API into the framework,
>>>> this will generally always be a bad idea.
>>>>
>>>> There was a bug in Framework 2.0.0 that we were not exporting the
>>>> version of the OSGi packages with the correct version...that should
>>>> fix your issue.
>>>>
>>>> However, you might want to make sure your bundle actually requires
>>>> OSGi R4.2 API, because it is best to specify the lowest possible
>>>> version you need.
>>>>
>>>> -> richard
>>>>
>>>>>
>>>>> The osgi core I am using is:
>>>>>
>>>>> org.osgi
>>>>> org.osgi.core
>>>>> 4.2.0
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Nikita
>>>>>
>>>>> Richard S. Hall wrote:
>>>>>> There is a link to our wiki off the "documents" page of the web
>>>>>> site...the link to the actual document is:
>>>>>>
>>>>>>    
>>>>>> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>>>>>>
>>>>>>
>>>>>> I am not sure why are static site is not syncing with this
>>>>>> page...anyone else have any ideas?
>>>>>>
>>>>>> -> richard
>>>>>>
>>>>>>
>>>>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>>>>> Hi Richard,
>>>>>>>
>>>>>>> Can you provide me the link to the wiki, I could not find it.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Nikita
>>>>>>>
>>>>>>> Richard S. Hall wrote:
>>>>>>>> For some reason our wiki is not correctly being exported to
>>>>>>>> create our static site, so go directly to the wiki for now
>>>>>>>> since it is up to date...unfortunately, the wiki appears to be
>>>>>>>> down right now for me, so I can't give you the link.
>>>>>>>>
>>>>>>>> -> richard
>>>>>>>>
>>>>>>>>
>>>>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>>>>> Hi Richard,
>>>>>>>>>
>>>>>>>>> Where can I find documentation on launching Felix 2.0, similar
>>>>>>>>> to this
>>>>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> The AutoActivator class has been replaced with AutoProcessor,
>>>>>>>>> it is not clear to me how exactly this class is to be
>>>>>>>>> configured and used.
>>>>>>>>>
>>>>>>>>> Any information you provide would help.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Nikita
>>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Karl Pauls :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible that you forgot to remove felix 2.0.0 from the classpath?

regards,

Karl

On Thu, Nov 12, 2009 at 3:01 AM, Nikita Sawant <Nikita.Sawant@...> wrote:

> Hi Richard,
>
> Now I am using Framework 2.0.2, I get this exception:
>
> ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError:
> org.osgi.vendor.framework property not set)
> java.lang.NoClassDefFoundError: org.osgi.vendor.framework property not set
>       at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at org.osgi.framework.FrameworkUtil.<clinit>(FrameworkUtil.java:56)
>       at
> org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)
>
>
> I saw a discussion elsewhere, where the cause for the above was having the
> osgi.core in the classpath. I have removed osgi.core from my classpath, is
> there any other cause for this error?
>
> I am using maven 2.0.8
>
> Thanks,
> Nikita
>
> Richard S. Hall wrote:
>>
>> On 11/11/09 20:15, Nikita Sawant wrote:
>>>
>>> Thanks for the quick reply.
>>>
>>> Ideally I would like to not install the osgi core api into the framework,
>>> I had to cause the framework was not exporting it.
>>
>> Still, if a bundle requires a version of org.osgi.framework that the
>> framework cannot satisfy, then installing it separately will only cause
>> problems like these.
>>
>>> Using the latest Felix runtime should fix this issue, right?
>>
>> 2.0.2 should work...just download main 2.0.2 from the download page and
>> save it over your felix.jar file.
>>
>> -> richard
>>
>>>
>>> Thanks,
>>> Nikita
>>>
>>> Richard S. Hall wrote:
>>>>
>>>> On 11/11/09 20:00, Nikita Sawant wrote:
>>>>>
>>>>> Hi Richard,
>>>>>
>>>>> I followed the instructions to launch Felix in the link below and am
>>>>> able to launch Felix successfully.
>>>>>
>>>>> Now, I can start and stop the felix instance  without any problem. When
>>>>> I install a bundle which has a BundleActivator, which is started by my host
>>>>> application I cannot activate the bundle, due to a ClassCastException:
>>>>>
>>>>> Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
>>>>>       at
>>>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>>>>       at
>>>>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>>>>
>>>>>
>>>>> Note that I also have the org.osgi.core bundle installed in the felix
>>>>> runtime ( otherwise the bundle I am trying to activate above gives an
>>>>> unresolved constraint error for the org.osgi.framework package ( version
>>>>> >=1.5 ).
>>>>>
>>>>> There seem to be two different definitions of BundleActivator. How do I
>>>>> resolve this issue?
>>>>
>>>> You should not be installing the OSGi core API into the framework, this
>>>> will generally always be a bad idea.
>>>>
>>>> There was a bug in Framework 2.0.0 that we were not exporting the
>>>> version of the OSGi packages with the correct version...that should fix your
>>>> issue.
>>>>
>>>> However, you might want to make sure your bundle actually requires OSGi
>>>> R4.2 API, because it is best to specify the lowest possible version you
>>>> need.
>>>>
>>>> -> richard
>>>>
>>>>>
>>>>> The osgi core I am using is:
>>>>>
>>>>> org.osgi
>>>>> org.osgi.core
>>>>> 4.2.0
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Nikita
>>>>>
>>>>> Richard S. Hall wrote:
>>>>>>
>>>>>> There is a link to our wiki off the "documents" page of the web
>>>>>> site...the link to the actual document is:
>>>>>>
>>>>>>
>>>>>>  http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding
>>>>>>
>>>>>> I am not sure why are static site is not syncing with this
>>>>>> page...anyone else have any ideas?
>>>>>>
>>>>>> -> richard
>>>>>>
>>>>>>
>>>>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>>>>>
>>>>>>> Hi Richard,
>>>>>>>
>>>>>>> Can you provide me the link to the wiki, I could not find it.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Nikita
>>>>>>>
>>>>>>> Richard S. Hall wrote:
>>>>>>>>
>>>>>>>> For some reason our wiki is not correctly being exported to create
>>>>>>>> our static site, so go directly to the wiki for now since it is up to
>>>>>>>> date...unfortunately, the wiki appears to be down right now for me, so I
>>>>>>>> can't give you the link.
>>>>>>>>
>>>>>>>> -> richard
>>>>>>>>
>>>>>>>>
>>>>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>>>>>
>>>>>>>>> Hi Richard,
>>>>>>>>>
>>>>>>>>> Where can I find documentation on launching Felix 2.0, similar to
>>>>>>>>> this
>>>>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>>>>
>>>>>>>>> The AutoActivator class has been replaced with AutoProcessor, it is
>>>>>>>>> not clear to me how exactly this class is to be configured and used.
>>>>>>>>>
>>>>>>>>> Any information you provide would help.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Nikita
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
Karl Pauls
karlpauls@...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Nikita Sawant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

osgi.core was being pulled in with a dependency, after removing that I
now get this :

"Unresolved constraint in bundle <bundle_name> : package;
(&(package=org.osgi.service.event)(version>=1.2.0))"

Thanks,
Nikita

Karl Pauls wrote:

> Is it possible that you forgot to remove felix 2.0.0 from the classpath?
>
> regards,
>
> Karl
>
> On Thu, Nov 12, 2009 at 3:01 AM, Nikita Sawant <Nikita.Sawant@...> wrote:
>  
>> Hi Richard,
>>
>> Now I am using Framework 2.0.2, I get this exception:
>>
>> ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError:
>> org.osgi.vendor.framework property not set)
>> java.lang.NoClassDefFoundError: org.osgi.vendor.framework property not set
>>       at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
>>       at java.security.AccessController.doPrivileged(Native Method)
>>       at org.osgi.framework.FrameworkUtil.<clinit>(FrameworkUtil.java:56)
>>       at
>> org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)
>>
>>
>> I saw a discussion elsewhere, where the cause for the above was having the
>> osgi.core in the classpath. I have removed osgi.core from my classpath, is
>> there any other cause for this error?
>>
>> I am using maven 2.0.8
>>
>> Thanks,
>> Nikita
>>
>> Richard S. Hall wrote:
>>    
>>> On 11/11/09 20:15, Nikita Sawant wrote:
>>>      
>>>> Thanks for the quick reply.
>>>>
>>>> Ideally I would like to not install the osgi core api into the framework,
>>>> I had to cause the framework was not exporting it.
>>>>        
>>> Still, if a bundle requires a version of org.osgi.framework that the
>>> framework cannot satisfy, then installing it separately will only cause
>>> problems like these.
>>>
>>>      
>>>> Using the latest Felix runtime should fix this issue, right?
>>>>        
>>> 2.0.2 should work...just download main 2.0.2 from the download page and
>>> save it over your felix.jar file.
>>>
>>> -> richard
>>>
>>>      
>>>> Thanks,
>>>> Nikita
>>>>
>>>> Richard S. Hall wrote:
>>>>        
>>>>> On 11/11/09 20:00, Nikita Sawant wrote:
>>>>>          
>>>>>> Hi Richard,
>>>>>>
>>>>>> I followed the instructions to launch Felix in the link below and am
>>>>>> able to launch Felix successfully.
>>>>>>
>>>>>> Now, I can start and stop the felix instance  without any problem. When
>>>>>> I install a bundle which has a BundleActivator, which is started by my host
>>>>>> application I cannot activate the bundle, due to a ClassCastException:
>>>>>>
>>>>>> Caused by: java.lang.ClassCastException: test.MyInterceptorActivator
>>>>>>       at
>>>>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>>>>>       at
>>>>>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>>>>>
>>>>>>
>>>>>> Note that I also have the org.osgi.core bundle installed in the felix
>>>>>> runtime ( otherwise the bundle I am trying to activate above gives an
>>>>>> unresolved constraint error for the org.osgi.framework package ( version
>>>>>>            
>>>>>>> =1.5 ).
>>>>>>>              
>>>>>> There seem to be two different definitions of BundleActivator. How do I
>>>>>> resolve this issue?
>>>>>>            
>>>>> You should not be installing the OSGi core API into the framework, this
>>>>> will generally always be a bad idea.
>>>>>
>>>>> There was a bug in Framework 2.0.0 that we were not exporting the
>>>>> version of the OSGi packages with the correct version...that should fix your
>>>>> issue.
>>>>>
>>>>> However, you might want to make sure your bundle actually requires OSGi
>>>>> R4.2 API, because it is best to specify the lowest possible version you
>>>>> need.
>>>>>
>>>>> -> richard
>>>>>
>>>>>          
>>>>>> The osgi core I am using is:
>>>>>>
>>>>>> org.osgi
>>>>>> org.osgi.core
>>>>>> 4.2.0
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Nikita
>>>>>>
>>>>>> Richard S. Hall wrote:
>>>>>>            
>>>>>>> There is a link to our wiki off the "documents" page of the web
>>>>>>> site...the link to the actual document is:
>>>>>>>
>>>>>>>
>>>>>>>  http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding
>>>>>>>
>>>>>>> I am not sure why are static site is not syncing with this
>>>>>>> page...anyone else have any ideas?
>>>>>>>
>>>>>>> -> richard
>>>>>>>
>>>>>>>
>>>>>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>>>>>              
>>>>>>>> Hi Richard,
>>>>>>>>
>>>>>>>> Can you provide me the link to the wiki, I could not find it.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Nikita
>>>>>>>>
>>>>>>>> Richard S. Hall wrote:
>>>>>>>>                
>>>>>>>>> For some reason our wiki is not correctly being exported to create
>>>>>>>>> our static site, so go directly to the wiki for now since it is up to
>>>>>>>>> date...unfortunately, the wiki appears to be down right now for me, so I
>>>>>>>>> can't give you the link.
>>>>>>>>>
>>>>>>>>> -> richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>>>>>                  
>>>>>>>>>> Hi Richard,
>>>>>>>>>>
>>>>>>>>>> Where can I find documentation on launching Felix 2.0, similar to
>>>>>>>>>> this
>>>>>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>>>>>
>>>>>>>>>> The AutoActivator class has been replaced with AutoProcessor, it is
>>>>>>>>>> not clear to me how exactly this class is to be configured and used.
>>>>>>>>>>
>>>>>>>>>> Any information you provide would help.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Nikita
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>>>                
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>>>              
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>>            
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>>          
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>>        
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>>    
>
>
>
>  


Re: Launching Felix 2.0

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 11/16/09 15:40, Nikita Sawant wrote:
> osgi.core was being pulled in with a dependency, after removing that I
> now get this :
>
> "Unresolved constraint in bundle <bundle_name> : package;
> (&(package=org.osgi.service.event)(version>=1.2.0))"

It seems like you need to install event admin, no?

-> richard

>
> Thanks,
> Nikita
>
> Karl Pauls wrote:
>> Is it possible that you forgot to remove felix 2.0.0 from the classpath?
>>
>> regards,
>>
>> Karl
>>
>> On Thu, Nov 12, 2009 at 3:01 AM, Nikita Sawant
>> <Nikita.Sawant@...> wrote:
>>> Hi Richard,
>>>
>>> Now I am using Framework 2.0.2, I get this exception:
>>>
>>> ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError:
>>> org.osgi.vendor.framework property not set)
>>> java.lang.NoClassDefFoundError: org.osgi.vendor.framework property
>>> not set
>>>       at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
>>>       at java.security.AccessController.doPrivileged(Native Method)
>>>       at
>>> org.osgi.framework.FrameworkUtil.<clinit>(FrameworkUtil.java:56)
>>>       at
>>> org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)
>>>
>>>
>>>
>>> I saw a discussion elsewhere, where the cause for the above was
>>> having the
>>> osgi.core in the classpath. I have removed osgi.core from my
>>> classpath, is
>>> there any other cause for this error?
>>>
>>> I am using maven 2.0.8
>>>
>>> Thanks,
>>> Nikita
>>>
>>> Richard S. Hall wrote:
>>>> On 11/11/09 20:15, Nikita Sawant wrote:
>>>>> Thanks for the quick reply.
>>>>>
>>>>> Ideally I would like to not install the osgi core api into the
>>>>> framework,
>>>>> I had to cause the framework was not exporting it.
>>>> Still, if a bundle requires a version of org.osgi.framework that the
>>>> framework cannot satisfy, then installing it separately will only
>>>> cause
>>>> problems like these.
>>>>
>>>>> Using the latest Felix runtime should fix this issue, right?
>>>> 2.0.2 should work...just download main 2.0.2 from the download page
>>>> and
>>>> save it over your felix.jar file.
>>>>
>>>> -> richard
>>>>
>>>>> Thanks,
>>>>> Nikita
>>>>>
>>>>> Richard S. Hall wrote:
>>>>>> On 11/11/09 20:00, Nikita Sawant wrote:
>>>>>>> Hi Richard,
>>>>>>>
>>>>>>> I followed the instructions to launch Felix in the link below
>>>>>>> and am
>>>>>>> able to launch Felix successfully.
>>>>>>>
>>>>>>> Now, I can start and stop the felix instance  without any
>>>>>>> problem. When
>>>>>>> I install a bundle which has a BundleActivator, which is started
>>>>>>> by my host
>>>>>>> application I cannot activate the bundle, due to a
>>>>>>> ClassCastException:
>>>>>>>
>>>>>>> Caused by: java.lang.ClassCastException:
>>>>>>> test.MyInterceptorActivator
>>>>>>>       at
>>>>>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>>>>>>
>>>>>>>       at
>>>>>>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>>>>>>
>>>>>>>
>>>>>>> Note that I also have the org.osgi.core bundle installed in the
>>>>>>> felix
>>>>>>> runtime ( otherwise the bundle I am trying to activate above
>>>>>>> gives an
>>>>>>> unresolved constraint error for the org.osgi.framework package (
>>>>>>> version
>>>>>>>> =1.5 ).
>>>>>>> There seem to be two different definitions of BundleActivator.
>>>>>>> How do I
>>>>>>> resolve this issue?
>>>>>> You should not be installing the OSGi core API into the
>>>>>> framework, this
>>>>>> will generally always be a bad idea.
>>>>>>
>>>>>> There was a bug in Framework 2.0.0 that we were not exporting the
>>>>>> version of the OSGi packages with the correct version...that
>>>>>> should fix your
>>>>>> issue.
>>>>>>
>>>>>> However, you might want to make sure your bundle actually
>>>>>> requires OSGi
>>>>>> R4.2 API, because it is best to specify the lowest possible
>>>>>> version you
>>>>>> need.
>>>>>>
>>>>>> -> richard
>>>>>>
>>>>>>> The osgi core I am using is:
>>>>>>>
>>>>>>> org.osgi
>>>>>>> org.osgi.core
>>>>>>> 4.2.0
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Nikita
>>>>>>>
>>>>>>> Richard S. Hall wrote:
>>>>>>>> There is a link to our wiki off the "documents" page of the web
>>>>>>>> site...the link to the actual document is:
>>>>>>>>
>>>>>>>>
>>>>>>>>  http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>>>>>>>>
>>>>>>>>
>>>>>>>> I am not sure why are static site is not syncing with this
>>>>>>>> page...anyone else have any ideas?
>>>>>>>>
>>>>>>>> -> richard
>>>>>>>>
>>>>>>>>
>>>>>>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>>>>>>> Hi Richard,
>>>>>>>>>
>>>>>>>>> Can you provide me the link to the wiki, I could not find it.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Nikita
>>>>>>>>>
>>>>>>>>> Richard S. Hall wrote:
>>>>>>>>>> For some reason our wiki is not correctly being exported to
>>>>>>>>>> create
>>>>>>>>>> our static site, so go directly to the wiki for now since it
>>>>>>>>>> is up to
>>>>>>>>>> date...unfortunately, the wiki appears to be down right now
>>>>>>>>>> for me, so I
>>>>>>>>>> can't give you the link.
>>>>>>>>>>
>>>>>>>>>> -> richard
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>>>>>>> Hi Richard,
>>>>>>>>>>>
>>>>>>>>>>> Where can I find documentation on launching Felix 2.0,
>>>>>>>>>>> similar to
>>>>>>>>>>> this
>>>>>>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> The AutoActivator class has been replaced with
>>>>>>>>>>> AutoProcessor, it is
>>>>>>>>>>> not clear to me how exactly this class is to be configured
>>>>>>>>>>> and used.
>>>>>>>>>>>
>>>>>>>>>>> Any information you provide would help.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Nikita
>>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Nikita Sawant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the event admin (1.0.0) bundle installed and started. The
manifest of this bundle indicates that version 1.1 of the
org.osgi.service.event package is exported ( and not 1.2 ):

Export-Package:
org.osgi.service.event;uses:="org.osgi.framework";version="1.1"



~ Nikita

Richard S. Hall wrote:

>
> On 11/16/09 15:40, Nikita Sawant wrote:
>> osgi.core was being pulled in with a dependency, after removing that
>> I now get this :
>>
>> "Unresolved constraint in bundle <bundle_name> : package;
>> (&(package=org.osgi.service.event)(version>=1.2.0))"
>
> It seems like you need to install event admin, no?
>
> -> richard
>
>>
>> Thanks,
>> Nikita
>>
>> Karl Pauls wrote:
>>> Is it possible that you forgot to remove felix 2.0.0 from the
>>> classpath?
>>>
>>> regards,
>>>
>>> Karl
>>>
>>> On Thu, Nov 12, 2009 at 3:01 AM, Nikita Sawant
>>> <Nikita.Sawant@...> wrote:
>>>> Hi Richard,
>>>>
>>>> Now I am using Framework 2.0.2, I get this exception:
>>>>
>>>> ERROR: Unable to start system bundle. (java.lang.NoClassDefFoundError:
>>>> org.osgi.vendor.framework property not set)
>>>> java.lang.NoClassDefFoundError: org.osgi.vendor.framework property
>>>> not set
>>>>       at org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
>>>>       at java.security.AccessController.doPrivileged(Native Method)
>>>>       at
>>>> org.osgi.framework.FrameworkUtil.<clinit>(FrameworkUtil.java:56)
>>>>       at
>>>> org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)
>>>>
>>>>
>>>>
>>>> I saw a discussion elsewhere, where the cause for the above was
>>>> having the
>>>> osgi.core in the classpath. I have removed osgi.core from my
>>>> classpath, is
>>>> there any other cause for this error?
>>>>
>>>> I am using maven 2.0.8
>>>>
>>>> Thanks,
>>>> Nikita
>>>>
>>>> Richard S. Hall wrote:
>>>>> On 11/11/09 20:15, Nikita Sawant wrote:
>>>>>> Thanks for the quick reply.
>>>>>>
>>>>>> Ideally I would like to not install the osgi core api into the
>>>>>> framework,
>>>>>> I had to cause the framework was not exporting it.
>>>>> Still, if a bundle requires a version of org.osgi.framework that the
>>>>> framework cannot satisfy, then installing it separately will only
>>>>> cause
>>>>> problems like these.
>>>>>
>>>>>> Using the latest Felix runtime should fix this issue, right?
>>>>> 2.0.2 should work...just download main 2.0.2 from the download
>>>>> page and
>>>>> save it over your felix.jar file.
>>>>>
>>>>> -> richard
>>>>>
>>>>>> Thanks,
>>>>>> Nikita
>>>>>>
>>>>>> Richard S. Hall wrote:
>>>>>>> On 11/11/09 20:00, Nikita Sawant wrote:
>>>>>>>> Hi Richard,
>>>>>>>>
>>>>>>>> I followed the instructions to launch Felix in the link below
>>>>>>>> and am
>>>>>>>> able to launch Felix successfully.
>>>>>>>>
>>>>>>>> Now, I can start and stop the felix instance  without any
>>>>>>>> problem. When
>>>>>>>> I install a bundle which has a BundleActivator, which is
>>>>>>>> started by my host
>>>>>>>> application I cannot activate the bundle, due to a
>>>>>>>> ClassCastException:
>>>>>>>>
>>>>>>>> Caused by: java.lang.ClassCastException:
>>>>>>>> test.MyInterceptorActivator
>>>>>>>>       at
>>>>>>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>>>>>>>
>>>>>>>>
>>>>>>>> Note that I also have the org.osgi.core bundle installed in the
>>>>>>>> felix
>>>>>>>> runtime ( otherwise the bundle I am trying to activate above
>>>>>>>> gives an
>>>>>>>> unresolved constraint error for the org.osgi.framework package
>>>>>>>> ( version
>>>>>>>>> =1.5 ).
>>>>>>>> There seem to be two different definitions of BundleActivator.
>>>>>>>> How do I
>>>>>>>> resolve this issue?
>>>>>>> You should not be installing the OSGi core API into the
>>>>>>> framework, this
>>>>>>> will generally always be a bad idea.
>>>>>>>
>>>>>>> There was a bug in Framework 2.0.0 that we were not exporting the
>>>>>>> version of the OSGi packages with the correct version...that
>>>>>>> should fix your
>>>>>>> issue.
>>>>>>>
>>>>>>> However, you might want to make sure your bundle actually
>>>>>>> requires OSGi
>>>>>>> R4.2 API, because it is best to specify the lowest possible
>>>>>>> version you
>>>>>>> need.
>>>>>>>
>>>>>>> -> richard
>>>>>>>
>>>>>>>> The osgi core I am using is:
>>>>>>>>
>>>>>>>> org.osgi
>>>>>>>> org.osgi.core
>>>>>>>> 4.2.0
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Nikita
>>>>>>>>
>>>>>>>> Richard S. Hall wrote:
>>>>>>>>> There is a link to our wiki off the "documents" page of the web
>>>>>>>>> site...the link to the actual document is:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I am not sure why are static site is not syncing with this
>>>>>>>>> page...anyone else have any ideas?
>>>>>>>>>
>>>>>>>>> -> richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>>>>>>>> Hi Richard,
>>>>>>>>>>
>>>>>>>>>> Can you provide me the link to the wiki, I could not find it.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Nikita
>>>>>>>>>>
>>>>>>>>>> Richard S. Hall wrote:
>>>>>>>>>>> For some reason our wiki is not correctly being exported to
>>>>>>>>>>> create
>>>>>>>>>>> our static site, so go directly to the wiki for now since it
>>>>>>>>>>> is up to
>>>>>>>>>>> date...unfortunately, the wiki appears to be down right now
>>>>>>>>>>> for me, so I
>>>>>>>>>>> can't give you the link.
>>>>>>>>>>>
>>>>>>>>>>> -> richard
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>>>>>>>> Hi Richard,
>>>>>>>>>>>>
>>>>>>>>>>>> Where can I find documentation on launching Felix 2.0,
>>>>>>>>>>>> similar to
>>>>>>>>>>>> this
>>>>>>>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> The AutoActivator class has been replaced with
>>>>>>>>>>>> AutoProcessor, it is
>>>>>>>>>>>> not clear to me how exactly this class is to be configured
>>>>>>>>>>>> and used.
>>>>>>>>>>>>
>>>>>>>>>>>> Any information you provide would help.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Nikita
>>>>>>>>>>>>
>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Launching Felix 2.0

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/16/09 20:24, Nikita Sawant wrote:
> I have the event admin (1.0.0) bundle installed and started. The
> manifest of this bundle indicates that version 1.1 of the
> org.osgi.service.event package is exported ( and not 1.2 ):
>
> Export-Package:
> org.osgi.service.event;uses:="org.osgi.framework";version="1.1"

It seems we are not seeing the big picture of your scenario. I am not
sure what your overall setup is, but this is the normal part of OSGi.

The framework verifies that all dependencies are satisfied. If they
aren't, then you must install the bundles that satisfy them. If you have
a bundle that requires Event Admin 1.2, then you need to install a
bundle that exports it.

Before trying to create a custom launcher for the framework, I would
install all of your bundles into the framework using the shell and
trying to get all of the dependencies resolved manually first. Then the
launching part should be pretty simple.

-> richard

>
>
>
> ~ Nikita
>
> Richard S. Hall wrote:
>>
>> On 11/16/09 15:40, Nikita Sawant wrote:
>>> osgi.core was being pulled in with a dependency, after removing that
>>> I now get this :
>>>
>>> "Unresolved constraint in bundle <bundle_name> : package;
>>> (&(package=org.osgi.service.event)(version>=1.2.0))"
>>
>> It seems like you need to install event admin, no?
>>
>> -> richard
>>
>>>
>>> Thanks,
>>> Nikita
>>>
>>> Karl Pauls wrote:
>>>> Is it possible that you forgot to remove felix 2.0.0 from the
>>>> classpath?
>>>>
>>>> regards,
>>>>
>>>> Karl
>>>>
>>>> On Thu, Nov 12, 2009 at 3:01 AM, Nikita Sawant
>>>> <Nikita.Sawant@...> wrote:
>>>>> Hi Richard,
>>>>>
>>>>> Now I am using Framework 2.0.2, I get this exception:
>>>>>
>>>>> ERROR: Unable to start system bundle.
>>>>> (java.lang.NoClassDefFoundError:
>>>>> org.osgi.vendor.framework property not set)
>>>>> java.lang.NoClassDefFoundError: org.osgi.vendor.framework property
>>>>> not set
>>>>>       at
>>>>> org.osgi.framework.FrameworkUtil$1.run(FrameworkUtil.java:62)
>>>>>       at java.security.AccessController.doPrivileged(Native Method)
>>>>>       at
>>>>> org.osgi.framework.FrameworkUtil.<clinit>(FrameworkUtil.java:56)
>>>>>       at
>>>>> org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:102)
>>>>>
>>>>>
>>>>>
>>>>> I saw a discussion elsewhere, where the cause for the above was
>>>>> having the
>>>>> osgi.core in the classpath. I have removed osgi.core from my
>>>>> classpath, is
>>>>> there any other cause for this error?
>>>>>
>>>>> I am using maven 2.0.8
>>>>>
>>>>> Thanks,
>>>>> Nikita
>>>>>
>>>>> Richard S. Hall wrote:
>>>>>> On 11/11/09 20:15, Nikita Sawant wrote:
>>>>>>> Thanks for the quick reply.
>>>>>>>
>>>>>>> Ideally I would like to not install the osgi core api into the
>>>>>>> framework,
>>>>>>> I had to cause the framework was not exporting it.
>>>>>> Still, if a bundle requires a version of org.osgi.framework that the
>>>>>> framework cannot satisfy, then installing it separately will only
>>>>>> cause
>>>>>> problems like these.
>>>>>>
>>>>>>> Using the latest Felix runtime should fix this issue, right?
>>>>>> 2.0.2 should work...just download main 2.0.2 from the download
>>>>>> page and
>>>>>> save it over your felix.jar file.
>>>>>>
>>>>>> -> richard
>>>>>>
>>>>>>> Thanks,
>>>>>>> Nikita
>>>>>>>
>>>>>>> Richard S. Hall wrote:
>>>>>>>> On 11/11/09 20:00, Nikita Sawant wrote:
>>>>>>>>> Hi Richard,
>>>>>>>>>
>>>>>>>>> I followed the instructions to launch Felix in the link below
>>>>>>>>> and am
>>>>>>>>> able to launch Felix successfully.
>>>>>>>>>
>>>>>>>>> Now, I can start and stop the felix instance  without any
>>>>>>>>> problem. When
>>>>>>>>> I install a bundle which has a BundleActivator, which is
>>>>>>>>> started by my host
>>>>>>>>> application I cannot activate the bundle, due to a
>>>>>>>>> ClassCastException:
>>>>>>>>>
>>>>>>>>> Caused by: java.lang.ClassCastException:
>>>>>>>>> test.MyInterceptorActivator
>>>>>>>>>       at
>>>>>>>>> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3525)
>>>>>>>>>
>>>>>>>>>       at
>>>>>>>>> org.apache.felix.framework.Felix.activateBundle(Felix.java:1694)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Note that I also have the org.osgi.core bundle installed in
>>>>>>>>> the felix
>>>>>>>>> runtime ( otherwise the bundle I am trying to activate above
>>>>>>>>> gives an
>>>>>>>>> unresolved constraint error for the org.osgi.framework package
>>>>>>>>> ( version
>>>>>>>>>> =1.5 ).
>>>>>>>>> There seem to be two different definitions of BundleActivator.
>>>>>>>>> How do I
>>>>>>>>> resolve this issue?
>>>>>>>> You should not be installing the OSGi core API into the
>>>>>>>> framework, this
>>>>>>>> will generally always be a bad idea.
>>>>>>>>
>>>>>>>> There was a bug in Framework 2.0.0 that we were not exporting the
>>>>>>>> version of the OSGi packages with the correct version...that
>>>>>>>> should fix your
>>>>>>>> issue.
>>>>>>>>
>>>>>>>> However, you might want to make sure your bundle actually
>>>>>>>> requires OSGi
>>>>>>>> R4.2 API, because it is best to specify the lowest possible
>>>>>>>> version you
>>>>>>>> need.
>>>>>>>>
>>>>>>>> -> richard
>>>>>>>>
>>>>>>>>> The osgi core I am using is:
>>>>>>>>>
>>>>>>>>> org.osgi
>>>>>>>>> org.osgi.core
>>>>>>>>> 4.2.0
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Nikita
>>>>>>>>>
>>>>>>>>> Richard S. Hall wrote:
>>>>>>>>>> There is a link to our wiki off the "documents" page of the web
>>>>>>>>>> site...the link to the actual document is:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Framework+Launching+and+Embedding 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I am not sure why are static site is not syncing with this
>>>>>>>>>> page...anyone else have any ideas?
>>>>>>>>>>
>>>>>>>>>> -> richard
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 10/7/09 21:13, Nikita Sawant wrote:
>>>>>>>>>>> Hi Richard,
>>>>>>>>>>>
>>>>>>>>>>> Can you provide me the link to the wiki, I could not find it.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Nikita
>>>>>>>>>>>
>>>>>>>>>>> Richard S. Hall wrote:
>>>>>>>>>>>> For some reason our wiki is not correctly being exported to
>>>>>>>>>>>> create
>>>>>>>>>>>> our static site, so go directly to the wiki for now since
>>>>>>>>>>>> it is up to
>>>>>>>>>>>> date...unfortunately, the wiki appears to be down right now
>>>>>>>>>>>> for me, so I
>>>>>>>>>>>> can't give you the link.
>>>>>>>>>>>>
>>>>>>>>>>>> -> richard
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 10/7/09 0:37, Nikita Sawant wrote:
>>>>>>>>>>>>> Hi Richard,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Where can I find documentation on launching Felix 2.0,
>>>>>>>>>>>>> similar to
>>>>>>>>>>>>> this
>>>>>>>>>>>>> <http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html#ApacheFelixFrameworkLaunchingandEmbedding-standardlauncher>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> The AutoActivator class has been replaced with
>>>>>>>>>>>>> AutoProcessor, it is
>>>>>>>>>>>>> not clear to me how exactly this class is to be configured
>>>>>>>>>>>>> and used.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Any information you provide would help.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Nikita
>>>>>>>>>>>>>
>>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>>
>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>>> For additional commands, e-mail: users-help@...
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>> For additional commands, e-mail: users-help@...
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...