Re: Karaf blueprint Failure while extending console

2014-05-30 Thread SapnaB
Hi All, Im using Karaf 2.3.2 and face the same issue (test:hello Command not found) while executing the sample console extension project on the Karaf Manual: http://karaf.apache.org/manual/latest-2.2.x/developers-guide/extending-console.html Is there resolution for this problem? osgi:list

Re: Karaf blueprint Failure while extending console

2014-05-30 Thread SapnaB
Hi All, In continuation with the above post, in the log files, I see 2014-05-29 23:15:04,448 | ERROR | l Console Thread | BlueprintContainerImpl | container.BlueprintContainerImpl 393 | 7 - org.apache.aries.blueprint.core - 1.1.0 | *Unable to start blueprint container for bundle

Re: Karaf blueprint Failure while extending console

2014-05-30 Thread SapnaB
Hi Krzysztof, i created the bundle project using mvn archetype, and then generated an eclipse project from maven using mvn eclipse:eclipse. The project was bundled using mvn install. I the jar, I do see a manifest.mf with the following entries: Manifest-Version: 1.0 Archiver-Version: Plexus

Re: Karaf blueprint Failure while extending console

2014-06-02 Thread SapnaB
Hi, I did use the maven-bundle-plugin to bundle the plugin and have the relevant manifest now. The build is successful, but when I try and start the bundle in karaf, I get the following exception: ERROR: Bundle org.apache.karaf.shell.samples.shell-sample-commands [98] Error starting

Re: Karaf blueprint Failure while extending console

2014-06-02 Thread SapnaB
Hi JB, I used maven 3.2.1 (mvn archetype:create) to create the command bundle. Im usign Karaf 2.3.2 and the manual Im referring to is : http://karaf.apache.org/manual/latest-2.2.x/developers-guide/extending-console.html The maven dependency to karaf shell console is as below: dependency

Re: Karaf blueprint Failure while extending console

2014-06-02 Thread SapnaB
Hi All, Thanks for all the suggestions. I could now execute the bundle. I uninstalled the existing erroneous bundle and installed again. That did away with the incorrect dependency on org.apache.*felix*.karaf.shell.console. Regards, Sapna -- View this message in context:

Missing Constraint: Import-Package: com.sun.jersey.api.client

2014-06-16 Thread SapnaB
Hi All, I have added some client code in my osgi bundle using jersey. I have added jersey-bundle dependency in my pom.xml as below: dependency groupIdcom.sun.jersey/groupId artifactIdjersey-bundle/artifactId version1.18.1/version /dependency The imported packages in my

Re: Missing Constraint: Import-Package: com.sun.jersey.api.client

2014-06-16 Thread SapnaB
Hi Matt, I installed all the required jersey jars in karaf and started them too as below: install mvn:com.sun.jersey/jersey-core/1.18.1 install mvn:com.sun.jersey/jersey-server/1.18.1 install mvn:javax.ws.rs/jsr311-api/1.1.1 install mvn:com.sun.jersey/jersey-json/1.18.1 install

Re: Missing Constraint: Import-Package: com.sun.jersey.api.client

2014-06-16 Thread SapnaB
Hi Matt, I get manifest headers as well as the import/export packages with dependencies, when I run osgi:headers on the above Bundle ids. The command run on my bundle gives: Apache Karaf :: Shell test/test-mcds Commands (370) ---

Re: Missing Constraint: Import-Package: com.sun.jersey.api.client

2014-06-17 Thread SapnaB
Is there a way I can add jersey jars as bundles in Karaf libs. That way when I start Karaf, these bundles will be loaded at startup and all the classes will be available at runtime. From the error message, I understand that Karaf is unable to resolve this dependency: Reason: Missing Constraint:

Re: Missing Constraint: Import-Package: com.sun.jersey.api.client

2014-06-17 Thread SapnaB
Did that too.. Uninstalled all the jersey jars I had deployed earlier on Karaf, and re-deployed using the wrap command. Also re-installed my bundle.. but the problem still exists. I wish Karaf gave more explanatory error messages. I really cant find anything to resolve this exception :( Unable

Re: Missing Constraint: Import-Package: com.sun.jersey.api.client

2014-06-17 Thread SapnaB
Hi All, Thanks for the help. I was able to resolve the issue by installing jersey-client using the wrap command. Package *com.sun.jersey.api.client* is under jerser-client jar which was earlier not installed in Karaf. Thanks, Sapna -- View this message in context:

Karaf does not startup on Windows 7

2014-06-30 Thread SapnaB
Hi All, Im trying to start the Apache Karaf(both 2.3.2 and 3.0.1) from Windows 7, but keep getting the following error message: karaf.bat: Ignoring predefined value for KARAF_HOME Unable to update instance pid: Child instance started but no root registered in

Re: Karaf does not startup on Windows 7

2014-06-30 Thread SapnaB
Hi JB, Yes, thats how I start the Karaf instance. Both versions(2.3.2, 3.0.1) work fine in linux, but im unable to get them working in Windows 7. Thanks, Sapna -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033880.html Sent

Re: Karaf unable to start in Eclipse Juno

2014-06-30 Thread SapnaB
Hi All, I see lot of similar issues of NPE, or inability to start karaf from eclipse in the link below: https://code.google.com/a/eclipselabs.org/p/eik/issues/list Is a resolution available to these problems in any new Karaf version? I have tried the following EIK versions, and none of them

Re: Karaf does not startup on Windows 7

2014-07-01 Thread SapnaB
Hi Christoph, Im using JDK 1.6. JAVA_HOME is set to : C:\Program Files\Java\jdk1.6.0_24 Regards, Sapna -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033902.html Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Karaf does not startup on Windows 7

2014-07-01 Thread SapnaB
Sorry, I should have mentioned that too. Yes its Sun/Oracle JDK. Regards, Sapna -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-does-not-startup-on-Windows-7-tp4033876p4033906.html Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Karaf does not startup on Windows 7

2014-07-01 Thread SapnaB
Hi Christoph, I tried with Sun JDK 1.7 by setting the JAVA_HOME to C:\Program Files\Java\jdk1.7.0_60. I still get the same error: D:\OSGi\apache-karaf-2.3.2bin\karaf.bat karaf.bat: Ignoring predefined value for KARAF_HOME Unable to update instance pid: Child instance started but no root

Re: Karaf does not startup on Windows 7

2014-07-01 Thread SapnaB
Hi Achim, I tried running as an admin.. No luck, gives me the same error. Is Maven a prerequisite? I havent installed that in my system. What does the error highlighted below mean? Looks to me to be reference to maven repository. Karaf can't startup, make sure the log file can be accessed and

Re: Karaf does not startup on Windows 7

2014-07-01 Thread SapnaB
Hi JB, Achim, Iv installed Maven now and tried to start karaf 2.3.2. Same error. Here are snippets from the cmd: C:\Users\sapbhargmvn --version Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T19:21:4 2+05:30) Maven home: C:\Program Files\Apache\apache-maven-3.2.2 Java

Re: apache-karaf-3.0.1-src.tar.gz is just 9KB when downloaded

2014-07-03 Thread SapnaB
Thanks JB, I directly downloaded apache-karaf-3.0.1.tar.gz from the mirror location specified by you. http://mirrors.ircam.fr/pub/apache/karaf/3.0.1/ Regards, Sapna -- View this message in context:

Re: Karaf does not startup on Windows 7

2014-07-03 Thread SapnaB
Hi JB, I didnt mention it in the forum, but exactly as you said, 3.0.1 gets stuck while starting. The background processes of loading the bundles goes on, because I could see the log file and instance.properties getting updated, but it just doesn't start up. I havent tried 2.3.5 yet. 2.3.2

db commands not available in Karaf 2.3.2

2014-07-08 Thread SapnaB
Hi All, Im using Karaf 2.3.2 and need to interact with Derby DB through my bundles. I have installed the Derby driver 10.10.1.1 as directed in http://www.liquid-reality.de/display/liquid/2012/01/13/Apache+Karaf+Tutorial+Part+6+-+Database+Access I have also deployed the datasource-derby.xml

Re: db commands not available in Karaf 2.3.2

2014-07-08 Thread SapnaB
Hi Achim, Does this mean that since my derby jars are now deployed in Karaf 2.3.2, I can use the derby datasource in my bundle to interact with the Derby DB? Just that I wont be able to view the DB data through Karaf since 2.3.2 does not support db commands. Thanks, Sapna -- View this

Re: db commands not available in Karaf 2.3.2

2014-07-10 Thread SapnaB
Hi Achim, Could we have a mention of the Karaf version being used in the tutorial series by Christian Schneider : http://www.liquid-reality.de/display/liquid/2011/02/15/Karaf+Tutorial+Part+1+-+Installation+and+First+application

Read password securely from Karaf CLI

2014-07-23 Thread SapnaB
Hi All, I have a requirement to read the clients' userid and password securely from the Karaf shell. Is there a way to do this? I have gone through the org.apache.karaf.shell.console.impl.jline.ConsoleImpl class, but cant understand the usage and constructor parameters. Can someone please point

List User installed bundles in Karaf from Java

2014-08-06 Thread SapnaB
Hi, When I execute the osgi:list command on Karaf 2.3.2, it lists down the bundles which I (user) have installed. I want a similar result through java code. But when I do context.getBundles() and filter ACTIVE bundles, I get the complete list installed in Karaf. Is there a way to get only user

Re: List User installed bundles in Karaf from Java

2014-08-06 Thread SapnaB
Hi JB, Thanks.. this clarifies a lot. Is there any straight forward way to query the bundle level? I could not find any API available in the com.osgi.framework.Bundle class. Thanks, Sapna -- View this message in context:

Re: db commands not available in Karaf 2.3.2

2014-08-11 Thread SapnaB
Hi JB, I started my project with Karaf 2.3.2 and am using a number of dependent jars like jersey, jackson, commons-codec, javax etc. When I tried to upgrade to version 3.x, i got a lot of issues with such dependent jars with Karaf complaining of higher/lower versions. This dissuaded me from

Re: List User installed bundles in Karaf from Java

2014-08-12 Thread SapnaB
Hi JB StartLevel is deprecated in OSGi 4.3. Is there any equivalent service available which I can use? I tried BundleStartLevel, but that doesnt give me the desired results. Thanks, Sapna -- View this message in context:

Re: List User installed bundles in Karaf from Java

2014-08-27 Thread SapnaB
Hi JB, I now have a requirement to print only installed application specific bundles, and not the dependent bundles. Ex: im using jersey jars in my bundle com.osgi.test/Test/0.0.1-SNAPSHOT, so Iv installed jersey jars on Karaf using the wrap command. Both jersey bundle and Test bundle have a

Re: List User installed bundles in Karaf from Java

2014-09-10 Thread SapnaB
Hi Timothy, Thanks for the tips. What I have done now is alter the bundle symbolic name to include Project Group and Artifact IDs, which are standard across all plugins developed by the team. Then filtering for specific plugins using symbolic names. But I guess Bundle-Vendor is another field I

Issue with feature Install

2014-09-10 Thread SapnaB
Hi, I'm using feature install in Karaf 2.3.6, where I deploy specific versions of dependent jars and bundles. Problem arises when I uninstall and then install the same version of a bundle individually(after feature install), mostly due to some bug fix. What I observe is that many times the

HTTPS support on Karaf 2.3.6

2015-02-21 Thread SapnaB
Hi All, I need to enable https support in Karaf 2.3.6 for all my REST Web services(internal testing). Have generated a self signed cert using openSSL(http://www.akadia.com/services/ssh_test_certificate.html) and imported the same in the karaf keystore(keytool -import -trustcacerts..) The

Re: Jar signing support in Karaf

2015-06-04 Thread SapnaB
Hi All, Im using the following in my policy file: ALLOW { [ org.osgi.service.condpermadmin.BundleSignerCondition CN=\XYZ company\, OU=XXX, O=\XXX\, L=XXX, ST=XXX, C=XXX] ( java.security.AllPermission * *) } Signed by XYZ where the custom oraganisation certificate details are mentioned in

Jar signing support in Karaf

2015-05-25 Thread SapnaB
Karaf will pick up the right Certificate to validate the signed jars? I have the certifcate used udring jar signing. Where do I place this cert in Karaf configuration, that it is picked up during jar validation? Any help will be greatly appreciated. Thanks, SapnaB -- View this message in context