java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator

Stack Overflow | Anubhav | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator

    Stack Overflow | 7 months ago | Anubhav
    java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator
  2. 0
    samebug tip
    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.
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  6. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.
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

    javax.servlet.jsp.tagext.TagLibraryValidator

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    7. java.lang.ClassLoader.defineClass1(Native Method)
    8. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    9. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    10. java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
    11. java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    12. java.net.URLClassLoader$1.run(URLClassLoader.java:367)
    13. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    14. java.security.AccessController.doPrivileged(Native Method)
    15. java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    16. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    17. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    18. java.lang.ClassLoader.defineClass1(Native Method)
    19. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    20. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    21. java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
    22. java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    23. java.net.URLClassLoader$1.run(URLClassLoader.java:367)
    24. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    25. java.security.AccessController.doPrivileged(Native Method)
    26. java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    27. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    28. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    28 frames
  3. Glassfish Core
    WebappClassLoaderBase.loadClass
    1. org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1251)
    2. org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)
    2 frames
  4. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:347)
    2. org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:194)
    3. org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:421)
    4. org.apache.jasper.compiler.Parser.parseDirective(Parser.java:479)
    5. org.apache.jasper.compiler.Parser.parseElements(Parser.java:1435)
    6. org.apache.jasper.compiler.Parser.parse(Parser.java:139)
    7. org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
    8. org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
    9. org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
    10. org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
    11. org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
    12. org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
    13. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
    14. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363)
    15. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
    16. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
    16 frames
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    1 frame
  6. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    2 frames
  7. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  8. Glassfish Core
    ApplicationDispatcher.doForward
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:720)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
    5 frames