log4j

2012-05-03 Thread maaruks
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); }

classpath resources in generated bundle

2012-05-04 Thread maaruks
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

service reference is null after service reinstall

2012-05-16 Thread maaruks
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

Re: service reference is null after service reinstall

2012-05-16 Thread maaruks
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:

Bundle is not compatible with this blueprint extender

2012-06-19 Thread maaruks
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: