Ask Your Question
0

karaf integration

asked 2014-08-27 04:52:13 -0700

JYOTI111111 gravatar image

I am facing some issues related to karaf integration with my project, kindly help as soon as possible.I have plugin2oc(my project) module within opendaylight controller.Within plugin2oc I have created features directory which contains pom.xml and under src/main/resources I have created feature.xml relative to that pom.xml.Now, I have copied opendaylight-karaf container which is bydefault available in the controller to my plugin2oc module and copied the generated .kar file inside opendaylight/plugin2oc/opendaylight-karaf/target/distribution.opendaylight-karaf-1.4.2-SNAPSHOT/deploy/ directory.On executing feature:list command on karaf container it is displaying my feature but when I am executing bundle:list command it is showing no bundles.Please let me know why this is happening?Also,please let me know what should be the output on the karaf screen which confirms that my feature is working perfectly?I mean reflecting feature list and bundle list on running karaf is the end output or there is some other checkpoints also?

Within /controller/opendaylight/plugin2oc/opendaylight-karaf/target/distribution.opendaylight-karaf-1.4.2-SNAPSHOT/data/kar folder all the bundles and features files related to plugin2oc-features are getting reflected.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-28 11:54:10 -0700

Madhu gravatar image

updated 2014-08-30 10:40:50 -0700

Your questions are too specific to your usecase and hence question subject must reflect that to help others to use ask.opendaylight.org . Also, it is recommended to ask the generic questions as a different question so that everyone can benefit out of it.

Let me try go answer the generic question first. The BEST way to know if your feature is working on karaf is to test that feature. There is NO alternative to that. The next best thing is to enable logs and check the logs. log:set debug <your-bundle-package></your-bundle-package> followed by log:display or log:tail. Ultimately, you can always use feature:list and bundle:list -s (please note that i prefer -s because it gives the bundle identifier and not the bundle name).

Also you can enable traditional Java debugging by starting karaf container using the debug option karaf -debug and you can debug your application through traditional means (using eclipse or intellij)

Please try the above hint and get back to us if you have questions.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2014-08-27 04:52:13 -0700

Seen: 545 times

Last updated: Aug 30 '14