|
From: Dannes W. <di...@ex...> - 2013-10-25 19:14:35
|
After upgrading to the latest MacOSX version (10.9) my application does not start anymore: STATUS | wrapper | 2013/10/24 20:27:14 | --> Wrapper Started as Daemon STATUS | wrapper | 2013/10/24 20:27:14 | Java Service Wrapper Community Edition 32-bit 3.5.20 STATUS | wrapper | 2013/10/24 20:27:14 | Copyright (C) 1999-2013 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2013/10/24 20:27:14 | http://wrapper.tanukisoftware.com STATUS | wrapper | 2013/10/24 20:27:14 | STATUS | wrapper | 2013/10/24 20:27:15 | Launching a JVM... ERROR | wrapper | 2013/10/24 20:27:15 | JVM exited while loading the application. INFO | jvm 1 | 2013/10/24 20:27:15 | Error: This Java instance does not support a 32-bit JVM. INFO | jvm 1 | 2013/10/24 20:27:15 | Please install the desired version. STATUS | wrapper | 2013/10/24 20:27:15 | Automatic JVM Restarts disabled. Shutting down. STATUS | wrapper | 2013/10/24 20:27:15 | <-- Wrapper Stopped Starting this release, only the 64bit Java7 is available for the platform; somehow the scripts select the 32 bit version. The problem seems to be caused in the following block: # Resolve the architecture if [ "$DIST_OS" = "macosx" ] then OS_VER=`sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'` DIST_ARCH="universal" if [[ "$OS_VER" < "10.5.0" ]] then DIST_BITS="32" else if [ "X`sysctl -n hw.cpu64bit_capable`" == "X1" ] then DIST_BITS="64" else DIST_BITS="32" fi fi APP_PLIST_BASE=${PLIST_DOMAIN}.${APP_NAME} APP_PLIST=${APP_PLIST_BASE}.plist actually the following line cannot deal with the string "10.9": OS_VER=`sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'` some investigation shows that the MacOsX version of grep (2.5.1) is buggy: http://www.mail-archive.com/bug...@gn.../msg00993.html The solution is to use egrep instead and modify the match pattern: sw_vers | grep 'ProductVersion:' | egrep -o '[0-9]*\.[0-9]*(\.[0-9]*)?' I hope it can be fixed in an upcoming release. regards Dannes |