org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter] for bean with name 'mbeanExporter' defined in null; nested exception is java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter not found from bundle [eu.educator.orm]

SpringSource Issue Tracker | Vincent Kok | 7 years ago
  1. 0

    We export an MBean like this: <context:mbean-export /> <bean id="statisticsBean" class="org.hibernate.jmx.StatisticsService" p:statisticsEnabled="true" p:sessionFactory-ref="sessionFactory" /> This will cause on some environments the following exception at runtime: 2009-09-29 10:08:48,341 [server-dm-5] ERROR org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext - Post refresh error org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter] for bean with name 'mbeanExporter' defined in null; nested exception is java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter not found from bundle [eu.educator.orm] at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:288) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145) at com.springsource.server.kernel.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter not found from bundle [eu.educator.orm] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.springframework.util.ClassUtils.forName(ClassUtils.java:211) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138) ... 11 more Caused by: com.springsource.server.osgi.framework.ServerClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter in ServerBundleClassLoader: [bundle=eu.educator.orm_1.0.0] at com.springsource.server.osgi.framework.equinox.ServerBundleClassLoader.loadClass(ServerBundleClassLoader.java:136) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274) at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99) ... 16 more Caused by: java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at com.springsource.server.osgi.framework.equinox.ServerBundleClassLoader.loadClass(ServerBundleClassLoader.java:134) ... 21 more

    SpringSource Issue Tracker | 7 years ago | Vincent Kok
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter] for bean with name 'mbeanExporter' defined in null; nested exception is java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter not found from bundle [eu.educator.orm]
  2. 0

    We export an MBean like this: <context:mbean-export /> <bean id="statisticsBean" class="org.hibernate.jmx.StatisticsService" p:statisticsEnabled="true" p:sessionFactory-ref="sessionFactory" /> This will cause on some environments the following exception at runtime: 2009-09-29 10:08:48,341 [server-dm-5] ERROR org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext - Post refresh error org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter] for bean with name 'mbeanExporter' defined in null; nested exception is java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter not found from bundle [eu.educator.orm] at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:288) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145) at com.springsource.server.kernel.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter not found from bundle [eu.educator.orm] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.springframework.util.ClassUtils.forName(ClassUtils.java:211) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138) ... 11 more Caused by: com.springsource.server.osgi.framework.ServerClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter in ServerBundleClassLoader: [bundle=eu.educator.orm_1.0.0] at com.springsource.server.osgi.framework.equinox.ServerBundleClassLoader.loadClass(ServerBundleClassLoader.java:136) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274) at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99) ... 16 more Caused by: java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at com.springsource.server.osgi.framework.equinox.ServerBundleClassLoader.loadClass(ServerBundleClassLoader.java:134) ... 21 more

    SpringSource Issue Tracker | 7 years ago | Vincent Kok
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter] for bean with name 'mbeanExporter' defined in null; nested exception is java.lang.ClassNotFoundException: com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter not found from bundle [eu.educator.orm]
  3. 0

    Unable to Start 32 bit RCP Application in 64 bit Windows Machine

    Stack Overflow | 2 years ago | Akash Wadhwa
    java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eclipse ÔÚжÔØÁËQTPµÄjava-add-inͻȻÆô¶¯²»ÁËÁË£¿_°Ù¶ÈÖªµÀ

    baidu.com | 1 year ago
    java.lang.NoClassDefFoundError: com/mercury/javashared/agentloader/AgentBootstrap
  6. 0

    Exception java.lang.NoClassDefFoundError:sun.misc.Unsafe

    Google Groups | 5 years ago | Manoj
    java.lang.NoClassDefFoundError: sun.misc.Unsafe

    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.ClassNotFoundException

      com.springsource.server.kernel.dm.ServerAnnotationMBeanExporter

      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal()
    2. Eclipse OSGi
      DefaultClassLoader.loadClass
      1. org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
      2. org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
      3. org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
      4. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
      4 frames
    3. com.springsource.server
      ServerBundleClassLoader.loadClass
      1. com.springsource.server.osgi.framework.equinox.ServerBundleClassLoader.loadClass(ServerBundleClassLoader.java:134)
      1 frame
    4. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      1 frame
    5. Eclipse OSGi
      AbstractBundle.loadClass
      1. org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
      2. org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
      3. org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274)
      3 frames
    6. Spring OSGi Core
      BundleDelegatingClassLoader.loadClass
      1. org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
      2. org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
      2 frames
    7. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      1 frame
    8. Spring Core
      ClassUtils.forName
      1. org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
      1 frame
    9. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
      2. org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
      5. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)
      6. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)
      6 frames
    10. Spring Context
      AbstractApplicationContext.finishBeanFactoryInitialization
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
      1 frame
    11. Spring OSGi Core
      AbstractDelegatedExecutionApplicationContext.completeRefresh
      1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:288)
      1 frame
    12. org.springframework.osgi
      DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run
      1. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145)
      1 frame
    13. com.springsource.server
      ContextPropagatingTaskExecutor$2.run
      1. com.springsource.server.kernel.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82)
      1 frame
    14. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames