java.lang.NoClassDefFoundError: org/osgi/framework/ServiceException

Oracle Community | chris.joelly | 5 years ago
  1. 0

    Using embedded GF 3.1.1 for unit testing

    Oracle Community | 5 years ago | chris.joelly
    java.lang.NoClassDefFoundError: org/osgi/framework/ServiceException
  2. 0

    Too many dependencies?

    GitHub | 2 years ago | nunobrito
    java.lang.NoClassDefFoundError: org/hamcrest/Matcher
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    KRYO-2.22 not working in OSGI KARAF

    GitHub | 2 years ago | saviour23
    org.osgi.framework.BundleException: Activator start error in bundle PMED_Cluster.TestCollector [127].
  5. 0

    Can't start jboss server; NoClassDefFoundError: com/tibco/tibrv/TibrvException

    Stack Overflow | 2 years ago
    java.lang.NoClassDefFoundError: com/tibco/tibrv/TibrvException

  1. andyglick 4 times, last 3 months ago
17 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    org/osgi/framework/ServiceException

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    Class.getDeclaredConstructor
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    5. java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    6. java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    7. java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    10. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    11. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    12. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    13. java.lang.Class.getDeclaredConstructors0(Native Method)
    14. java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    15. java.lang.Class.getConstructor0(Class.java:2699)
    16. java.lang.Class.getDeclaredConstructor(Class.java:1985)
    16 frames
  3. Weld Implementation
    WeldBootstrap.startInitialization
    1. org.jboss.weld.util.ServiceLoader.prepareInstance(ServiceLoader.java:271)
    2. org.jboss.weld.util.ServiceLoader.loadService(ServiceLoader.java:238)
    3. org.jboss.weld.util.ServiceLoader.loadServiceFile(ServiceLoader.java:194)
    4. org.jboss.weld.util.ServiceLoader.reload(ServiceLoader.java:157)
    5. org.jboss.weld.util.ServiceLoader.iterator(ServiceLoader.java:346)
    6. org.jboss.weld.bootstrap.ExtensionBeanDeployer.addExtensions(ExtensionBeanDeployer.java:93)
    7. org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:340)
    7 frames
  4. Embedded GlassFish Web
    WeldDeployer.event
    1. org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:168)
    1 frame
  5. Kernel Classes
    EventsImpl.send
    1. org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
    1 frame
  6. Private APIs of Glassfish
    ApplicationInfo.load
    1. org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:270)
    1 frame
  7. Kernel Classes
    ApplicationLifecycle.deploy
    1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    2 frames
  8. Embedded GlassFish Web
    DeployCommand.execute
    1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
    1 frame
  9. Kernel Classes
    CommandRunnerImpl$ExecutionContext.execute
    1. com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    2. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    3. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
    4. com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    5. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
    6. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
    6 frames
  10. admin-cli
    DeployerImpl.deploy
    1. com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
    2. com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:105)
    2 frames
  11. erp.test
    TransactionTest.setUp
    1. erp.test.TransactionTest.setUp(TransactionTest.java:111)
    1 frame