bin/client script cannot be run on IBM JVM

Solution Verified - Updated -

Issue

  • When trying to execute the ./bin/client script on a machine using the IBM JVM the following error occurs:
$ ./client --help
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux ppc64-64 jvmxp6460sr8ifx-20100609_59383 (JIT enabled, AOT enabled)
Exception in thread "main" java.lang.NoClassDefFoundError: org.osgi.framework.BundleContext
        at org.apache.felix.utils.properties.InterpolationHelper.performSubstitution(InterpolationHelper.java:58)
        at org.apache.felix.utils.properties.Properties.loadLayout(Properties.java:355)
        at org.apache.felix.utils.properties.Properties.load(Properties.java:128)
        at org.apache.felix.utils.properties.Properties.load(Properties.java:124)
        at org.apache.felix.utils.properties.Properties.load(Properties.java:108)
        at org.apache.felix.utils.properties.Properties.<init>(Properties.java:102)
        at org.apache.felix.utils.properties.Properties.<init>(Properties.java:95)
        at org.apache.karaf.client.Main.main(Main.java:57)
Caused by: java.lang.ClassNotFoundException: org.osgi.framework.BundleContext
        at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
        ... 8 more

Environment

  • JBoss Fuse 6.1
  • IBM JVM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.