Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ACDF89561 for ; Wed, 29 Feb 2012 01:42:30 +0000 (UTC) Received: (qmail 98175 invoked by uid 500); 29 Feb 2012 01:42:29 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 98098 invoked by uid 500); 29 Feb 2012 01:42:29 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 98059 invoked by uid 99); 29 Feb 2012 01:42:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 01:42:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 01:42:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F156F54FF0 for ; Wed, 29 Feb 2012 01:42:07 +0000 (UTC) Date: Wed, 29 Feb 2012 01:42:07 +0000 (UTC) From: "Saphen Qiu (Issue Comment Edited) (JIRA)" To: dev@geronimo.apache.org Message-ID: <2099531534.968.1330479728016.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1096659161.26494.1330402908533.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (GERONIMO-6291) Cannot start server on windows caused by space chars in the related installation paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-6291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218804#comment-13218804 ] Saphen Qiu edited comment on GERONIMO-6291 at 2/29/12 1:41 AM: --------------------------------------------------------------- Because of "start /B "Geronimo Application Server" /d"%GERONIMO_HOME%"\bin %GERONIMO_WIN_START_ARGS% internalLauncher.bat" in geronimo.bat can not be used with double quotes, and as a value of _EXECJAVA the same with _RUNJAVA which needs to be used with double quotes, there has conflict. That's why I remain the "set _RUNJAVA ..." with double quotes as before. was (Author: saphen): Because of "start /B "Geronimo Application Server" /d"%GERONIMO_HOME%"\bin %GERONIMO_WIN_START_ARGS% internalLauncher.bat" can not be used with double quotes, and as a value of _EXECJAVA the same with _RUNJAVA which needs to be used with double quotes, so there has conflict. That's why I remain the "set _RUNJAVA ..." with double quotes as before. > Cannot start server on windows caused by space chars in the related installation paths > -------------------------------------------------------------------------------------- > > Key: GERONIMO-6291 > URL: https://issues.apache.org/jira/browse/GERONIMO-6291 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: startup/shutdown > Affects Versions: 3.0, 3.0-beta-2 > Reporter: Forrest Xia > Assignee: Saphen Qiu > Fix For: 3.0-beta-2 > > Attachments: GERONIMO-6291-fixSpaceIssue.patch > > > Having the latest Geronimo 3.0-beta-2 snapshot build, then doing these steps to reproduce the issue: > 1. Install the jdk into a folder with space chars in the path > 2. Install the geronimo server into a non-space path > 3. set java_home=c:\path2jdkhome, not that no quotes there > 4. run command: geronimo_home\bin\geronimo.bat run -l > You will see a failure something like this: > '""C:\Java\jdk1.6.0' is not recognized as an internal or external command, > operable program or batch file. > Basically, it is caused by the space characters in the windows file path. So to resolve the issues completely, we need to consider these scenarios: > 1. JDK installation path includes spaces, and geronimo installation path does not > 2. JDK installation path does not have, but geronimo has > 3. Both JDK and Geronimo have space char in the path -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira