Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      Debian linux/squeeze
      Java 1.6 v19 sun

      Description

      Documentations instructs launching geronimo with:
      geronimo jpda run
      or
      geronimo jpda start

      for remote debugging but attempting to do that result in message:
      Usage: geronimo

      {start|stop|restart|status}

      Edit: Change jpda -> jdpa

      1. geronimo.sh
        15 kB
        Leonardo Bueno Postacchini
      2. geronimo_old.sh
        2 kB
        Leonardo Bueno Postacchini

        Activity

        Hide
        Kevan Miller added a comment -

        What documentation are you referring to? That should be 'jpda' not 'jdpa'

        ./geronimo.sh jpda run works fine for me (though you've now got me trying to type jdpa...

        './geronimo.sh jdpa run' gives me:

        $ ./geronimo.sh jdpa run
        Using GERONIMO_HOME: /Users/kevan/Servers/geronimo-jetty7-javaee5-2.2.1
        Using GERONIMO_TMPDIR: var/temp
        Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
        Usage: geronimo.sh command [geronimo_args]
        commands:
        debug Debug Geronimo in jdb debugger
        jpda run Start Geronimo in foreground under JPDA debugger
        jpda start Start Geronimo in background under JPDA debugger
        run Start Geronimo in the foreground
        start Start Geronimo in the background
        stop Stop Geronimo
        stop --force Stop Geronimo (followed by kill -KILL)

        Show
        Kevan Miller added a comment - What documentation are you referring to? That should be 'jpda' not 'jdpa' ./geronimo.sh jpda run works fine for me (though you've now got me trying to type jdpa... './geronimo.sh jdpa run' gives me: $ ./geronimo.sh jdpa run Using GERONIMO_HOME: /Users/kevan/Servers/geronimo-jetty7-javaee5-2.2.1 Using GERONIMO_TMPDIR: var/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Usage: geronimo.sh command [geronimo_args] commands: debug Debug Geronimo in jdb debugger jpda run Start Geronimo in foreground under JPDA debugger jpda start Start Geronimo in background under JPDA debugger run Start Geronimo in the foreground start Start Geronimo in the background stop Stop Geronimo stop --force Stop Geronimo (followed by kill -KILL)
        Hide
        Leonardo Bueno Postacchini added a comment -

        Sorry, I am a bit dyslexic, the command was indeed jdpa and it resulted in the message I pasted, it is a copy from terminal and it does not have any jdpa option.

        I found on the net a geronimo.sh that fixes it, I am attaching both the original geronimo.sh as the one I am using now that works.

        Show
        Leonardo Bueno Postacchini added a comment - Sorry, I am a bit dyslexic, the command was indeed jdpa and it resulted in the message I pasted, it is a copy from terminal and it does not have any jdpa option. I found on the net a geronimo.sh that fixes it, I am attaching both the original geronimo.sh as the one I am using now that works.
        Hide
        Leonardo Bueno Postacchini added a comment -

        Original geronimo.sh file.

        Show
        Leonardo Bueno Postacchini added a comment - Original geronimo.sh file.
        Hide
        Leonardo Bueno Postacchini added a comment -

        Working file from the web.

        Show
        Leonardo Bueno Postacchini added a comment - Working file from the web.
        Hide
        Kevan Miller added a comment -

        OK. I don't know where your geronimo_old.sh file comes from. AFAIK, it's not something maintained by the Geronimo project. Can you you tell us where it comes from?

        Show
        Kevan Miller added a comment - OK. I don't know where your geronimo_old.sh file comes from. AFAIK, it's not something maintained by the Geronimo project. Can you you tell us where it comes from?
        Hide
        Leonardo Bueno Postacchini added a comment -

        I downloaded it from Apache as far as I remember, I just checked the original tarball and the file is just that way.

        Show
        Leonardo Bueno Postacchini added a comment - I downloaded it from Apache as far as I remember, I just checked the original tarball and the file is just that way.
        Hide
        Leonardo Bueno Postacchini added a comment -

        Just saw that I put it under version 2.2.1, it is in fact, 2.2.

        Show
        Leonardo Bueno Postacchini added a comment - Just saw that I put it under version 2.2.1, it is in fact, 2.2.
        Hide
        Kevan Miller added a comment -

        Hi Leonardo, thanks for the info. So, your geronimo_old.sh file looks like it was generated by the gserviceReg.sh command. See https://cwiki.apache.org/GMOxDOC22/running-geronimo-as-a-linux-service.html for more information. I assume you or someone else ran './gserviceReg add geronimo' (or similar) to generate a geronimo service. The resulting service script file would look like your geronimo_old.sh.

        gserviceReg.sh was not designed to create a service script which supported the 'jpda' option. I suppose it could, but I'm not sure it's a common use case... If somebody feels it would be valuable, speak up...

        So, if you use the 'geronimo.sh' script that's included in a geronimo download, I believe you have the function you're looking for.

        Show
        Kevan Miller added a comment - Hi Leonardo, thanks for the info. So, your geronimo_old.sh file looks like it was generated by the gserviceReg.sh command. See https://cwiki.apache.org/GMOxDOC22/running-geronimo-as-a-linux-service.html for more information. I assume you or someone else ran './gserviceReg add geronimo' (or similar) to generate a geronimo service. The resulting service script file would look like your geronimo_old.sh. gserviceReg.sh was not designed to create a service script which supported the 'jpda' option. I suppose it could, but I'm not sure it's a common use case... If somebody feels it would be valuable, speak up... So, if you use the 'geronimo.sh' script that's included in a geronimo download, I believe you have the function you're looking for.
        Hide
        Leonardo Bueno Postacchini added a comment -

        I don't using gserviceReg, but then again I do not have the best of the memories, it may very well be that I did run this command. This is a local machine installation for development which I downloaded and installed myself.

        As for gserviceReg command generating a file that allows jpda, I do think it would be interesting for people like me that like to run a server local for testing and development separated from IDEs and such.

        Show
        Leonardo Bueno Postacchini added a comment - I don't using gserviceReg, but then again I do not have the best of the memories, it may very well be that I did run this command. This is a local machine installation for development which I downloaded and installed myself. As for gserviceReg command generating a file that allows jpda, I do think it would be interesting for people like me that like to run a server local for testing and development separated from IDEs and such.
        Hide
        Kevan Miller added a comment -

        Right. And the 'geronimo.sh' command does exactly that – 'bin/geronimo.sh jpda run'

        Show
        Kevan Miller added a comment - Right. And the 'geronimo.sh' command does exactly that – 'bin/geronimo.sh jpda run'

          People

          • Assignee:
            Unassigned
            Reporter:
            Leonardo Bueno Postacchini
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development