Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1513

catalina.sh does not quote javaagent argument correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.7.1
    • 1.7.2, 7.0.0-M1
    • None
    • None

    Description

      If TomEE is installed in a path with spaces (CATALINA_HOME), it wont start because the OpenEJB javaagent cannot be found. The reasons is that the "-javaagent" parameter in catalina.sh is not quoted correctly. Currently it is

      JAVA_OPTS=""-javaagent:$CATALINA_HOME/lib/openejb-javaagent.jar" $JAVA_OPTS"

      however, the quotes around the first agument must be escaped:

      JAVA_OPTS="\"-javaagent:$CATALINA_HOME/lib/openejb-javaagent.jar\" $JAVA_OPTS"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thor Thorsten Meinl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: