You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Thorsten Meinl (JIRA)" <ji...@apache.org> on 2015/02/13 17:09:11 UTC

[jira] [Created] (TOMEE-1513) catalina.sh does not quote javaagent argument correctly

Thorsten Meinl created TOMEE-1513:
-------------------------------------

             Summary: catalina.sh does not quote javaagent argument correctly
                 Key: TOMEE-1513
                 URL: https://issues.apache.org/jira/browse/TOMEE-1513
             Project: TomEE
          Issue Type: Bug
    Affects Versions: 1.7.1
            Reporter: Thorsten Meinl


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"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)