Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17700

No Class Def Found errors when client bin command in Karaf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • fuse-7.10-GA
    • fuse-7.10-GA
    • Karaf
    • None
    • False
    • False
    • % %
    • Todo

    Description

      Opening a terminal in Karaf container generated by 

      registry-proxy.engineering.redhat.com/rh-osbs/fuse7-fuse-karaf-openshift-rhel8:1.10-5

      and running:

      sh-4.4$ /deployments/karaf/bin/client -u admin -p admin bundle:list
      

      we get:

      Error: A JNI error has occurred, please check your installation and try againError: A JNI error has occurred, please check your installation and try againException in thread "main" java.lang.NoClassDefFoundError: org/apache/sshd/agent/SshAgentFactory at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)Caused by: java.lang.ClassNotFoundException: org.apache.sshd.agent.SshAgentFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 7 more
      

      So, basically, it seems that "org/apache/sshd/agent/SshAgentFactory" is missing 

      Similar issue it happens on JDK11 with: registry-proxy.engineering.redhat.com/rh-osbs/fuse7-fuse-karaf-openshift-jdk11-rhel8

      but exception we get is:

      ERROR- c.x.core.openshift.OpenShiftBinary - Unable to use a TTY - input is not a terminal or the right kind of file
      Error: Unable to initialize main class org.apache.karaf.client.Main
      Caused by: java.lang.NoClassDefFoundError: org/apache/sshd/client/auth/keyboard/UserInteraction
      command terminated with exit code 1
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              smongiar@redhat.com Salvatore Mongiardo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: