java.lang.NoClassDefFoundError: javax/servlet/Filter

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

,
Expert tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

Solutions on the web

via java-samples.com by Unknown author, 1 year ago
via Google Groups by Alexandre Walter Pretyman, 10 months ago
via Google Groups by Tobias "butzel" Wensing, 3 months ago
javax/media/opengl/GL EventListener
via Stack Overflow by William
, 2 years ago
javax/media/opengl/GL EventListener
via Coderanch by kranthi chamarthi, 11 months ago
javax/xml/rpc/encodin g/TypeMappingRegistry
java.lang.NoClassDefFoundError: javax/servlet/Filter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at com.wideplay.warp.persist.PersistenceServiceBuilderImpl$2.publishWorkManager(PersistenceServiceBuilderImpl.java:59)
at com.wideplay.warp.hibernate.HibernatePersistenceStrategy$HibernatePersistenceModule.visit(HibernatePersistenceStrategy.java:108)
at com.wideplay.warp.persist.PersistenceServiceBuilderImpl.buildModule(PersistenceServiceBuilderImpl.java:57)
at ngbs.server.dao.hibernate.HibernateDaoModule.configure(HibernateDaoModule.java:97)
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:127)
at com.google.inject.internal.InjectorBuilder.build(InjectorBuilder.java:103)
at com.google.inject.Guice.createInjector(Guice.java:93)
at com.google.inject.Guice.createInjector(Guice.java:70)
at ngbs.server.Main.main(Main.java:111)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 days ago
Samebug visitor profile picture
Unknown user
Once, 5 days ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
5 times, 2 weeks ago
1219 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.