java.lang.ClassNotFoundException: sun.misc.GC at java.net.URLClassLoader.findClass(java.base@9-ea/URLClassLoader.java: 384) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419) at java.lang.Class.forName0(java.base@9-ea/Native Method) at java.lang.Class.forName(java.base@9-ea/Class.java:294)

JDK Bug System | Pardeep Sharma | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Download and configure Tomcat 9 to run with JDK 9 ea b124 source: https://tomcat.apache.org/download-90.cgi#9.0.0.M8 Load http://localhost:8080/ page returns, HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp type Exception report message java.lang.ClassNotFoundException: org.apache.jsp.index_jsp description The server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.index_jsp org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:176) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:380) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) root cause java.lang.ClassNotFoundException: org.apache.jsp.index_jsp java.net.URLClassLoader.findClass(java.base@9-ea/URLClassLoader.java:384) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:129) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:60) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:171) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:380) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) note The full stack trace of the root cause is available in the Apache Tomcat/9.0.0.M8 logs. ============== From the log it appears that the ClassLoader in JDK 9 fails to trigger creation of GC Daemon thread during Tomcat start which is expected in non-Sun JVMs. --------------- java.lang.ClassNotFoundException: sun.misc.GC at java.net.URLClassLoader.findClass(java.base@9-ea/URLClassLoader.java: 384) ---------------- For details refer to attached logs. This works fine with 8u91.

    JDK Bug System | 9 months ago | Pardeep Sharma
    java.lang.ClassNotFoundException: sun.misc.GC at java.net.URLClassLoader.findClass(java.base@9-ea/URLClassLoader.java: 384) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419) at java.lang.Class.forName0(java.base@9-ea/Native Method) at java.lang.Class.forName(java.base@9-ea/Class.java:294)
  2. 0

    [Tomcat-users] Tomcat 6.0 + myFaces 1.2 --> ClassNotFoundException - Grokbase

    grokbase.com | 1 year ago
    java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2808) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2834) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1361) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
  3. 0

    Tomcat 6.0 + myFaces 1.2 --> ClassNotFoundException

    apache.org | 1 year ago
    java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2808) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2834) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1361) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      sun.misc.GC at java.net.URLClassLoader.findClass(java.base@9-ea/URLClassLoader.java: 384) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:486) at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:419) at java.lang.Class.forName0(java.base@9-ea/Native Method) at java.lang.Class.forName(java.base@9-ea/Class.java:294)

      at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent()
    2. Glassfish Core
      Catalina.load
      1. org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:217)
      2. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
      3. org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
      4. org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:104)
      5. org.apache.catalina.startup.Catalina.load(Catalina.java:606)
      6. org.apache.catalina.startup.Catalina.load(Catalina.java:629)
      6 frames