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
<[email protected]> 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: [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]
---------------------------------------------------------------------
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]