From commits-return-34011-apmail-tomee-commits-archive=tomee.apache.org@tomee.apache.org Fri Feb 13 16:09:12 2015 Return-Path: X-Original-To: apmail-tomee-commits-archive@www.apache.org Delivered-To: apmail-tomee-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45FDA179C0 for ; Fri, 13 Feb 2015 16:09:12 +0000 (UTC) Received: (qmail 32744 invoked by uid 500); 13 Feb 2015 16:09:12 -0000 Delivered-To: apmail-tomee-commits-archive@tomee.apache.org Received: (qmail 32713 invoked by uid 500); 13 Feb 2015 16:09:12 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 32703 invoked by uid 500); 13 Feb 2015 16:09:12 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 32700 invoked by uid 99); 13 Feb 2015 16:09:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 16:09:12 +0000 Date: Fri, 13 Feb 2015 16:09:11 +0000 (UTC) From: "Thorsten Meinl (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (TOMEE-1513) catalina.sh does not quote javaagent argument correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)