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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]