Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6525

bin/shell.bat|sh could not find org.osgi.framework.FrameworkUtil

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.7
    • Fix Version/s: 4.3.0, 4.2.8
    • Component/s: karaf
    • Labels:

      Description

      Trying to start `bin/shell.bat|sh` with Java 11 results in: 

      Exception in thread "main" java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkUtil
      at org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory.getLogger(Slf4jLoggerFactory.java:49)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
      at org.apache.karaf.shell.impl.console.JLineTerminal.<clinit>(JLineTerminal.java:52)
      at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:141)
      at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:135)
      at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:78)
      at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:60)
      Caused by: java.lang.ClassNotFoundException: org.osgi.framework.FrameworkUtil
      at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 8 more

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                a.vasilev Aleksandar Vasilev
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: