java.lang.NoClassDefFoundError: org/springframework/core/enums/LabeledEnum

Spring JIRA | Rajesh | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    During runtime, I am getting this error. The application is not using the LabeledEnum or Enum. So there is no trace of issue. Unable to find the root cause. All the POM files have the spring version of 4.2.6. java.lang.NoClassDefFoundError: org/springframework/core/enums/LabeledEnum at org.springframework.web.servlet.tags.form.SelectedValueComparator.exhaustiveCompare(SelectedValueComparator.java:156) at org.springframework.web.servlet.tags.form.SelectedValueComparator.isSelected(SelectedValueComparator.java:103) at org.springframework.web.servlet.tags.form.AbstractCheckedElementTag.isOptionSelected(AbstractCheckedElementTag.java:60) at org.springframework.web.servlet.tags.form.AbstractCheckedElementTag.renderFromValue(AbstractCheckedElementTag.java:50) at org.springframework.web.servlet.tags.form.AbstractCheckedElementTag.renderFromValue(AbstractCheckedElementTag.java:39) at org.springframework.web.servlet.tags.form.RadioButtonTag.writeTagDetails(RadioButtonTag.java:41) at org.springframework.web.servlet.tags.form.AbstractSingleCheckedElementTag.writeTagContent(AbstractSingleCheckedElementTag.java:86) at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:102) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79) at jsp_servlet.__piecesearch._jsp__tag6(__piecesearch.java:554) at jsp_servlet.__piecesearch._jspService(__piecesearch.java:349) at weblogic.servlet.jsp.JspBase.service(JspBase.java:35) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    Spring JIRA | 5 months ago | Rajesh
    java.lang.NoClassDefFoundError: org/springframework/core/enums/LabeledEnum
  2. 0

    HTTP Status 500 - javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/springframework/web/util/ExpressionEvaluationUtils

    Stack Overflow | 10 months ago | jitendra
    java.lang.NoClassDefFoundError: org/springframework/web/util/ExpressionEvaluationUtils at org.springframework.web.servlet.tags.form.AbstractFormTag. evaluate(AbstractFormTag.java:50) at org.springframework.web.servlet.tags.form.FormTag.resolveModel Attribute(FormTag.java:378)

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/springframework/core/enums/LabeledEnum

      at org.springframework.web.servlet.tags.form.SelectedValueComparator.exhaustiveCompare()
    2. Spring MVC
      RequestContextAwareTag.doStartTag
      1. org.springframework.web.servlet.tags.form.SelectedValueComparator.exhaustiveCompare(SelectedValueComparator.java:156)
      2. org.springframework.web.servlet.tags.form.SelectedValueComparator.isSelected(SelectedValueComparator.java:103)
      3. org.springframework.web.servlet.tags.form.AbstractCheckedElementTag.isOptionSelected(AbstractCheckedElementTag.java:60)
      4. org.springframework.web.servlet.tags.form.AbstractCheckedElementTag.renderFromValue(AbstractCheckedElementTag.java:50)
      5. org.springframework.web.servlet.tags.form.AbstractCheckedElementTag.renderFromValue(AbstractCheckedElementTag.java:39)
      6. org.springframework.web.servlet.tags.form.RadioButtonTag.writeTagDetails(RadioButtonTag.java:41)
      7. org.springframework.web.servlet.tags.form.AbstractSingleCheckedElementTag.writeTagContent(AbstractSingleCheckedElementTag.java:86)
      8. org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:102)
      9. org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79)
      9 frames
    3. jsp_servlet
      __piecesearch._jspService
      1. jsp_servlet.__piecesearch._jsp__tag6(__piecesearch.java:554)
      2. jsp_servlet.__piecesearch._jspService(__piecesearch.java:349)
      2 frames
    4. weblogic.servlet.jsp
      JspBase.service
      1. weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
      1 frame
    5. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      2. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      3. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      4. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
      5. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      6. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      6 frames