[
https://issues.apache.org/jira/browse/KARAF-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15829666#comment-15829666
]
Robert Selberg commented on KARAF-4949:
---------------------------------------
Maybe I did something wrong.. I got it to work now.
{noformat}
robert@server:/pool/home/robert/openhab/karaf$ ls
apache-karaf-3.0.8.tar.gz apache-karaf-4.0.8.tar.gz extract-and-patch
robert@server:/pool/home/robert/openhab/karaf$ cat extract-and-patch
#!/bin/bash
set -e
rm -rf apache-karaf-[34].0.8
/usr/gnu/bin/tar xfvz apache-karaf-3.0.8.tar.gz
mkdir apache-karaf-4.0.8 && (cd apache-karaf-4.0.8 && /usr/gnu/bin/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}: ' \
CLASSPATH=`pwd`/../lib/boot/* \
bash -x ./karaf
./extract-and-patch
bla bla..
bla bla..
bla bla..
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/bin/../lib/boot/*:/pool/home/robert/openhab/karaf/apache-karaf-4.0.8/apache-karaf-4.0.8/lib/karaf*.jar'
org.apache.karaf.main.Main
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.0.8)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf@root()>
{noformat}
> 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
> Assignee: Guillaume Nodet
>
> 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)