Sounds like a bug to have it as optional but still require it at runtime (if the console actually does not work). The implementation might want to use reflection to see if the classes are available at runtime. For an example of that, look at the actual framework code that does something similar.

On Feb 3, 2009, at 15:22 , Toni Menzel wrote:

Its org.osgi.service.*;resolution:=optional,* in webconsole. I don't see why
this is optional while they do not provide it (included) themselves.
Actually it makes webconsole crash, right, Sahoo ?


On Tue, Feb 3, 2009 at 3:19 PM, Toni Menzel <[email protected]> wrote:

Well, org.osgi.service.log.LogService should be provided by the compendium
which you need to have installed.
I wonder why webconsole does not require it at resolve time..
(import-package)


On Tue, Feb 3, 2009 at 3:15 PM, Sahoo <[email protected]> wrote:

Contrary to the documentation [1], I am getting following error if I try to start Felix web console (version 1.2.2) in an environment that does not
have OSGi log service:
SEVERE: Caused by: java.lang.NoClassDefFoundError:
org.osgi.service.log.LogService
Feb 3, 2009 6:21:26 PM SEVERE:         at
org.apache.felix.webconsole.internal.Logger.class$(Logger.java:35)
Feb 3, 2009 6:21:26 PM SEVERE:         at
org.apache.felix.webconsole.internal.Logger.<init>(Logger.java:35)
Feb 3, 2009 6:21:26 PM SEVERE:         at
org .apache .felix .webconsole.internal.servlet.OsgiManager.<init>(OsgiManager.java: 170)
Feb 3, 2009 6:21:26 PM SEVERE:         at
org .apache .felix .webconsole .internal.OsgiManagerActivator.start(OsgiManagerActivator.java:35)
Feb 3, 2009 6:21:26 PM SEVERE:         at
org .apache .felix .framework.util.SecureAction.startActivator(SecureAction.java:591)
Feb 3, 2009 6:21:26 PM SEVERE:         at
org.apache.felix.framework.Felix._startBundle(Felix.java:1607)
Feb 3, 2009 6:21:26 PM
To work around this, I had to install Apache Felix Log Service
(0.9.0.SNAPSHOT).

Thanks,
Sahoo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




--
Toni Menzel
Software Developer
[email protected]
http://www.ops4j.org     - New Energy for OSS Communities - Open
Participation Software.




--
Toni Menzel
Software Developer
[email protected]
http://www.ops4j.org     - New Energy for OSS Communities - Open
Participation Software.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to