Thank you,
Sahoo
Felix Meschberger wrote:
Hi Sahoo,
As Marcel Offermans noted, this is most certainly a bug in the Web
Console. The intent was, as is reflected in the optional resolution of
the org.osgi.service.log package, that the WebConsole might run without
a LogService API available.
But as Tony Menzel rightly says, it is probably ok for the Web Console
to just require the org.osgi.service.log package and fail to resolve if
missing.
On the other hand, fixing this is trivial enough: The Logger class does
a "LogService.class.getName()" to specify the name of the LogService for
the ServiceTracker. By just using a String constant, which does not use
the LogService class, this can be fixed and the Web Console can be run
without the LogService package.
I have created FELIX-916 for this and committed a fix in Rev. 740435.
Regards
Felix
Sahoo schrieb:
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]
---------------------------------------------------------------------
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]