Hi Fabio, There seems to be an issue with update 40 Early Access release of jre/jdk8(1.8.0_40). Compared with update 20 of jre/jdk8 release, you will see following lines of code has been added to getPlatfromMBeanServer:
*for (final PlatformManagedObject o :* * ExtendedPlatformComponent.getMXBeans()) {* * if (!platformMBeanServer.isRegistered(o.getObjectName())) {* * addMXBean(platformMBeanServer, o);* * }* But if you look into the accompanied rt.jar of the jre, this newly introduced class(*ExtendedPlatformComponent*) can NO-WHERE be found. This issue, seems to be there across all the JAVA_VERSION="1.8.0_40" EA release, irrespective of platform. Your remedy is to move back to a stable release. Latest stable release seems to be Java SE 8u25 <http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html> . Regards, Ameer Mawia On Sun, Nov 23, 2014 at 4:09 AM, Fabio Ricci <fabio.ri...@semweb.ch> wrote: > Dear tomcat community > > Maybe someone did have this before (and possibly solved it) > > On a mac book pro/JOSEMITE I installed Java 8 "1.8.0_40-ea" with JDK. > My $JAVA_HOME is > /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home > > Then I downloaded a tomcat 8 core from > http://tomcat.apache.org/download-80.cgi > When I start this tomcat 8 I get the following Java exceptio - see below. > > With this Java 8 also my older tomcat 7 throws the same exception. > The official oracle java test page ( > https://www.java.com/en/download/installed.jsp) says, I have already java > uptodate. > > The exception: > It seems that "sun/management/ExtendedPlatformComponent" be not part of > tomcat 8 nor java 8 ... > > Does anyone have some hints for me? I cannot figure our what is wrong ... > Thank you very much in advance! > > Kind regards > Fabio > > > PS: The exception on start (/bin/startup.sh): > 22-Nov-2014 18:43:02.218 SEVERE [main] > org.apache.tomcat.util.digester.Digester.startElement Begin event threw > error > * java.lang.NoClassDefFoundError: sun/management/ExtendedPlatformComponent* > at > java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:494) > at > org.apache.tomcat.util.modeler.Registry.getMBeanServer(Registry.java:443) > at > org.apache.catalina.mbeans.MBeanUtils.createServer(MBeanUtils.java:580) > at > org.apache.catalina.mbeans.MBeanUtils.<clinit>(MBeanUtils.java:77) > at > org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.<clinit>(GlobalResourcesLifecycleListener.java:66) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at java.lang.Class.newInstance(Class.java:442) > at > org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:117) > at > org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1184) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) > at > com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649) > at > org.apache.tomcat.util.digester.Digester.parse(Digester.java:1457) > at org.apache.catalina.startup.Catalina.load(Catalina.java:551) > at org.apache.catalina.startup.Catalina.load(Catalina.java:599) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484) > > > > -- > Kind regards / Meilleures salutations / Freundliche Grüsse > *Fabio Ricci* semweb > > Semantic Web Technologies · Records Management > Software systems · ICT coaching · ICT Projects leading > > *www.semweb.ch* <http://semweb.ch> > > > Weinmanngasse 26 > CH-8700 Küsnacht ZH (Switzerland) > > > *Tel.* > > +41 (076) 5281961 > +39 (389) 0681334 > > *Skype:* > > *semweb-llc* <http://myskype.info/semweb-llc> > > *Confidentiality Warning*: This message and any attachments are intended > only for the use of the intended recipients, are confidential and maybe > privileged. If you are not the intended recipient, you are hereby notified > that any review, retransmission, conversion to hard copy, copying, > circulation or other use of this message and any attachments is strictly > prohibited. If you are not the intended recipient, please notify the sender > immediately by return email, and delete this message and any attachments > from your system. Thank you. >