java.lang.NoClassDefFoundError

sun.management.ManagementFactory

Samebug tips2

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

The server rejects all jars that already belong to the server runtime (such as tomcat-.jar, servlet.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

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

Solutions on the web2

  • via Terracotta Project Issue Tracker by Li Ma, 1 year ago
    sun.management.ManagementFactory
  • via Terracotta Project Issue Tracker by Li Ma, 1 year ago
    sun.management.ManagementFactory
  • Stack trace

    • java.lang.NoClassDefFoundError: sun.management.ManagementFactory at com.tc.management.L1Info.isVerboseGC(L1Info.java:259) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:600) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:105) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:39) at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:220) at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:77) at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:228) at javax.management.StandardMBean.getAttribute(StandardMBean.java:370) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:678) at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:650) at javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:222) at javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951) at java.security.AccessController.doPrivileged(AccessController.java:284) at javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727) at javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629) at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:266) at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208) at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59) Caused by: java.lang.ClassNotFoundException: sun.management.ManagementFactory at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) at java.net.URLClassLoader.findClass(URLClassLoader.java:383) at org.terracotta.session.L1Loader.findClass(L1Loader.java:25) at java.lang.ClassLoader.loadClass(ClassLoader.java:652) at java.lang.ClassLoader.loadClass(ClassLoader.java:618) ... 21 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

    Unknown user
    Once, 2 months ago
    Unknown user
    Once, 3 months ago
    Unknown user
    Once, 4 months ago
    Once, 6 months ago
    Unknown user
    Once, 6 months ago
    91 more bugmates