Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.4
    • Fix Version/s: Wish List
    • Component/s: documentation
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      Problem is that node.setAttribute(String, String) won't coerce 2nd param of type java.io.File to string.

        Activity

        Hide
        viola.lu added a comment -

        On windows:
        When run start-server.bat -j "c:\programme files\Java60\bin\java.exe", there is an parse error :Lexical Error at line 1 , Encountered "P" after "
        "
        But on linux: ./start-server.sh -j /opt/ibm/java-i386-60/bin/java, this command runs well.

        Show
        viola.lu added a comment - On windows: When run start-server.bat -j "c:\programme files\Java60\bin\java.exe", there is an parse error :Lexical Error at line 1 , Encountered "P" after " " But on linux: ./start-server.sh -j /opt/ibm/java-i386-60/bin/java, this command runs well.
        Hide
        Shawn Jiang added a comment - - edited
        start-server.bat -j "c:/programme files/Java60/bin/java.exe"

        will do the trick. Notice I'm using "/" but not "\".

        It would be better if the geronimo commands could detect the file separator for windows and handle it appropriately.

        Show
        Shawn Jiang added a comment - - edited start-server.bat -j "c:/programme files/Java60/bin/java.exe" will do the trick. Notice I'm using "/" but not "\". It would be better if the geronimo commands could detect the file separator for windows and handle it appropriately.
        Hide
        Shawn Jiang added a comment -

        We need to document it If we choose not to fix this JIRA.

        Show
        Shawn Jiang added a comment - We need to document it If we choose not to fix this JIRA.
        Hide
        viola.lu added a comment -

        when there is a space in java path, there will be an error: fail to start server

        Show
        viola.lu added a comment - when there is a space in java path, there will be an error: fail to start server
        Hide
        Shawn Jiang added a comment -

        Even if using "/" but not "\". There's still problem when there's space in the JDK path.

        Show
        Shawn Jiang added a comment - Even if using "/" but not "\". There's still problem when there's space in the JDK path.
        Hide
        Vanessa Wang added a comment - - edited

        For space problem,cmd line does not support nested double quotes. using single quotes or use " \" " instead of " " " would work well.
        For example:

         
        start-server.bat -j 'c:/programme files/Java60/bin/java.exe'
        

        or

         
        start-server.bat -j \"c:/programme files/Java60/bin/java.exe\"
        

        Bisides,it is recommonded that using "/" or "
        " instead of "\" according to gshell's compiler.

        Show
        Vanessa Wang added a comment - - edited For space problem,cmd line does not support nested double quotes. using single quotes or use " \" " instead of " " " would work well. For example: start-server.bat -j 'c:/programme files/Java60/bin/java.exe' or start-server.bat -j \"c:/programme files/Java60/bin/java.exe\" Bisides,it is recommonded that using "/" or " " instead of "\" according to gshell's compiler.
        Hide
        Shawn Jiang added a comment -

        Thanks Vanessa, This should be documented in somewhere.

        Show
        Shawn Jiang added a comment - Thanks Vanessa, This should be documented in somewhere.
        Hide
        Vanessa Wang added a comment -
        Show
        Vanessa Wang added a comment - Geronimo v2.1 Documentation ( http://cwiki.apache.org/GMOxDOC21/gshell.html#GShell-StartingandStoppingGeronimoinGshell ) should mention it
        Hide
        Chi Runhua added a comment -

        Both G2.1 and G2.2 doc updated as followed:
        +++++++++++++++++++++++++++++++++++++++++++++++++++++
        On a Windows platform

        Use forward slash "/" instead of traditional back slash "\" as directory seperators.
        For example:

        geronimo/start-server -j 'c:/programme files/Java60/bin/java.exe'

        This issue is addressed by (https://issues.apache.org/jira/browse/GERONIMO-4709)

        +++++++++++++++++++++++++++++++++++++++++++++++++++

        If possible, I think users would like to see some description/solution along with error message.

        Looking into the document is the second choice.

        Jeff C

        Show
        Chi Runhua added a comment - Both G2.1 and G2.2 doc updated as followed: +++++++++++++++++++++++++++++++++++++++++++++++++++++ On a Windows platform Use forward slash "/" instead of traditional back slash "\" as directory seperators. For example: geronimo/start-server -j 'c:/programme files/Java60/bin/java.exe' This issue is addressed by ( https://issues.apache.org/jira/browse/GERONIMO-4709 ) +++++++++++++++++++++++++++++++++++++++++++++++++++ If possible, I think users would like to see some description/solution along with error message. Looking into the document is the second choice. Jeff C
        Hide
        David Jencks added a comment -

        did this get documented?

        Show
        David Jencks added a comment - did this get documented?
        Hide
        Chi Runhua added a comment -
        Show
        Chi Runhua added a comment - David, the issue is documented already. In G2.1 http://cwiki.apache.org/GMOxDOC21/gshell.html#GShell-StartingandStoppingGeronimoinGshell In G2.2 http://cwiki.apache.org/GMOxDOC22/starting-and-stopping-geronimo-in-gshell.html Anything else, please let me know. Jeff C

          People

          • Assignee:
            Jason Dillon
            Reporter:
            Jason Dillon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development