You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Jens Offenbach <wo...@gmx.de> on 2016/09/08 15:15:48 UTC

Problems with 4.1.0-SNAPSHOT

Hallo,
I am working with the current snapshot of Karaf 4.1 (https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/apache-karaf-4.1.0-20160817.085104-183.tar.gz).

There seems to be a problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client"...

These scripts contain the following function:
realpath() {
  OURPWD=/home/jenkins/jenkins-slave
  cd "$(dirname "${1}")"
  LINK=$(readlink "$(basename "${1}")")
  while [ "${LINK}" ]; do
    cd "$(dirname "${LINK}")"
    LINK=$(readlink "$(basename "${1}")")
  done
  REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")"
  cd "${OURPWD}"
  echo "${REALPATH}"
}

Of course "/home/jenkins/jenkins-slave" is not present on my system and the call "/opt/apache-karaf/bin/shell wrapper:install" fails with:
/opt/apache-karaf/bin/shell: 28: cd: can't cd to /home/jenkins/jenkins-slave
/opt/apache-karaf/bin/shell: 1: cd: can't cd to /home/jenkins/jenkins-slave/

Can someone please have a look!

Thank you very much.

Regards,
Jens

Aw: Re: Re: Problems with 4.1.0-SNAPSHOT

Posted by Jens Offenbach <wo...@gmx.de>.
Yes, I will create one.

Thanks your quick response!
 

Gesendet: Freitag, 09. September 2016 um 11:13 Uhr
Von: "Jean-Baptiste Onofré" <jb...@nanthrax.net>
An: user@karaf.apache.org
Betreff: Re: Aw: Re: Problems with 4.1.0-SNAPSHOT
Thanks for the update Jens.

It sounds like a wrapper/jline issue.

Can you create a Jira about that please ?

Thanks,
Regards
JB

On 09/09/2016 10:59 AM, Jens Offenbach wrote:
> Thanks for your hint... I made a quick fix to continue working with 4.1.0-SNAPSHOT, but I am confronted with a new issue:
>
> /opt/apache-karaf/bin/shell wrapper:install
> Exception in thread "main" java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208)
> at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147)
> at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136)
> at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76)
> at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58)
>
> The source seems to be "[KARAF-4570] Upgrade to JLine 3": https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a.
>
> The file "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be obsolete. Must this line be replaced or can it be deleted completely?
>
> Thanks!
>
> Regards,
> Jens
>
>
> Gesendet: Donnerstag, 08. September 2016 um 17:17 Uhr
> Von: "Jean-Baptiste Onofré" <jb...@nanthrax.net>
> An: user@karaf.apache.org
> Betreff: Re: Problems with 4.1.0-SNAPSHOT
> Hi Jens,
>
> It looks that some interpolations have been performed on Jenkins (during
> nightly build).
>
> Let me check.
>
> Thanks
> Regards
> JB
>
> On 09/08/2016 05:15 PM, Jens Offenbach wrote:
>> Hallo,
>> I am working with the current snapshot of Karaf 4.1 (https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/apache-karaf-4.1.0-20160817.085104-183.tar.gz[https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/apache-karaf-4.1.0-20160817.085104-183.tar.gz]).
>>
>> There seems to be a problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client"...
>>
>> These scripts contain the following function:
>> realpath() {
>> OURPWD=/home/jenkins/jenkins-slave
>> cd "$(dirname "${1}")"
>> LINK=$(readlink "$(basename "${1}")")
>> while [ "${LINK}" ]; do
>> cd "$(dirname "${LINK}")"
>> LINK=$(readlink "$(basename "${1}")")
>> done
>> REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")"
>> cd "${OURPWD}"
>> echo "${REALPATH}"
>> }
>>
>> Of course "/home/jenkins/jenkins-slave" is not present on my system and the call "/opt/apache-karaf/bin/shell wrapper:install" fails with:
>> /opt/apache-karaf/bin/shell: 28: cd: can't cd to /home/jenkins/jenkins-slave
>> /opt/apache-karaf/bin/shell: 1: cd: can't cd to /home/jenkins/jenkins-slave/
>>
>> Can someone please have a look!
>>
>> Thank you very much.
>>
>> Regards,
>> Jens
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net[http://blog.nanthrax.net][http://blog.nanthrax.net[http://blog.nanthrax.net]]
> Talend - http://www.talend.com[http://www.talend.com][http://www.talend.com[http://www.talend.com]]
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net[http://blog.nanthrax.net]
Talend - http://www.talend.com[http://www.talend.com]

Re: Aw: Re: Problems with 4.1.0-SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks for the update Jens.

It sounds like a wrapper/jline issue.

Can you create a Jira about that please ?

Thanks,
Regards
JB

On 09/09/2016 10:59 AM, Jens Offenbach wrote:
> Thanks for your hint... I made a quick fix to continue working with 4.1.0-SNAPSHOT, but I am confronted with a new issue:
>
> /opt/apache-karaf/bin/shell wrapper:install
> Exception in thread "main" java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208)
>         at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147)
>         at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136)
>         at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76)
>         at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58)
>
> The source seems to be "[KARAF-4570] Upgrade to JLine 3": https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a.
>
> The file "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be obsolete. Must this line be replaced or can it be deleted completely?
>
> Thanks!
>
> Regards,
> Jens
>
>
> Gesendet: Donnerstag, 08. September 2016 um 17:17 Uhr
> Von: "Jean-Baptiste Onofr�" <jb...@nanthrax.net>
> An: user@karaf.apache.org
> Betreff: Re: Problems with 4.1.0-SNAPSHOT
> Hi Jens,
>
> It looks that some interpolations have been performed on Jenkins (during
> nightly build).
>
> Let me check.
>
> Thanks
> Regards
> JB
>
> On 09/08/2016 05:15 PM, Jens Offenbach wrote:
>> Hallo,
>> I am working with the current snapshot of Karaf 4.1 (https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/apache-karaf-4.1.0-20160817.085104-183.tar.gz).
>>
>> There seems to be a problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client"...
>>
>> These scripts contain the following function:
>> realpath() {
>> OURPWD=/home/jenkins/jenkins-slave
>> cd "$(dirname "${1}")"
>> LINK=$(readlink "$(basename "${1}")")
>> while [ "${LINK}" ]; do
>> cd "$(dirname "${LINK}")"
>> LINK=$(readlink "$(basename "${1}")")
>> done
>> REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")"
>> cd "${OURPWD}"
>> echo "${REALPATH}"
>> }
>>
>> Of course "/home/jenkins/jenkins-slave" is not present on my system and the call "/opt/apache-karaf/bin/shell wrapper:install" fails with:
>> /opt/apache-karaf/bin/shell: 28: cd: can't cd to /home/jenkins/jenkins-slave
>> /opt/apache-karaf/bin/shell: 1: cd: can't cd to /home/jenkins/jenkins-slave/
>>
>> Can someone please have a look!
>>
>> Thank you very much.
>>
>> Regards,
>> Jens
>>
>
> --
> Jean-Baptiste Onofr�
> jbonofre@apache.org
> http://blog.nanthrax.net[http://blog.nanthrax.net]
> Talend - http://www.talend.com[http://www.talend.com]
>

-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Aw: Re: Problems with 4.1.0-SNAPSHOT

Posted by Jens Offenbach <wo...@gmx.de>.
Thanks for your hint... I made a quick fix to continue working with 4.1.0-SNAPSHOT, but I am confronted with a new issue:

/opt/apache-karaf/bin/shell wrapper:install
Exception in thread "main" java.lang.ClassNotFoundException: org.jledit.ConcreteEditorFactory
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.apache.karaf.shell.impl.console.standalone.Main.discoverCommands(Main.java:208)
        at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:147)
        at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136)
        at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76)
        at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58)

The source seems to be "[KARAF-4570] Upgrade to JLine 3": https://github.com/apache/karaf/commit/8f813cf934e40ce2c9ab3b6b7257220ff91c0e7a.

The file "shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell" contains the line "org.jledit.ConcreteEditorFactory", but jledit seems to be obsolete. Must this line be replaced or can it be deleted completely?

Thanks!

Regards,
Jens
 

Gesendet: Donnerstag, 08. September 2016 um 17:17 Uhr
Von: "Jean-Baptiste Onofré" <jb...@nanthrax.net>
An: user@karaf.apache.org
Betreff: Re: Problems with 4.1.0-SNAPSHOT
Hi Jens,

It looks that some interpolations have been performed on Jenkins (during
nightly build).

Let me check.

Thanks
Regards
JB

On 09/08/2016 05:15 PM, Jens Offenbach wrote:
> Hallo,
> I am working with the current snapshot of Karaf 4.1 (https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/apache-karaf-4.1.0-20160817.085104-183.tar.gz).
>
> There seems to be a problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client"...
>
> These scripts contain the following function:
> realpath() {
> OURPWD=/home/jenkins/jenkins-slave
> cd "$(dirname "${1}")"
> LINK=$(readlink "$(basename "${1}")")
> while [ "${LINK}" ]; do
> cd "$(dirname "${LINK}")"
> LINK=$(readlink "$(basename "${1}")")
> done
> REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")"
> cd "${OURPWD}"
> echo "${REALPATH}"
> }
>
> Of course "/home/jenkins/jenkins-slave" is not present on my system and the call "/opt/apache-karaf/bin/shell wrapper:install" fails with:
> /opt/apache-karaf/bin/shell: 28: cd: can't cd to /home/jenkins/jenkins-slave
> /opt/apache-karaf/bin/shell: 1: cd: can't cd to /home/jenkins/jenkins-slave/
>
> Can someone please have a look!
>
> Thank you very much.
>
> Regards,
> Jens
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net[http://blog.nanthrax.net]
Talend - http://www.talend.com[http://www.talend.com]

Re: Problems with 4.1.0-SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jens,

It looks that some interpolations have been performed on Jenkins (during 
nightly build).

Let me check.

Thanks
Regards
JB

On 09/08/2016 05:15 PM, Jens Offenbach wrote:
> Hallo,
> I am working with the current snapshot of Karaf 4.1 (https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/apache-karaf-4.1.0-20160817.085104-183.tar.gz).
>
> There seems to be a problem in the shell scripts "/bin/shell", "/bin/start", "/bin/client"...
>
> These scripts contain the following function:
> realpath() {
>   OURPWD=/home/jenkins/jenkins-slave
>   cd "$(dirname "${1}")"
>   LINK=$(readlink "$(basename "${1}")")
>   while [ "${LINK}" ]; do
>     cd "$(dirname "${LINK}")"
>     LINK=$(readlink "$(basename "${1}")")
>   done
>   REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")"
>   cd "${OURPWD}"
>   echo "${REALPATH}"
> }
>
> Of course "/home/jenkins/jenkins-slave" is not present on my system and the call "/opt/apache-karaf/bin/shell wrapper:install" fails with:
> /opt/apache-karaf/bin/shell: 28: cd: can't cd to /home/jenkins/jenkins-slave
> /opt/apache-karaf/bin/shell: 1: cd: can't cd to /home/jenkins/jenkins-slave/
>
> Can someone please have a look!
>
> Thank you very much.
>
> Regards,
> Jens
>

-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com