Axis2
  1. Axis2
  2. AXIS2-4261

Enable axis2server.sh to start SimpleAxis2Server in remote debug mode

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: nightly
    • Fix Version/s: 1.5.4, 1.6.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      OS: Ubuntu 8.10

      Description

      Hi,

      I have noticed that, to remote debug axis2 i have to edit axis2server.sh so i add some improvements to the axis2server.sh script so that it can be started in remote debug mode by using -xdebug
      eg:
      $ sh axis2server.sh -xdebug

      If you think this is useful review and commit

      thank you,
      Charith

      1. patch.txt
        1 kB
        Charith Dhanushka Wickramarachchi
      2. axis2server.bat-xdebug.patch
        2 kB
        Charith Dhanushka Wickramarachchi

        Activity

        Hide
        Andreas Veithen added a comment -

        Applied the patch (without the change in RESTUtil...).

        Show
        Andreas Veithen added a comment - Applied the patch (without the change in RESTUtil...).
        Hide
        Charith Dhanushka Wickramarachchi added a comment -

        Hi,

        this patch will add the xdebug switch to the Windows script. Functionality will be same as in the Linux script

        thanks,
        Charith

        Show
        Charith Dhanushka Wickramarachchi added a comment - Hi, this patch will add the xdebug switch to the Windows script. Functionality will be same as in the Linux script thanks, Charith
        Hide
        Andreas Veithen added a comment -

        Reopening this issue since the xdebug switch is still not supported in the Windows script.

        Show
        Andreas Veithen added a comment - Reopening this issue since the xdebug switch is still not supported in the Windows script.
        Hide
        Charith Dhanushka Wickramarachchi added a comment -

        Hi Andreas,

        this script Starts the SimpleAxis2Server which only accept the repo and conf location as command line arguments. So for me in this case its seems like passing optional parameters is not supported in SimpleAxis2Server.(Correct me if I'm wrong).That's why intentionally omit that use case.

        @Deepal

        Sure i'll will fix this for the windows script

        thank you,

        Charith

        Show
        Charith Dhanushka Wickramarachchi added a comment - Hi Andreas, this script Starts the SimpleAxis2Server which only accept the repo and conf location as command line arguments. So for me in this case its seems like passing optional parameters is not supported in SimpleAxis2Server.(Correct me if I'm wrong).That's why intentionally omit that use case. @Deepal Sure i'll will fix this for the windows script thank you, Charith
        Hide
        Andreas Veithen added a comment -

        Note that the previous version of the script allowed to pass arbitrary options to the Java command line. In the new version this would result in an error. I don't know if this feature is actually useful, but I wonder whether this change was intentional or not.

        Show
        Andreas Veithen added a comment - Note that the previous version of the script allowed to pass arbitrary options to the Java command line. In the new version this would result in an error. I don't know if this feature is actually useful, but I wonder whether this change was intentional or not.
        Hide
        Deepal Jayasinghe added a comment -

        Thank you very much for submitting the path, if you can please try to fix the same thing for the window scripts as well

        Show
        Deepal Jayasinghe added a comment - Thank you very much for submitting the path, if you can please try to fix the same thing for the window scripts as well
        Hide
        Andreas Veithen added a comment -

        We should also add this to axis2server.bat to make sure that the behavior is consistent across platforms. Note that Synapse ships with a sample Axis2 server and the scripts used for this [1] already support -xdebug on both platforms.

        [1] https://svn.apache.org/repos/asf/synapse/trunk/java/modules/samples/src/main/scripts/axis2Server/

        Show
        Andreas Veithen added a comment - We should also add this to axis2server.bat to make sure that the behavior is consistent across platforms. Note that Synapse ships with a sample Axis2 server and the scripts used for this [1] already support -xdebug on both platforms. [1] https://svn.apache.org/repos/asf/synapse/trunk/java/modules/samples/src/main/scripts/axis2Server/
        Hide
        Charith Dhanushka Wickramarachchi added a comment -

        patch to resolve this

        Show
        Charith Dhanushka Wickramarachchi added a comment - patch to resolve this

          People

          • Assignee:
            Unassigned
            Reporter:
            Charith Dhanushka Wickramarachchi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development