java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We have activated OSCache within an clustered BEA WebLogic environment. At server start we encounter the following error: java.lang.NoClassDefFoundError: org/javagroups/blocks/NotificationBus$Consumer at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at com.opensymphony.oscache.base.AbstractCacheAdministrator.getCacheEventListeners(AbstractCacheAdministrator.java:227) at com.opensymphony.oscache.base.AbstractCacheAdministrator.configureStandardListeners(AbstractCacheAdministrator.java:293) at com.opensymphony.oscache.general.GeneralCacheAdministrator.createCache(GeneralCacheAdministrator.java:297) at com.opensymphony.oscache.general.GeneralCacheAdministrator.<init>(GeneralCacheAdministrator.java:99) at com.opensymphony.oscache.general.GeneralCacheAdministrator.<init>(GeneralCacheAdministrator.java:90) at net.sf.hibernate.cache.OSCache.<init>(OSCache.java:16) at net.sf.hibernate.cache.OSCacheProvider.buildCache(OSCacheProvider.java:55) at net.sf.hibernate.cfg.Configuration.configureCaches(Configuration.java:1130) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:790) at net.sf.hibernate.jca.ManagedConnectionFactoryImpl.initialize(ManagedConnectionFactoryImpl.java:156) at net.sf.hibernate.jca.ManagedConnectionFactoryImpl.createConnectionFactory(ManagedConnectionFactoryImpl.java:87) at weblogic.connector.common.internal.ConnectionPool.getConnectionFactory(ConnectionPool.java:1724) at weblogic.connector.common.internal.ConnectionFactory.testConnectionProxyViability(ConnectionFactory.java:466) at weblogic.connector.common.internal.ConnectionFactory.createResource(ConnectionFactory.java:207) at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1145) at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1079) at weblogic.common.resourcepool.ResourcePoolImpl.setInitialCapacity(ResourcePoolImpl.java:739) at weblogic.connector.common.internal.ConnectionPoolManager.updateInitialCapacity(ConnectionPoolManager.java:495) at weblogic.connector.common.internal.ConnectionPoolManager.preparePool(ConnectionPoolManager.java:140) at weblogic.connector.deploy.Deployer.preparePool(Deployer.java:618) at weblogic.connector.deploy.Deployer.prepare(Deployer.java:230) at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:248) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3101) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1560) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1208) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1051) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:823) at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDeployer.java:2925) at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(SlaveDeployer.java:967) at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:349) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229) at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361) at weblogic.Server.main(Server.java:32) After decompiling oscache-2.0.jar which comes with this Hibernate release we have found out that the following class com.opensymphony.plugins.clustersupport.JavaGroupsBroadcastingListener depends on org/javagroups/blocks/NotificationBus$Consumer. Unfortunataly the JAR jgroups-2.2.3.jar does not contain this class. Instead all classes in this jar are packaged as org.jgroups.
    via by Metin Göktay,
  • We have activated OSCache within an clustered BEA WebLogic environment. At server start we encounter the following error: java.lang.NoClassDefFoundError: org/javagroups/blocks/NotificationBus$Consumer at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at com.opensymphony.oscache.base.AbstractCacheAdministrator.getCacheEventListeners(AbstractCacheAdministrator.java:227) at com.opensymphony.oscache.base.AbstractCacheAdministrator.configureStandardListeners(AbstractCacheAdministrator.java:293) at com.opensymphony.oscache.general.GeneralCacheAdministrator.createCache(GeneralCacheAdministrator.java:297) at com.opensymphony.oscache.general.GeneralCacheAdministrator.<init>(GeneralCacheAdministrator.java:99) at com.opensymphony.oscache.general.GeneralCacheAdministrator.<init>(GeneralCacheAdministrator.java:90) at net.sf.hibernate.cache.OSCache.<init>(OSCache.java:16) at net.sf.hibernate.cache.OSCacheProvider.buildCache(OSCacheProvider.java:55) at net.sf.hibernate.cfg.Configuration.configureCaches(Configuration.java:1130) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:790) at net.sf.hibernate.jca.ManagedConnectionFactoryImpl.initialize(ManagedConnectionFactoryImpl.java:156) at net.sf.hibernate.jca.ManagedConnectionFactoryImpl.createConnectionFactory(ManagedConnectionFactoryImpl.java:87) at weblogic.connector.common.internal.ConnectionPool.getConnectionFactory(ConnectionPool.java:1724) at weblogic.connector.common.internal.ConnectionFactory.testConnectionProxyViability(ConnectionFactory.java:466) at weblogic.connector.common.internal.ConnectionFactory.createResource(ConnectionFactory.java:207) at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1145) at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1079) at weblogic.common.resourcepool.ResourcePoolImpl.setInitialCapacity(ResourcePoolImpl.java:739) at weblogic.connector.common.internal.ConnectionPoolManager.updateInitialCapacity(ConnectionPoolManager.java:495) at weblogic.connector.common.internal.ConnectionPoolManager.preparePool(ConnectionPoolManager.java:140) at weblogic.connector.deploy.Deployer.preparePool(Deployer.java:618) at weblogic.connector.deploy.Deployer.prepare(Deployer.java:230) at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:248) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3101) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1560) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1208) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1051) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:823) at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDeployer.java:2925) at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(SlaveDeployer.java:967) at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:349) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229) at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361) at weblogic.Server.main(Server.java:32) After decompiling oscache-2.0.jar which comes with this Hibernate release we have found out that the following class com.opensymphony.plugins.clustersupport.JavaGroupsBroadcastingListener depends on org/javagroups/blocks/NotificationBus$Consumer. Unfortunataly the JAR jgroups-2.2.3.jar does not contain this class. Instead all classes in this jar are packaged as org.jgroups.
    via by Metin Göktay,
  • Class Not Found Exception
    via by togotutor,
  • Class Loader Problem on OS X
    via by 666705,
    • java.lang.NoClassDefFoundError: org/javagroups/blocks/NotificationBus$Consumer at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at com.opensymphony.oscache.base.AbstractCacheAdministrator.getCacheEventListeners(AbstractCacheAdministrator.java:227) at com.opensymphony.oscache.base.AbstractCacheAdministrator.configureStandardListeners(AbstractCacheAdministrator.java:293) at com.opensymphony.oscache.general.GeneralCacheAdministrator.createCache(GeneralCacheAdministrator.java:297) at com.opensymphony.oscache.general.GeneralCacheAdministrator.<init>(GeneralCacheAdministrator.java:99) at com.opensymphony.oscache.general.GeneralCacheAdministrator.<init>(GeneralCacheAdministrator.java:90) at net.sf.hibernate.cache.OSCache.<init>(OSCache.java:16) at net.sf.hibernate.cache.OSCacheProvider.buildCache(OSCacheProvider.java:55) at net.sf.hibernate.cfg.Configuration.configureCaches(Configuration.java:1130) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:790) at net.sf.hibernate.jca.ManagedConnectionFactoryImpl.initialize(ManagedConnectionFactoryImpl.java:156) at net.sf.hibernate.jca.ManagedConnectionFactoryImpl.createConnectionFactory(ManagedConnectionFactoryImpl.java:87) at weblogic.connector.common.internal.ConnectionPool.getConnectionFactory(ConnectionPool.java:1724) at weblogic.connector.common.internal.ConnectionFactory.testConnectionProxyViability(ConnectionFactory.java:466) at weblogic.connector.common.internal.ConnectionFactory.createResource(ConnectionFactory.java:207) at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1145) at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1079) at weblogic.common.resourcepool.ResourcePoolImpl.setInitialCapacity(ResourcePoolImpl.java:739) at weblogic.connector.common.internal.ConnectionPoolManager.updateInitialCapacity(ConnectionPoolManager.java:495) at weblogic.connector.common.internal.ConnectionPoolManager.preparePool(ConnectionPoolManager.java:140) at weblogic.connector.deploy.Deployer.preparePool(Deployer.java:618) at weblogic.connector.deploy.Deployer.prepare(Deployer.java:230) at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:248) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3101) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1560) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1208) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1051) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:823) at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDeployer.java:2925) at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(SlaveDeployer.java:967) at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:349) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229) at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361) at weblogic.Server.main(Server.java:32)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    27 more bugmates