java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback cannot be found by org.springframework.web.servlet_3.1.4.RELEASE

Spring JIRA | Aritra Chatterjee | 3 years ago
  1. 0

    The following tools are being used: SpringMVC, Gemini Web, Equinox container. On using a JavaConfig to create a Web application, the following stack is seen: java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback cannot be found by org.springframework.web.servlet_3.1.4.RELEASE at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2482) at java.lang.Class.getDeclaredMethod(Class.java:1982) at net.sf.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:627) at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:615) at net.sf.cglib.proxy.Enhancer.registerStaticCallbacks(Enhancer.java:591) at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:149) at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:106) at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:361) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:246) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:626) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454) at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133) at javax.servlet.GenericServlet.init(GenericServlet.java:244) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125) at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:95) at org.eclipse.gemini.web.extender.WebContainerBundleCustomizer.addingBundle(WebContainerBundleCustomizer.java:45) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:467) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1568) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1504) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1499) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:391) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) I modified the Spring Web Servlet MANIFEST to include: net.sf.cglib.core, net.sf.cglib.proxy, net.sf.cglib.reflect The application gets deployed successfully.

    Spring JIRA | 3 years ago | Aritra Chatterjee
    java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback cannot be found by org.springframework.web.servlet_3.1.4.RELEASE
  2. 0

    The following tools are being used: SpringMVC, Gemini Web, Equinox container. On using a JavaConfig to create a Web application, the following stack is seen: java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback cannot be found by org.springframework.web.servlet_3.1.4.RELEASE at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2482) at java.lang.Class.getDeclaredMethod(Class.java:1982) at net.sf.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:627) at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:615) at net.sf.cglib.proxy.Enhancer.registerStaticCallbacks(Enhancer.java:591) at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:149) at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:106) at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:361) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:246) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:626) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454) at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133) at javax.servlet.GenericServlet.init(GenericServlet.java:244) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125) at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:95) at org.eclipse.gemini.web.extender.WebContainerBundleCustomizer.addingBundle(WebContainerBundleCustomizer.java:45) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:467) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1568) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1504) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1499) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:391) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) I modified the Spring Web Servlet MANIFEST to include: net.sf.cglib.core, net.sf.cglib.proxy, net.sf.cglib.reflect The application gets deployed successfully.

    Spring JIRA | 3 years ago | Aritra Chatterjee
    java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback cannot be found by org.springframework.web.servlet_3.1.4.RELEASE
  3. 0

    XSSF/xlsx file from custom java mediator in wso2 esb

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.sE130CAA0A01A7CDE5A2B4FEB8B311707.TypeSystemHolder. Make sure the generated binary files are on the classpath.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eclipse Community Forums: EMF ยป [XCORE]

    eclipse.org | 1 year ago
    org.eclipse.core.runtime.CoreException: Failed to create injector for org.eclipse.emf.ecore.xcore.Xcore ExtensionFactory: org.eclipse.emf.ecore.xcore.ui.XcoreExecutableExtensionFactory
  6. 0

    Eclispe: how to solve this eclipse launch error? - EclPeople.com

    eclpeople.com | 1 year ago
    java.lang.NoClassDefFoundError: com/mercury/javashared/agentloader/AgentBootstrap

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

      net.sf.cglib.proxy.Callback cannot be found by org.springframework.web.servlet_3.1.4.RELEASE

      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal()
    2. Eclipse OSGi
      BundleLoader.findClass
      1. org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
      2. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
      3. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
      3 frames
    3. Eclipse OSGi
      DefaultClassLoader.loadClass
      1. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      1 frame
    4. Java RT
      Class.getDeclaredMethod
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      2. java.lang.Class.getDeclaredMethods0(Native Method)
      3. java.lang.Class.privateGetDeclaredMethods(Class.java:2482)
      4. java.lang.Class.getDeclaredMethod(Class.java:1982)
      4 frames
    5. IDEA
      Enhancer.registerStaticCallbacks
      1. net.sf.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:627)
      2. net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:615)
      3. net.sf.cglib.proxy.Enhancer.registerStaticCallbacks(Enhancer.java:591)
      3 frames
    6. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:149)
      2. org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:106)
      3. org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:361)
      4. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:246)
      5. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
      6. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:626)
      7. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
      7 frames
    7. Spring MVC
      HttpServletBean.init
      1. org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
      2. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
      3. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
      4. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
      5. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
      6. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
      6 frames
    8. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:244)
      1 frame
    9. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
      2. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
      3. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
      4. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
      5. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
      6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      7. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
      8. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
      9. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
      9 frames
    10. org.eclipse.gemini
      WebContainerBundleCustomizer.addingBundle
      1. org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125)
      2. org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:95)
      3. org.eclipse.gemini.web.extender.WebContainerBundleCustomizer.addingBundle(WebContainerBundleCustomizer.java:45)
      3 frames
    11. OSGi
      BundleTracker$Tracked.bundleChanged
      1. org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:467)
      2. org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)
      3. org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
      4. org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
      5. org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)
      5 frames
    12. Eclipse OSGi
      BundleContextImpl.dispatchEvent
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
      1 frame
    13. Eclipse OSGi
      ListenerQueue.dispatchEventSynchronous
      1. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
      2. org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
      2 frames
    14. Eclipse OSGi
      StartLevelManager.dispatchEvent
      1. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1568)
      2. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1504)
      3. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1499)
      4. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:391)
      5. org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
      6. org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
      7. org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
      8. org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
      9. org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
      10. org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
      11. org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
      12. org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
      12 frames
    15. Eclipse OSGi
      EventManager$EventThread.run
      1. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
      2. org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      2 frames