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é" <j...@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é
jbono...@apache.org
http://blog.nanthrax.net[http://blog.nanthrax.net]
Talend - http://www.talend.com[http://www.talend.com]


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

Reply via email to