[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Missing constraint:Import-Package: org.osgi.service.cm; version="1.0.0"

Hi,
I am new to osgi.I am trying to import org.osgi.equinox.log bundle to my bundle.
I have downloaded this bundle from eclipse/equinox downloads explicitly.When I try to start the bundle,I am getting the below error.I tried starting it from config.ini automatically by adding this line to osgi.bundles:


osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start,org.eclipse.equinox.log_1.1.0.v20080414.jar.jar@xxxxxxx
org.eclipse.equinox.log gets installed but starting the bundle is throwing this error stated below.



Can you please help me out in resolving the issue. Thanks in advance, Karthika.


---------------------------------------------------------------------------- Framework is launched.

id	State       Bundle
0	ACTIVE      org.eclipse.osgi_3.4.3.R34x_v20081215-1030
20	RESOLVED    com.javaworld.sample.CalculatorService_1.0.0
27	RESOLVED    com.javaworld.sample.HelloWorld_1.0.0
30	ACTIVE      file:C:\Eclipse\eclipse\plugins\log.jar [30]
32	INSTALLED   org.eclipse.equinox.log_1.1.0.v20080414
34	ACTIVE      com.javaworld.sample.CalculatorClient_1.0.0

osgi> start 32
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.osgi.service.cm; version="1.0.0"
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
at java.lang.Thread.run(Unknown Source)