我正在尝试使用apache-karaf 2.3.10安装一个OSGi包,其中包含我已经在此link中发布的示例。我执行了以下步骤
1. Downloaded apache-karaf version 2.3.10
2. Executed the command features:install scr. Successfully installed scr. I have verified by executing scr:list
3. Installed all the bundles
4. Finally after starting all the bundles activate method in ExampleComponentFactoryManager called twice and two objects are created. I have verified the same by executing the command scr:list
5. After uninstalling the scr feature the activate method in ExampleComponentFactoryManager called only once which is the expected behaviour.
6. Also i have noted that upto apache-karaf-2.3.10 while installing the scr feature it fetches from the online repo. But from 2.3.11 i am getting error because it tries to fetch it from my maven repository. The error is shown the console.谁能告诉我karaf中的功能scr发生了什么?因为有了scr特性,我可以看到karaf中有哪些可用工厂和实例。这是预期的吗?
发布于 2015-11-08 23:21:16
您是否可以检查是否有两个felix scr包实例正在运行。这就解释了双重对象的创建。
https://stackoverflow.com/questions/33595375
复制相似问题