Issues with Attachments: week of 2014-12-22
KARAF - Monday, December 22, 2014 12 Issues with Attachments (sorted oldest to newest) [KARAF-222] Provide karaf:run, karaf:deploy, karaf:client Maven goals (2010-09-25 - New Feature - james strachan) https://issues.apache.org/jira/browse/KARAF-222 [KARAF-639] Karaf Plug-in validate goal doesn't support various aspects of PAX MVN/URL (2011-05-13 - Bug - David Valeri) https://issues.apache.org/jira/browse/KARAF-639 [KARAF-1254] Jasypt config admin property with reload strategy. (2012-03-06 - New Feature - Edstrom Johan) https://issues.apache.org/jira/browse/KARAF-1254 [KARAF-1729] Cannot uninstall bundle, bundle xx is invalid (2012-08-15 - Bug - Hendy Irawan) https://issues.apache.org/jira/browse/KARAF-1729 [KARAF-2121] Add Support For Displaying Gogo Commands in Karaf Shell Help (2013-01-17 - New Feature - Gareth Collins) https://issues.apache.org/jira/browse/KARAF-2121 [KARAF-2688] Karaf info - Add memory details about perm gen pool (2014-01-16 - Improvement - Claus Ibsen) https://issues.apache.org/jira/browse/KARAF-2688 [KARAF-3035] Use aries transaction jdbc / jms for pooling (2014-06-12 - Improvement - Guillaume Nodet) https://issues.apache.org/jira/browse/KARAF-3035 [KARAF-3374] NullPointerException when starting Karaf distribution for the first time with feature with non-osgi dependency (2014-11-20 - Bug - Raphael Majeed) https://issues.apache.org/jira/browse/KARAF-3374 [KARAF-3375] karaf-maven-plugin install-kars fails on paths containing spaces (2014-11-20 - Bug - Raphael Majeed) https://issues.apache.org/jira/browse/KARAF-3375 [KARAF-3382] Support configuration for custom LDAP group to JAAS role mapping (2014-11-26 - Improvement - Ancoron Luciferis) https://issues.apache.org/jira/browse/KARAF-3382 [KARAF-3390] Karaf client should allow passing arguments to command (2014-11-27 - Improvement - metatech) https://issues.apache.org/jira/browse/KARAF-3390 [KARAF-3414] SshCommandTestBase uses some deprecated sshd APIs (2014-12-16 - Bug - Paul Spencer) https://issues.apache.org/jira/browse/KARAF-3414
Need help realted to Karaf on unix
Hi , I am running Karaf server on Unix . I have started the Karaf server in non console mode by executing ./karaf server command . Now I want to deploy my bundle in next step . Since server is not fully stared yet , my command for deploying bundle getting failed . Is there any way to wait till Karaf server fully started so that my next command will wait till server is started and after that bundle get deployed . Thanks, Prithvi This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited. E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender. Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.
Re: Telling whether startup is really complete
Hi, yes, in etc/custom.properties, you can add: karaf.delay.console=true karaf.startup.message=Please wait while Apache Karaf is starting... It will delay the console display waiting features installed. Regards JB On 12/22/2014 12:21 PM, Prithviraj wrote: I am running Karaf server on Unix . I have started the Karaf server in non console mode by executing ./karaf server command . Now I want to deploy my bundle in next step . Since server is not fully stared yet , my command for deploying bundle getting failed . Is there any way to wait till Karaf server fully started so that my next command will wait till server is started and after that bundle get deployed . -- View this message in context: http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037354.html Sent from the Karaf - Dev mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Need help realted to Karaf on unix
See my other message in the other thread ;) Regards JB On 12/22/2014 12:21 PM, Mane-EXTERNAL Prithivraj wrote: Hi , I am running Karaf server on Unix . I have started the Karaf server in non console mode by executing ./karaf server command . Now I want to deploy my bundle in next step . Since server is not fully stared yet , my command for deploying bundle getting failed . Is there any way to wait till Karaf server fully started so that my next command will wait till server is started and after that bundle get deployed . Thanks, Prithvi This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited. E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender. Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: Need help realted to Karaf on unix
sorry for asking again, can you please point me the link for mentioned thread ? thanks in advance for your help -- View this message in context: http://karaf.922171.n3.nabble.com/Need-help-realted-to-Karaf-on-unix-tp4037355p4037358.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Telling whether startup is really complete
Hi JB, I tried this , it displayed the message as mentioned in custom.properties file . Actually it is not solving my problem . My problem statement is like below 1) I have wrote start_karaf.sh file which will invoke start script from {$KARAF_HOME}/bin location . Which internally start the karaf in back ground mode 2) I have other script deploy_apps.sh which will get execute once previous start_karaf.sh script get successfully executed. deploy_app.sh script is for deploying bundles in karaf server. Since start_karaf.sh invoking karaf server in background , i need to know if server is fully started before deploying apps . So i need some mechanism , or commands by which i can come to know server is fully started so that i can start with bundle app deployment . Thanks in advance for your help . Thanks Prithvi -- View this message in context: http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037359.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Telling whether startup is really complete
Hi 1/ the bin/start script does exactly as your script 2/ use bin/client script to execute bundle:list -t 0 and check (with a regex) that all bundles are in started state. Regards JB Original message From: Prithviraj meetra...@gmail.com Date:22/12/2014 14:14 (GMT+01:00) To: dev@karaf.apache.org Cc: Subject: Re: Telling whether startup is really complete Hi JB, I tried this , it displayed the message as mentioned in custom.properties file . Actually it is not solving my problem . My problem statement is like below 1) I have wrote start_karaf.sh file which will invoke start script from {$KARAF_HOME}/bin location . Which internally start the karaf in back ground mode 2) I have other script deploy_apps.sh which will get execute once previous start_karaf.sh script get successfully executed. deploy_app.sh script is for deploying bundles in karaf server. Since start_karaf.sh invoking karaf server in background , i need to know if server is fully started before deploying apps . So i need some mechanism , or commands by which i can come to know server is fully started so that i can start with bundle app deployment . Thanks in advance for your help . Thanks Prithvi -- View this message in context: http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037359.html Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Telling whether startup is really complete
You can create a script (in Karaf) that you use with bin/client (with shell:source for instance). For instance, something like: bundles = bundle:list -t 0; each ($bundles) { if { $state equals Active } echo $state } or so. Regards JB On 12/22/2014 03:38 PM, Prithviraj wrote: Hi JB , I tried this too , but by this way it is giving current state of all bundles . Is there any api which can direct give me this as output ? i think StartupListener.java class from karaf jar implemented same thing. how i can invoke it from script ? Thanks, Prithvi On Mon, Dec 22, 2014 at 7:51 PM, jbonofre [via Karaf] ml-node+s922171n4037360...@n3.nabble.com wrote: Hi 1/ the bin/start script does exactly as your script 2/ use bin/client script to execute bundle:list -t 0 and check (with a regex) that all bundles are in started state. Regards JB Original message From: Prithviraj [hidden email] http:///user/SendEmail.jtp?type=nodenode=4037360i=0 Date:22/12/2014 14:14 (GMT+01:00) To: [hidden email] http:///user/SendEmail.jtp?type=nodenode=4037360i=1 Cc: Subject: Re: Telling whether startup is really complete Hi JB, I tried this , it displayed the message as mentioned in custom.properties file . Actually it is not solving my problem . My problem statement is like below 1) I have wrote start_karaf.sh file which will invoke start script from {$KARAF_HOME}/bin location . Which internally start the karaf in back ground mode 2) I have other script deploy_apps.sh which will get execute once previous start_karaf.sh script get successfully executed. deploy_app.sh script is for deploying bundles in karaf server. Since start_karaf.sh invoking karaf server in background , i need to know if server is fully started before deploying apps . So i need some mechanism , or commands by which i can come to know server is fully started so that i can start with bundle app deployment . Thanks in advance for your help . Thanks Prithvi -- View this message in context: http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037359.html Sent from the Karaf - Dev mailing list archive at Nabble.com. -- If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037360.html To unsubscribe from Telling whether startup is really complete, click here http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4025451code=bWVldHJhajE0QGdtYWlsLmNvbXw0MDI1NDUxfC0yMDU1MjgzMDg0 . NAML http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037361.html Sent from the Karaf - Dev mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Alternative backend for Decanter and some Shell stuff
Hi, I worked on a showcase to embed a Apache Cassandra DB inside Apache Karaf [1]. This could be used for either prototyping with Cassandra or as an alternative backend for the Decanter project. Additionally I played with some shell commands for easy debugging purposes, for details take a look [2]. For example you're able to connect to any given Cassandra cluster issue some CQL statements either from the command line or from a file. Additionally I added some CQLSH like commands including completion for easy usage of USE, CREATE, SELECT or INSERT statements. For this I needed to alter the Karaf shell a bit (with the help of gnodet :-) ) To disable the shell interpretation of quotes and brackets. Now that I altered the handling in Karaf/GOGO shell in a custom Karaf [3], the question is, can we port this back to Karaf in a way that we don't need to alter the gogo shell stuff again and have our own classes [4]. Another Idea that came to my mind was to have a stripped down shell that could be used for any SQL-like command. A similar completion syntax could be used for any SQL Select, not only for the CQL syntax of Cassandra. regards, Achim [1] - https://github.com/ANierbeck/Karaf-Cassandra [2] - https://blog.codecentric.de/en/2014/12/combining-apache-cassandra-apache-karaf/ [3] - https://github.com/ANierbeck/CustomKaraf [4] - http://notizblog.nierbeck.de/2014/12/embedding-apache-cassandra/ -- Apache Member Apache Karaf http://karaf.apache.org/ Committer PMC OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer Project Lead blog http://notizblog.nierbeck.de/ Co-Author of Apache Karaf Cookbook http://bit.ly/1ps9rkS Software Architect / Project Manager / Scrum Master
Re: Telling whether startup is really complete
Karaf publishes an OSGi service org.apache.karaf.features.BootFinished when bundles are started. Not sure if you can easily work with this on the shell. Maybe this is also something we can enhance in the ssh based shell. We could delay the ssh shell in the same way as the local console. That would solve the problem. Christian Am 22.12.2014 um 14:14 schrieb Prithviraj: Hi JB, I tried this , it displayed the message as mentioned in custom.properties file . Actually it is not solving my problem . My problem statement is like below 1) I have wrote start_karaf.sh file which will invoke start script from {$KARAF_HOME}/bin location . Which internally start the karaf in back ground mode 2) I have other script deploy_apps.sh which will get execute once previous start_karaf.sh script get successfully executed. deploy_app.sh script is for deploying bundles in karaf server. Since start_karaf.sh invoking karaf server in background , i need to know if server is fully started before deploying apps . So i need some mechanism , or commands by which i can come to know server is fully started so that i can start with bundle app deployment . Thanks in advance for your help . Thanks Prithvi -- View this message in context: http://karaf.922171.n3.nabble.com/Telling-whether-startup-is-really-complete-tp4025451p4037359.html Sent from the Karaf - Dev mailing list archive at Nabble.com. -- Christian Schneider http://www.liquid-reality.de Open Source Architect Talend Application Integration Division http://www.talend.com