Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-1158

Determine how to run IGB-fx in karaf using Windows "bat" script

    Details

    • Story Points:
      2
    • Sprint:
      Fall 2017

      Description

      We learned how to run IGB-fx from karaf using cygwin under Windows, but it would be more convenient to run IGB-fx from karaf using a single "bat" script.

      This issue requires learning the basics of OSGi and how karaf functions as an OSGi runtime/container. Take notes and prepare teaching materials to help the team get up to speed. Also, keep your eyes open for ways to migrate IGB-Classic to using karaf.

      Tips from IGB developer David Norris (dcnorris@stackleader.com), replying to question from DK:

      "Hi Devdatta,
      The bin/igb script is mostly just a copy of bin/karaf (you could even consider removing bin/igb. On windows calling bin/karaf.bat from a converted start.sh (convert it to start.bat) is the approach that should work. Trying this from cygwin will likely cause issues and I have never run karaf from cygwin. I have run karaf on windows shell and it works just fine. John and I had a customer on Windows last year that we used karaf on windows for and it worked beautifully.

      Also, as an FYI there is a bin/client script for connecting to to a karaf shell without the need for manual ssh. Because it uses a java ssh implementation and jline I recall this works from windows shell. You cannot last I checked ssh from a windows shell.

      Best Regards,
      David"

      "On Fri, May 19, 2017 at 11:10 AM, Kulkarni, Devdatta <dkulkarn@uncc.edu> wrote:

      Hi David,
      I am going through karaf/bin/igb file which is being called from start-shell and start-dev scripts.
      I was able to see that it is handling Cygwin as special case, and on installing Cygwin I can start igb-fx.
      On starting, it gives me interactive shell but the shell is not responding to any commands.
      Please let me know if I am thinking in right direction and let me know if you are available for Hangouts session.
      Thank you,
      Devdatta."

        Attachments

          Activity

          Hide
          ann.loraine Ann Loraine added a comment - - edited

          See "Learning Apache karaf"

          Show
          ann.loraine Ann Loraine added a comment - - edited See "Learning Apache karaf"
          Hide
          djoshi4 Deepti Joshi (Inactive) added a comment -

          Link to the bitbucket branch for this issue:
          https://bitbucket.org/djoshi4/deepti-igb-fx/branch/IGBF-1158-run_IGBfx_on_karaf_using_Windows_bat_file

          Notes:
          While both files run the application successfully, start-shell.bat produces an interactive shell but start-dev.bat does not.
          If a file is not running or it is giving an error saying an instance is already running, you may want to check if the pid variable in karaf\instances\instance.properties file is 0. If not, make it 0 and re-run.

          Show
          djoshi4 Deepti Joshi (Inactive) added a comment - Link to the bitbucket branch for this issue: https://bitbucket.org/djoshi4/deepti-igb-fx/branch/IGBF-1158-run_IGBfx_on_karaf_using_Windows_bat_file Notes: While both files run the application successfully, start-shell.bat produces an interactive shell but start-dev.bat does not. If a file is not running or it is giving an error saying an instance is already running, you may want to check if the pid variable in karaf\instances\instance.properties file is 0. If not, make it 0 and re-run.
          Hide
          ann.loraine Ann Loraine added a comment -

          This issue has passed first level review and is ready for a pull request to be issued.

          Show
          ann.loraine Ann Loraine added a comment - This issue has passed first level review and is ready for a pull request to be issued.

            People

            • Assignee:
              Unassigned
              Reporter:
              ann.loraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: