Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 220B8200B82 for ; Fri, 2 Sep 2016 01:11:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 20966160AB7; Thu, 1 Sep 2016 23:11:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 677CC160AB5 for ; Fri, 2 Sep 2016 01:11:40 +0200 (CEST) Received: (qmail 22140 invoked by uid 500); 1 Sep 2016 23:11:24 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 22131 invoked by uid 99); 1 Sep 2016 23:11:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2016 23:11:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 35433C0317 for ; Thu, 1 Sep 2016 23:11:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id yPSSmijasZjn for ; Thu, 1 Sep 2016 23:11:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 92AA25FBB4 for ; Thu, 1 Sep 2016 23:11:21 +0000 (UTC) Received: (qmail 22006 invoked by uid 99); 1 Sep 2016 23:11:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2016 23:11:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6E27E2C014E for ; Thu, 1 Sep 2016 23:11:20 +0000 (UTC) Date: Thu, 1 Sep 2016 23:11:20 +0000 (UTC) From: "Kirk Lund (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-1836) gfsh script adds the wrong tools.jar to classpath when using jenv on Mac OSX MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Sep 2016 23:11:41 -0000 [ https://issues.apache.org/jira/browse/GEODE-1836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15456900#comment-15456900 ] Kirk Lund commented on GEODE-1836: ---------------------------------- Without enable jenv export plugin, the GFSH script identifies these vars: JAVA_HOME= GF_JAVA=java GF_JAVA_PARENT/lib/tools.jar=/Users/klund/.jenv/lib/tools.jar TOOLS_JAR=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/classes.jar After enabling jenv export plugin (jenv enable-plugin export) these are the values of the vars: JAVA_HOME=/Users/klund/.jenv/versions/oracle64-1.8.0.66 GF_JAVA=/Users/klund/.jenv/versions/oracle64-1.8.0.66/bin/java GF_JAVA_PARENT/lib/tools.jar=/Users/klund/.jenv/versions/oracle64-1.8.0.66/lib/tools.jar TOOLS_JAR=/Users/klund/.jenv/versions/oracle64-1.8.0.66/lib/tools.jar So, another work around is to enable the export plugin for jenv by executing "jenv enable-plugin export" > gfsh script adds the wrong tools.jar to classpath when using jenv on Mac OSX > ---------------------------------------------------------------------------- > > Key: GEODE-1836 > URL: https://issues.apache.org/jira/browse/GEODE-1836 > Project: Geode > Issue Type: Bug > Components: gfsh > Affects Versions: 1.0.0-incubating.M1, 1.0.0-incubating.M2, 1.0.0-incubating.M3 > Reporter: Kirk Lund > Assignee: Kirk Lund > > On Mac OSX, the gfsh script finds the wrong tools.jar when using jenv. > I'm testing this using /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home. > {noformat} > $ ./gfsh > _________________________ __ > / _____/ ______/ ______/ /____/ / > / / __/ /___ /_____ / _____ / > / /__/ / ____/ _____/ / / / / > /______/_/ /______/_/ /_/ 1.0.0-incubating.M3 > Monitor and Manage Apache Geode (incubating) > gfsh>start server --name=server > Starting a Geode Server in /Users/klund/apache-geode-1.0.0-incubating.M3/bin/server... > An error occurred while attempting to start a Geode Cache Server: sun.tools.attach.MacosxVirtualMachine.isLinuxThreads()Z > {noformat} > The server named "server" actually starts up fine but GFSH is unable to get its status because the GFSH process is failing to load sun.tools.attach. MacosxVirtualMachine. > The "gfsh" script is written for Linux, and I believe we'll need to alter the script some to make it work on Mac. I'll file a bug for this. > For now, the best workaround I can offer up is to add the tools.jar to your CLASSPATH: > {noformat} > $ export CLASSPATH=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/lib/tools.jar > $ ./gfsh > _________________________ __ > / _____/ ______/ ______/ /____/ / > / / __/ /___ /_____ / _____ / > / /__/ / ____/ _____/ / / / / > /______/_/ /______/_/ /_/ 1.0.0-incubating.M3 > Monitor and Manage Apache Geode (incubating) > gfsh>start server --name=server > Starting a Geode Server in /Users/klund/apache-geode-1.0.0-incubating.M3/bin/server... > .... > Server in /Users/klund/apache-geode-1.0.0-incubating.M3/bin/server on pdx2-office-dhcp32.eng.vmware.com[40404] as server is currently online. > Process ID: 50858 > Uptime: 2 seconds > GemFire Version: 1.0.0-incubating.M3 > Java Version: 1.8.0_66 > Log File: /Users/klund/apache-geode-1.0.0-incubating.M3/bin/server/server.log > JVM Arguments: -Dgemfire.use-cluster-configuration=true -XX:OnOutOfMemoryError=kill -KILL %p -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806 > Class-Path: /Users/klund/apache-geode-1.0.0-incubating.M3/lib/geode-core-1.0.0-incubating.M3.jar:/Users/klund/apache-geode-1.0.0-incubating.M3/lib/geode-dependencies.jar > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)