java.lang.NoClassDefFoundError: org/springframework/roo/addon/web/mvc/controller/detail s/WebMetadataUtils

Spring JIRA | Rob Murray | 6 years ago
  1. 0

    A change was made to Roo 1.1.3. Spring Roo ROO-2303 Refactor WebMetadataUtils to a service "This improvement would just change the WebMetadataUtils to WebMetadataService, removing all the static methods and having the previously passed services injected." This results in an exception when "flex remoting" is called, because revision 528 of "org.springframework.flex.roo.addon.FlexScaffoldMetadataProvider.java" tries to import this removed WebMetadataUtils class. roo> flex remoting scaffold --name PlayerService --entity com.myproject.Player Exception in thread "Spring Roo JLine Shell" java.lang.NoClassDefFoundError: org/springframework/roo/addon/web/mvc/controller/detail s/WebMetadataUtils at org.springframework.flex.roo.addon.FlexScaffoldMetadataProvider.getMetadata(FlexScaffoldMetadataProvider.java:92) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:269) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:147) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:235) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyReg istry.java:214) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:131) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:189) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrate gy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:182) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:373) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:134) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.springframework.roo.addon.web.mvc.controller.details.WebMetadataUtils not found by org.springframework.roo.addon.web.mvc.controller [33] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645) at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99) at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1390) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:722) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 17 more org/springframework/roo/addon/web/mvc/controller/details/WebMetadataUtils

    Spring JIRA | 6 years ago | Rob Murray
    java.lang.NoClassDefFoundError: org/springframework/roo/addon/web/mvc/controller/detail s/WebMetadataUtils
  2. 0

    A change was made to Roo 1.1.3. Spring Roo ROO-2303 Refactor WebMetadataUtils to a service "This improvement would just change the WebMetadataUtils to WebMetadataService, removing all the static methods and having the previously passed services injected." This results in an exception when "flex remoting" is called, because revision 528 of "org.springframework.flex.roo.addon.FlexScaffoldMetadataProvider.java" tries to import this removed WebMetadataUtils class. roo> flex remoting scaffold --name PlayerService --entity com.myproject.Player Exception in thread "Spring Roo JLine Shell" java.lang.NoClassDefFoundError: org/springframework/roo/addon/web/mvc/controller/detail s/WebMetadataUtils at org.springframework.flex.roo.addon.FlexScaffoldMetadataProvider.getMetadata(FlexScaffoldMetadataProvider.java:92) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:269) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:147) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:235) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyReg istry.java:214) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:131) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:189) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrate gy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:182) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:373) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:134) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.springframework.roo.addon.web.mvc.controller.details.WebMetadataUtils not found by org.springframework.roo.addon.web.mvc.controller [33] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645) at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99) at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1390) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:722) at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 17 more org/springframework/roo/addon/web/mvc/controller/details/WebMetadataUtils

    Spring JIRA | 6 years ago | Rob Murray
    java.lang.NoClassDefFoundError: org/springframework/roo/addon/web/mvc/controller/detail s/WebMetadataUtils
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    NoClassDefFoundError in Osgi w/ Felix, ant

    Stack Overflow | 3 years ago | Dima O
    java.lang.ClassNotFoundException: org.jitsi.service.configuration.ConfigurationService not found by [12515]
  5. 0

    getting this error: {noformat} [INFO] [talledLocalContainer] Exception in thread "Spring executor 8" org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.stash.upm.UpmPermissionService] for bean with name 'upmPermissionService' defined in URL [bundle://48.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.stash.upm.UpmPermissionService not found from bundle [Atlassian Stash Implementation of UPM SPI (com.atlassian.stash.upm-spi-impl)] [INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144) [INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524) [INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177) [INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758) [INFO] [talledLocalContainer] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422) [INFO] [talledLocalContainer] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) [INFO] [talledLocalContainer] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) [INFO] [talledLocalContainer] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) [INFO] [talledLocalContainer] at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) [INFO] [talledLocalContainer] at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) [INFO] [talledLocalContainer] at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132) [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:680) [INFO] [talledLocalContainer] Caused by: java.lang.NoClassDefFoundError: com.atlassian.stash.upm.UpmPermissionService not found from bundle [Atlassian Stash Implementation of UPM SPI (com.atlassian.stash.upm-spi-impl)] [INFO] [talledLocalContainer] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112) [INFO] [talledLocalContainer] at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156) [INFO] [talledLocalContainer] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [INFO] [talledLocalContainer] at org.springframework.util.ClassUtils.forName(ClassUtils.java:211) [INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385) [INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138) [INFO] [talledLocalContainer] ... 13 more [INFO] [talledLocalContainer] Caused by: java.lang.NoClassDefFoundError: com/atlassian/upm/spi/PermissionService [INFO] [talledLocalContainer] at java.lang.ClassLoader.defineClass1(Native Method) [INFO] [talledLocalContainer] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [INFO] [talledLocalContainer] at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1829) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690) [INFO] [talledLocalContainer] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:634) [INFO] [talledLocalContainer] at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1594) [INFO] [talledLocalContainer] at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887) [INFO] [talledLocalContainer] at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99) [INFO] [talledLocalContainer] ... 18 more [INFO] [talledLocalContainer] Caused by: java.lang.ClassNotFoundException: com.atlassian.upm.spi.PermissionService [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690) [INFO] [talledLocalContainer] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:634) [INFO] [talledLocalContainer] at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1345) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:711) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73) [INFO] [talledLocalContainer] at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690) [INFO] [talledLocalContainer] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [INFO] [talledLocalContainer] ... 30 more {noformat}

    Ecosystem JIRA | 4 years ago | Ryan Talusan
    org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.stash.upm.UpmPermissionService] for bean with name 'upmPermissionService' defined in URL [bundle://48.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com.atlassian.stash.upm.UpmPermissionService not found from bundle [Atlassian Stash Implementation of UPM SPI (com.atlassian.stash.upm-spi-impl)]

  1. poroszd 1 times, last 1 month ago
3 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

    org.springframework.roo.addon.web.mvc.controller.details.WebMetadataUtils not found by org.springframework.roo.addon.web.mvc.controller [33]

    at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation()
  2. Apache Felix Framework
    ModuleImpl$ModuleClassLoader.loadClass
    1. org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
    2. org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
    3. org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
    3 frames
  3. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(Unknown Source)
    1 frame
  4. Apache Felix Framework
    ModuleImpl$ModuleClassLoader.loadClass
    1. org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
    2. org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99)
    3. org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1390)
    4. org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:722)
    5. org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
    6. org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
    6 frames
  5. Java RT
    ClassLoader.loadClassInternal
    1. java.lang.ClassLoader.loadClass(Unknown Source)
    2. java.lang.ClassLoader.loadClassInternal(Unknown Source)
    2 frames
  6. org.springframework.flex
    FlexScaffoldMetadataProvider.getMetadata
    1. org.springframework.flex.roo.addon.FlexScaffoldMetadataProvider.getMetadata(FlexScaffoldMetadataProvider.java:92)
    1 frame
  7. org.springframework.roo
    JLineShell.run
    1. org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:269)
    2. org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148)
    3. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82)
    4. org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:147)
    5. org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:235)
    6. org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:214)
    7. org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:131)
    8. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330)
    9. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213)
    10. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:189)
    11. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
    12. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
    13. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:182)
    14. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:373)
    15. org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:134)
    15 frames
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame