java.lang.NoClassDefFoundError

com/google/gerrit/extensions/config/CapabilityDefinition


Samebug tips9

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web9168

Solution icon of googlegroups
via Google Groups by Jānis Šteinbergs, 7 months ago
com/google/gerrit/extensions/config/CapabilityDefinition

Solution icon of googlegroups
via Google Groups by Lumír Jasiok, 1 year ago
com/google/gerrit/extensions/config/CapabilityDefinition

Solution icon of googlegroups
via Google Groups by Sharath Gupta, 1 year ago
com/google/gerrit/extensions/api/projects/ProjectConfigEntryType

Solution icon of googlegroups
via Google Groups by Lorenzo Bettini, 1 year ago
com/google/gerrit/extensions/webui/TopMenu

Solution icon of googlegroups
via Google Groups by Jungho Ahn, 10 months ago
com/google/gerrit/extensions/client/MenuItem

Solution icon of googlegroups
com/google/gerrit/extensions/client/MenuItem

Solution icon of github
com/google/gerrit/extensions/events/GitReferenceUpdatedListener$Update

Solution icon of googlegroups
via Google Groups by Alexander Gerasimenko, 1 year ago
com/google/gerrit/extensions/common/ProjectInfo

Solution icon of googlegroups
via Google Groups by Uwe Dauernheim, 1 year ago
com/google/gerrit/httpd/WebSessionManagerFactory

Solution icon of googlegroups
via Google Groups by Matthew Jordan, 1 year ago
com/google/gerrit/server/events/Event

Stack trace

  • java.lang.NoClassDefFoundError: com/google/gerrit/extensions/config/CapabilityDefinition at com.googlesource.gerrit.plugins.deleteproject.Module.configure(Module.java:39) at com.google.inject.AbstractModule.configure(AbstractModule.java:59) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223) at com.google.inject.spi.Elements.getElements(Elements.java:101) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103) at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:217) at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:224) at com.google.gerrit.server.plugins.Plugin.startPlugin(Plugin.java:204) at com.google.gerrit.server.plugins.Plugin.start(Plugin.java:187) at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:367) at com.google.gerrit.server.plugins.PluginLoader.rescan(PluginLoader.java:343) at com.google.gerrit.server.plugins.PluginLoader.start(PluginLoader.java:256) at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:74) at com.google.gerrit.pgm.Daemon.run(Daemon.java:190) at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:168) at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:92) at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:50) at Main.main(Main.java:25) Caused by: java.lang.ClassNotFoundException: com.google.gerrit.extensions.config.CapabilityDefinition at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 24 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2438 more bugmates