tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Meinl (JIRA)" <>
Subject [jira] [Created] (TOMEE-1513) does not quote javaagent argument correctly
Date Fri, 13 Feb 2015 16:09:11 GMT
Thorsten Meinl created TOMEE-1513:

             Summary: does not quote javaagent argument correctly
                 Key: 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 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

View raw message