java.lang.NoClassDefFoundError: org/springframework/beans/factory/DisposableBean

Spring JIRA | Andreas Senft | 1 decade ago
  1. 0

    After upgrading to Spring 1.0RC2 I encountered a strange phenomenon, when redeploying Session-Beans extending AbstractStatelessSessionBean. For the stacktrace see below. The problem is easily removed by loading the offending class explicitly at an earlier point in time. It seems that WebLogic has problems on loading new classes from the EJB-Jar classpath while unloading. I do not think it is a Spring problem, but maybe it might be possible to provide a "patch" (e.g. loading DisposableBean explicitly on startup). Regards, Andreas java.lang.NoClassDefFoundError: org/springframework/beans/factory/DisposableBean at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.destroyBean(AbstractAutowireCapableBeanFactory.java:664) at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingleton(AbstractBeanFactory.java:341) at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingletons(AbstractBeanFactory.java:328) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:371) at org.springframework.context.access.ContextBeanFactoryReference.release(ContextBeanFactoryReference.java:28) at org.springframework.ejb.support.AbstractEnterpriseBean.unloadBeanFactory(AbstractEnterpriseBean.java:104) at org.springframework.ejb.support.AbstractEnterpriseBean.ejbRemove(AbstractEnterpriseBean.java:126)

    Spring JIRA | 1 decade ago | Andreas Senft
    java.lang.NoClassDefFoundError: org/springframework/beans/factory/DisposableBean
  2. 0

    After upgrading to Spring 1.0RC2 I encountered a strange phenomenon, when redeploying Session-Beans extending AbstractStatelessSessionBean. For the stacktrace see below. The problem is easily removed by loading the offending class explicitly at an earlier point in time. It seems that WebLogic has problems on loading new classes from the EJB-Jar classpath while unloading. I do not think it is a Spring problem, but maybe it might be possible to provide a "patch" (e.g. loading DisposableBean explicitly on startup). Regards, Andreas java.lang.NoClassDefFoundError: org/springframework/beans/factory/DisposableBean at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.destroyBean(AbstractAutowireCapableBeanFactory.java:664) at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingleton(AbstractBeanFactory.java:341) at org.springframework.beans.factory.support.AbstractBeanFactory.destroySingletons(AbstractBeanFactory.java:328) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:371) at org.springframework.context.access.ContextBeanFactoryReference.release(ContextBeanFactoryReference.java:28) at org.springframework.ejb.support.AbstractEnterpriseBean.unloadBeanFactory(AbstractEnterpriseBean.java:104) at org.springframework.ejb.support.AbstractEnterpriseBean.ejbRemove(AbstractEnterpriseBean.java:126)

    Spring JIRA | 1 decade ago | Andreas Senft
    java.lang.NoClassDefFoundError: org/springframework/beans/factory/DisposableBean
  3. 0

    M2 release - countries/clinic fail on WL 8.1

    springframework | 1 decade ago | mountjoyj
    java.lang.NoClassDefFoundError: org/springframework/beans/factory/DisposableBean
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    krams::: Spring MVC 3.1, jqGrid, and Spring Data JPA Integration Guide (Part 1)

    blogspot.com | 2 months ago
    java.lang.NoClassDefFoundError: org/springframework/beans/factory/NoUniqueBeanDefinitionException
  6. 0

    Maven - Java.lang.NoClassDefFoundError: org/springframework/beans/factory/Aware

    howtobuildsoftware.com | 8 months ago
    java.lang.NoClassDefFoundError: org/springframework/beans/factory/Aware

    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/springframework/beans/factory/DisposableBean

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.destroyBean()
    2. Spring Beans
      AbstractBeanFactory.destroySingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.destroyBean(AbstractAutowireCapableBeanFactory.java:664)
      2. org.springframework.beans.factory.support.AbstractBeanFactory.destroySingleton(AbstractBeanFactory.java:341)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.destroySingletons(AbstractBeanFactory.java:328)
      3 frames
    3. Spring Context
      AbstractEnterpriseBean.ejbRemove
      1. org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:371)
      2. org.springframework.context.access.ContextBeanFactoryReference.release(ContextBeanFactoryReference.java:28)
      3. org.springframework.ejb.support.AbstractEnterpriseBean.unloadBeanFactory(AbstractEnterpriseBean.java:104)
      4. org.springframework.ejb.support.AbstractEnterpriseBean.ejbRemove(AbstractEnterpriseBean.java:126)
      4 frames