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 | 5 months ago
  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 | 5 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 | 11 months 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 | 11 months 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

  5. 0

    JDK9-b119 client nightly + Ubuntu 14.04 Linux Logs: TestConstructorFinder.java: java.lang.ClassNotFoundException: javax.activation.ActivationDataFlavor at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:366) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:184) 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 Task.getClasses(Task.java:144) at TestConstructorFinder.main(TestConstructorFinder.java:43) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:804) TestMethodFinder.java: java.lang.ClassNotFoundException: javax.activation.ActivationDataFlavor at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:366) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:184) 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 Task.getClasses(Task.java:144) at TestMethodFinder.main(TestMethodFinder.java:43) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:804) probably the tests should be removed

    JDK Bug System | 7 months ago | Alexander Stepanov
    java.lang.ClassNotFoundException: javax.activation.ActivationDataFlavor at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:366) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:184) 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)
  6. 0

    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

      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