karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Selberg (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-4949) Karaf 4.0.8 doesn't work on Solaris 11
Date Thu, 19 Jan 2017 09:01:26 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15829544#comment-15829544
] 

Robert Selberg edited comment on KARAF-4949 at 1/19/17 9:00 AM:
----------------------------------------------------------------

When using the "karaf" and "instance" scripts from 3.0.8 I was able to get past that infinite
loop.
However it didn't find org.apache.karaf.main.Main.

I am not experienced with starting java applications from the command line so I don't know
what arguments to use to solve this problem.

{noformat}
$ uname -a
SunOS server 5.11 11.3 i86pc i386 i86pc

$ printenv
LC_MONETARY=
TERM=xterm
SHELL=/usr/bin/bash
LC_NUMERIC=
OLDPWD=/pool/home/robert/openhab/karaf
SSH_TTY=/dev/pts/2
LC_ALL=
USER=robert
PAGER=/usr/bin/less -ins
MAIL=/var/mail/robert
PATH=/pool/home/robert//bin/jdk1.8.0_121/bin/:/usr/bin:/usr/sbin:/pool/home/robert/bin
LC_MESSAGES=
LC_COLLATE=
PWD=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin
JAVA_HOME=/pool/home/robert//bin/jdk1.8.0_121/
LANG=en_US.UTF-8
TZ=localtime
SHLVL=1
HOME=/pool/home/robert/
LOGNAME=robert
LC_CTYPE=
LC_TIME=
PATH=/pool/home/robert//bin/jdk1.8.0_121/bin/:/usr/bin:/usr/sbin:/pool/home/robert/bin
_=/usr/bin/printenv

$ tar xfvz apache-karaf-3.0.8.tar.gz
$ mkdir apache-karaf-4.0.8 && (cd apache-karaf-4.0.8 && tar xfvz ../apache-karaf-4.0.8.tar.gz)
$ cd apache-karaf-4.0.8/apache-karaf-4.0.8/bin/
$ cp ../../../apache-karaf-3.0.8/bin/karaf .
$ cp ../../../apache-karaf-3.0.8/bin/instance .
$ PS4='Line ${LINENO}: ' bash -x ./karaf

LLine 32: realpath ./karaf
LLine 20: OURPWD=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin
LLLine 21: dirname ./karaf
LLine 21: cd .
LLLLine 22: basename ./karaf
LLLine 22: readlink karaf
LLine 22: LINK=
LLine 23: '[' '' ']'
LLLine 27: basename ./karaf
LLine 27: REALPATH=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
LLine 28: cd /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin
LLine 29: echo /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
Line 32: REALNAME=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
LLine 33: dirname /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
Line 33: DIRNAME=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin
LLine 34: basename /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
Line 34: PROGNAME=karaf
Line 39: KARAF_SCRIPT=karaf
Line 40: export KARAF_SCRIPT
Line 41: '[' -f /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/setenv
']'
Line 42: . /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/setenv
Line 48: '[' x = x ']'
Line 49: JAVA_MIN_MEM=128M
Line 50: export JAVA_MIN_MEM
Line 52: '[' x = x ']'
Line 53: JAVA_MAX_MEM=512M
Line 54: export JAVA_MAX_MEM
Line 60: '[' x '!=' x ']'
Line 444: main
Line 440: init
Line 342: detectOS
Line 75: cygwin=false
Line 76: darwin=false
Line 77: aix=false
Line 78: os400=false
Line 79: case "`uname`" in
LLine 79: uname
Line 94: false
Line 345: unlimitFD
Line 102: '[' x = x ']'
Line 103: MAX_FD=maximum
Line 107: '[' false = false ']'
Line 107: '[' false = false ']'
Line 108: '[' maximum = maximum -o maximum = max ']'
LLine 109: ulimit -H -n
Line 109: MAX_FD_LIMIT=65536
Line 110: '[' 0 -eq 0 ']'
Line 112: MAX_FD=65536
Line 117: '[' 65536 '!=' unlimited ']'
Line 118: ulimit -n 65536
Line 119: '[' 0 -ne 0 ']'
Line 348: locateHome
Line 127: '[' x = x ']'
Line 129: unset CDPATH
LLine 130: cd /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/..
LLine 130: pwd
Line 130: KARAF_HOME=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
Line 133: '[' '!' -d /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
']'
Line 351: locateBase
Line 139: '[' x '!=' x ']'
Line 144: KARAF_BASE=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
Line 354: locateData
Line 149: '[' x '!=' x ']'
Line 154: KARAF_DATA=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/data
Line 357: locateEtc
Line 159: '[' x '!=' x ']'
Line 164: KARAF_ETC=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/etc
Line 360: setupNativePath
Line 170: LD_LIBRARY_PATH=:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib
Line 173: false
Line 178: export LD_LIBRARY_PATH
Line 363: locateJava
Line 202: false
Line 207: '[' x/pool/home/robert//bin/jdk1.8.0_121/ = x ']'
Line 210: '[' x = x ']'
Line 210: '[' -r /etc/gentoo-release ']'
Line 213: '[' x = x ']'
Line 214: '[' x/pool/home/robert//bin/jdk1.8.0_121/ '!=' x ']'
Line 215: '[' '!' -d /pool/home/robert//bin/jdk1.8.0_121/ ']'
Line 218: JAVA=/pool/home/robert//bin/jdk1.8.0_121//bin/java
Line 228: '[' x/pool/home/robert//bin/jdk1.8.0_121/ = x ']'
Line 366: detectJVM
Line 237: /pool/home/robert//bin/jdk1.8.0_121//bin/java -version
Line 237: grep '^IBM'
Line 240: false
Line 243: JVM_VENDOR=SUN
Line 369: checkJvmVersion
LLine 250: /pool/home/robert//bin/jdk1.8.0_121//bin/java -version
LLine 250: egrep '"([0-9].[0-9]\..*[0-9]).*"'
LLine 250: awk '{print substr($3,2,length($3)-2)}'
LLine 250: awk '{print substr($1, 3, 3)}'
LLine 250: sed -e 's;\.;;g'
Line 250: VERSION=80
Line 252: '[' 80 -lt 60 ']'
Line 372: setupDefaults
Line 291: DEFAULT_JAVA_OPTS='-Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
'
Line 294: '[' SUN = SUN ']'
LLine 296: /pool/home/robert//bin/jdk1.8.0_121//bin/java -version
LLine 296: egrep '"([0-9].[0-9]\..*[0-9]).*"'
LLine 296: awk '{print substr($3,2,length($3)-2)}'
LLine 296: awk '{print substr($1, 3, 3)}'
LLine 296: sed -e 's;\.;;g'
Line 296: VERSION=80
Line 297: '[' 80 -lt 80 ']'
Line 306: DEFAULT_JAVA_OPTS='-server -Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
 -Dcom.sun.management.jmxremote'
Line 318: for file in '"$KARAF_HOME"/lib/karaf*.jar'
Line 320: '[' -z '' ']'
Line 321: CLASSPATH='/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/karaf*.jar'
Line 327: DEFAULT_JAVA_DEBUG_PORT=5005
Line 328: '[' x = x ']'
Line 329: JAVA_DEBUG_PORT=5005
Line 331: DEFAULT_JAVA_DEBUG_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
Line 375: setupDebugOptions
Line 259: '[' x = x ']'
Line 260: JAVA_OPTS='-server -Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
 -Dcom.sun.management.jmxremote'
Line 262: export JAVA_OPTS
Line 264: '[' x '!=' x ']'
Line 269: '[' x '!=' x ']'
Line 441: run
Line 380: OPTS='-Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=true'
Line 381: MAIN=org.apache.karaf.main.Main
Line 382: '[' '' '!=' '' ']'
Line 420: JAVA_ENDORSED_DIRS=/pool/home/robert//bin/jdk1.8.0_121//jre/lib/endorsed:/pool/home/robert//bin/jdk1.8.0_121//lib/endorsed:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/endorsed
Line 421: JAVA_EXT_DIRS=/pool/home/robert//bin/jdk1.8.0_121//jre/lib/ext:/pool/home/robert//bin/jdk1.8.0_121//lib/ext:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/ext
Line 422: false
Line 434: cd /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
Line 436: exec /pool/home/robert//bin/jdk1.8.0_121//bin/java -server -Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions
-XX:+UnsyncloadClass -Dcom.sun.management.jmxremote -Djava.endorsed.dirs=/pool/home/robert//bin/jdk1.8.0_121//jre/lib/endorsed:/pool/home/robert//bin/jdk1.8.0_121//lib/endorsed:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/endorsed
-Djava.ext.dirs=/pool/home/robert//bin/jdk1.8.0_121//jre/lib/ext:/pool/home/robert//bin/jdk1.8.0_121//lib/ext:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/ext
-Dkaraf.instances=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/instances
-Dkaraf.home=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8 -Dkaraf.base=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
-Dkaraf.data=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/data -Dkaraf.etc=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/etc
-Djava.io.tmpdir=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/data/tmp
-Djava.util.logging.config.file=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/etc/java.util.logging.properties
-Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=true -classpath '/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/karaf*.jar'
org.apache.karaf.main.Main
Error: Could not find or load main class org.apache.karaf.main.Main
{noformat}



was (Author: robban):
When using the "karaf" and "instance" scripts from 3.0.8 I was able to get past that infinite
loop.
However it didn't find org.apache.karaf.main.Main.

I am not experienced with starting java applications from the command line so I don't know
what arguments to use to solve this problem.

$ uname -a
SunOS server 5.11 11.3 i86pc i386 i86pc

$ printenv
LC_MONETARY=
TERM=xterm
SHELL=/usr/bin/bash
LC_NUMERIC=
OLDPWD=/pool/home/robert/openhab/karaf
SSH_TTY=/dev/pts/2
LC_ALL=
USER=robert
PAGER=/usr/bin/less -ins
MAIL=/var/mail/robert
PATH=/pool/home/robert//bin/jdk1.8.0_121/bin/:/usr/bin:/usr/sbin:/pool/home/robert/bin
LC_MESSAGES=
LC_COLLATE=
PWD=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin
JAVA_HOME=/pool/home/robert//bin/jdk1.8.0_121/
LANG=en_US.UTF-8
TZ=localtime
SHLVL=1
HOME=/pool/home/robert/
LOGNAME=robert
LC_CTYPE=
LC_TIME=
PATH=/pool/home/robert//bin/jdk1.8.0_121/bin/:/usr/bin:/usr/sbin:/pool/home/robert/bin
_=/usr/bin/printenv

$ tar xfvz apache-karaf-3.0.8.tar.gz
$ mkdir apache-karaf-4.0.8 && (cd apache-karaf-4.0.8 && tar xfvz ../apache-karaf-4.0.8.tar.gz)
$ cd apache-karaf-4.0.8/apache-karaf-4.0.8/bin/
$ cp ../../../apache-karaf-3.0.8/bin/karaf .
$ cp ../../../apache-karaf-3.0.8/bin/instance .
$ PS4='Line ${LINENO}: ' bash -x ./karaf

LLine 32: realpath ./karaf
LLine 20: OURPWD=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin
LLLine 21: dirname ./karaf
LLine 21: cd .
LLLLine 22: basename ./karaf
LLLine 22: readlink karaf
LLine 22: LINK=
LLine 23: '[' '' ']'
LLLine 27: basename ./karaf
LLine 27: REALPATH=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
LLine 28: cd /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin
LLine 29: echo /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
Line 32: REALNAME=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
LLine 33: dirname /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
Line 33: DIRNAME=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin
LLine 34: basename /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/karaf
Line 34: PROGNAME=karaf
Line 39: KARAF_SCRIPT=karaf
Line 40: export KARAF_SCRIPT
Line 41: '[' -f /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/setenv
']'
Line 42: . /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/setenv
Line 48: '[' x = x ']'
Line 49: JAVA_MIN_MEM=128M
Line 50: export JAVA_MIN_MEM
Line 52: '[' x = x ']'
Line 53: JAVA_MAX_MEM=512M
Line 54: export JAVA_MAX_MEM
Line 60: '[' x '!=' x ']'
Line 444: main
Line 440: init
Line 342: detectOS
Line 75: cygwin=false
Line 76: darwin=false
Line 77: aix=false
Line 78: os400=false
Line 79: case "`uname`" in
LLine 79: uname
Line 94: false
Line 345: unlimitFD
Line 102: '[' x = x ']'
Line 103: MAX_FD=maximum
Line 107: '[' false = false ']'
Line 107: '[' false = false ']'
Line 108: '[' maximum = maximum -o maximum = max ']'
LLine 109: ulimit -H -n
Line 109: MAX_FD_LIMIT=65536
Line 110: '[' 0 -eq 0 ']'
Line 112: MAX_FD=65536
Line 117: '[' 65536 '!=' unlimited ']'
Line 118: ulimit -n 65536
Line 119: '[' 0 -ne 0 ']'
Line 348: locateHome
Line 127: '[' x = x ']'
Line 129: unset CDPATH
LLine 130: cd /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/bin/..
LLine 130: pwd
Line 130: KARAF_HOME=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
Line 133: '[' '!' -d /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
']'
Line 351: locateBase
Line 139: '[' x '!=' x ']'
Line 144: KARAF_BASE=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
Line 354: locateData
Line 149: '[' x '!=' x ']'
Line 154: KARAF_DATA=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/data
Line 357: locateEtc
Line 159: '[' x '!=' x ']'
Line 164: KARAF_ETC=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/etc
Line 360: setupNativePath
Line 170: LD_LIBRARY_PATH=:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib
Line 173: false
Line 178: export LD_LIBRARY_PATH
Line 363: locateJava
Line 202: false
Line 207: '[' x/pool/home/robert//bin/jdk1.8.0_121/ = x ']'
Line 210: '[' x = x ']'
Line 210: '[' -r /etc/gentoo-release ']'
Line 213: '[' x = x ']'
Line 214: '[' x/pool/home/robert//bin/jdk1.8.0_121/ '!=' x ']'
Line 215: '[' '!' -d /pool/home/robert//bin/jdk1.8.0_121/ ']'
Line 218: JAVA=/pool/home/robert//bin/jdk1.8.0_121//bin/java
Line 228: '[' x/pool/home/robert//bin/jdk1.8.0_121/ = x ']'
Line 366: detectJVM
Line 237: /pool/home/robert//bin/jdk1.8.0_121//bin/java -version
Line 237: grep '^IBM'
Line 240: false
Line 243: JVM_VENDOR=SUN
Line 369: checkJvmVersion
LLine 250: /pool/home/robert//bin/jdk1.8.0_121//bin/java -version
LLine 250: egrep '"([0-9].[0-9]\..*[0-9]).*"'
LLine 250: awk '{print substr($3,2,length($3)-2)}'
LLine 250: awk '{print substr($1, 3, 3)}'
LLine 250: sed -e 's;\.;;g'
Line 250: VERSION=80
Line 252: '[' 80 -lt 60 ']'
Line 372: setupDefaults
Line 291: DEFAULT_JAVA_OPTS='-Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
'
Line 294: '[' SUN = SUN ']'
LLine 296: /pool/home/robert//bin/jdk1.8.0_121//bin/java -version
LLine 296: egrep '"([0-9].[0-9]\..*[0-9]).*"'
LLine 296: awk '{print substr($3,2,length($3)-2)}'
LLine 296: awk '{print substr($1, 3, 3)}'
LLine 296: sed -e 's;\.;;g'
Line 296: VERSION=80
Line 297: '[' 80 -lt 80 ']'
Line 306: DEFAULT_JAVA_OPTS='-server -Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
 -Dcom.sun.management.jmxremote'
Line 318: for file in '"$KARAF_HOME"/lib/karaf*.jar'
Line 320: '[' -z '' ']'
Line 321: CLASSPATH='/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/karaf*.jar'
Line 327: DEFAULT_JAVA_DEBUG_PORT=5005
Line 328: '[' x = x ']'
Line 329: JAVA_DEBUG_PORT=5005
Line 331: DEFAULT_JAVA_DEBUG_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
Line 375: setupDebugOptions
Line 259: '[' x = x ']'
Line 260: JAVA_OPTS='-server -Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
 -Dcom.sun.management.jmxremote'
Line 262: export JAVA_OPTS
Line 264: '[' x '!=' x ']'
Line 269: '[' x '!=' x ']'
Line 441: run
Line 380: OPTS='-Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=true'
Line 381: MAIN=org.apache.karaf.main.Main
Line 382: '[' '' '!=' '' ']'
Line 420: JAVA_ENDORSED_DIRS=/pool/home/robert//bin/jdk1.8.0_121//jre/lib/endorsed:/pool/home/robert//bin/jdk1.8.0_121//lib/endorsed:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/endorsed
Line 421: JAVA_EXT_DIRS=/pool/home/robert//bin/jdk1.8.0_121//jre/lib/ext:/pool/home/robert//bin/jdk1.8.0_121//lib/ext:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/ext
Line 422: false
Line 434: cd /pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
Line 436: exec /pool/home/robert//bin/jdk1.8.0_121//bin/java -server -Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions
-XX:+UnsyncloadClass -Dcom.sun.management.jmxremote -Djava.endorsed.dirs=/pool/home/robert//bin/jdk1.8.0_121//jre/lib/endorsed:/pool/home/robert//bin/jdk1.8.0_121//lib/endorsed:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/endorsed
-Djava.ext.dirs=/pool/home/robert//bin/jdk1.8.0_121//jre/lib/ext:/pool/home/robert//bin/jdk1.8.0_121//lib/ext:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/ext
-Dkaraf.instances=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/instances
-Dkaraf.home=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8 -Dkaraf.base=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8
-Dkaraf.data=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/data -Dkaraf.etc=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/etc
-Djava.io.tmpdir=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/data/tmp
-Djava.util.logging.config.file=/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/etc/java.util.logging.properties
-Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=true -classpath '/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/karaf*.jar'
org.apache.karaf.main.Main
Error: Could not find or load main class org.apache.karaf.main.Main


> Karaf 4.0.8 doesn't work on Solaris 11
> --------------------------------------
>
>                 Key: KARAF-4949
>                 URL: https://issues.apache.org/jira/browse/KARAF-4949
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-boot
>    Affects Versions: 4.0.8
>            Reporter: Ɓukasz Dywicki
>
> Due to start script bug karaf stuck in infinite loop trying to resolve links/paths. Karaf
3.0.8 is just fine.
> {code}dtrace -n 'proc:::exec-success { printf("%d %s", timestamp, curpsinfo->pr_psargs);
}
> 3   2774         exec_common:exec-success 13701034740196517 basename ./karaf
>    3   2774         exec_common:exec-success 13701034741563289 ls -l karaf
>    3   2774         exec_common:exec-success 13701034750148401 basename ./karaf
>    3   2774         exec_common:exec-success 13701034751490882 ls -l karaf
>    3   2774         exec_common:exec-success 13701034756688018 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034764053846 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034772039905 basename ./karaf
>    3   2774         exec_common:exec-success 13701034793390589 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034795465471 ls -l karaf
>    3   2774         exec_common:exec-success 13701034798580611 dirname rwxr
>    3   2774         exec_common:exec-success 13701034808394710 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034818317227 basename ./karaf
>    3   2774         exec_common:exec-success 13701034819658361 ls -l karaf
>    3   2774         exec_common:exec-success 13701034824901811 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034832185985 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034834300045 ls -l karaf
>    3   2774         exec_common:exec-success 13701034837399540 dirname rwxr
>    3   2774         exec_common:exec-success 13701034844648565 dirname rwxr
>    3   2774         exec_common:exec-success 13701034852339549 dirname rwxr
>    3   2774         exec_common:exec-success 13701034864501043 basename ./karaf
>    3   2774         exec_common:exec-success 13701034865863220 ls -l karaf
>    3   2774         exec_common:exec-success 13701034872957211 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034880966296 basename ./karaf
>    3   2774         exec_common:exec-success 13701034882320039 ls -l karaf
>    3   2774         exec_common:exec-success 13701034887548402 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034895525356 basename ./karaf
>    3   2774         exec_common:exec-success 13701034896902170 ls -l karaf
>    3   2774         exec_common:exec-success 13701034902767341 basename ./karaf
>    3   2774         exec_common:exec-success 13701034904144895 ls -l karaf
>    3   2774         exec_common:exec-success 13701034909324639 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034917334414 basename ./karaf
>    3   2774         exec_common:exec-success 13701034921832024 dirname rwxr
>    3   2774         exec_common:exec-success 13701034944276297 basename ./karaf
>    3   2774         exec_common:exec-success 13701034967903680 basename ./karaf
>    3   2774         exec_common:exec-success 13701034982170895 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701034985879832 ls -l karaf
>    3   2774         exec_common:exec-success 13701034993122681 dirname rwxr
>    3   2774         exec_common:exec-success 13701035005461019 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701035007553647 ls -l karaf
>    3   2774         exec_common:exec-success 13701035028166085 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701035030280956 ls -l karaf
>    3   2774         exec_common:exec-success 13701035033473916 dirname rwxr
>    3   2774         exec_common:exec-success 13701035042227910 dirname rwxr
>    3   2774         exec_common:exec-success 13701035049567466 dirname rwxr
>    3   2774         exec_common:exec-success 13701035057042649 dirname rwxr
>    3   2774         exec_common:exec-success 13701035072158969 dirname rwxr
>    3   2774         exec_common:exec-success 13701035079931335 dirname rwxr
>    3   2774         exec_common:exec-success 13701035091302728 basename ./karaf
>    3   2774         exec_common:exec-success 13701035114648553 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701035116776774 ls -l karaf
>    3   2774         exec_common:exec-success 13701035119939237 dirname rwxr
>    3   2774         exec_common:exec-success 13701035134695662 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701035138461378 ls -l karaf
>    3   2774         exec_common:exec-success 13701035156538295 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701035158679245 ls -l karaf
>    3   2774         exec_common:exec-success 13701035161889984 dirname rwxr
>    3   2774         exec_common:exec-success 13701035180174111 awk -F->  {print $2}
>    3   2774         exec_common:exec-success 13701035182516085 ls -l karaf
>    3   2774         exec_common:exec-success 13701035185646245 dirname rwxr
>    3   2774         exec_common:exec-success 13701035195992680 basename ./karaf
>    3   2774         exec_common:exec-success 13701035219394212 awk -F->  {print $2}{code}
> {code}PS4='Line ${LINENO}: ' bash -x ./karaf
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .
> LLLine 25: awk '-F-> ' '{print $2}'
> LLLLine 25: basename ./karaf
> LLLine 25: ls -l karaf
> LLine 25: LINK=rwxr
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .
> LLLine 25: awk '-F-> ' '{print $2}'
> LLLLine 25: basename ./karaf
> LLLine 25: ls -l karaf
> LLine 25: LINK=rwxr
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .
> LLLine 25: awk '-F-> ' '{print $2}'
> LLLLine 25: basename ./karaf
> LLLine 25: ls -l karaf
> LLine 25: LINK=rwxr
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .
> LLLine 25: awk '-F-> ' '{print $2}'
> LLLLine 25: basename ./karaf
> LLLine 25: ls -l karaf
> LLine 25: LINK=rwxr
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .
> LLLine 25: awk '-F-> ' '{print $2}'
> LLLLine 25: basename ./karaf
> LLLine 25: ls -l karaf
> LLine 25: LINK=rwxr
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .
> LLLine 25: awk '-F-> ' '{print $2}'
> LLLLine 25: basename ./karaf
> LLLine 25: ls -l karaf
> LLine 25: LINK=rwxr
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .
> LLLine 25: awk '-F-> ' '{print $2}'
> LLLLine 25: basename ./karaf
> LLLine 25: ls -l karaf
> LLine 25: LINK=rwxr
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .
> LLLine 25: awk '-F-> ' '{print $2}'
> LLLLine 25: basename ./karaf
> LLLine 25: ls -l karaf
> LLine 25: LINK=rwxr
> LLine 23: '[' rwxr ']'
> LLLine 24: dirname rwxr
> LLine 24: cd .{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message