tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Meinl (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TOMEE-1513) catalina.sh does not quote javaagent argument correctly
Date Fri, 13 Feb 2015 16:09:11 GMT
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)

Mime
View raw message