Is it possible to use log4j in karaf ?
I have log4j classes in my bundle but I cant access them:
try {
Class? aClass = Class.forName(org.apache.log4j.Appender);
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
I generated bundle from a jar file.
There is some some spring code that needs to access classpath resources from
*conf* directory.
Of course it doesn't work:
Caused by: java.io.FileNotFoundException: class path resource
[conf/core-defaults.properties] cannot be opened because it does not exist
I have got service provider in one bundle and consumer in other.
If I reinstall (stop, uninstall, install and start) service provider then
consumer can't get reference to the service anymore.
Here is service consumer code:
It keeps printing ServiceReference is null although provider has
Service interface is in service bundle only. Package is exported by
service bundle and imported in consumer bundle.
BTWIf I simply stop and start service bundle then consumer can get
service reference without problems.
--
View this message in context:
I have a bundle that uses blueprint. When I try to activate it
BlueprintExtender prints this:
Bundle ... is not compatible with this blueprint extender
Why is my bundle not compatible ? Because it uses spring 3 ?
--
View this message in context: