Reputation: 163
I have a windows 7 machine and I have tried installing both tomcat 6 and tomcat 7 as a Windows Service (Using the executable). Neither of them will run. I have been researching different solutions for over a week now and have tried nearly everything, but I keep getting this error:
Sep 13, 2012 10:19:46 AM org.apache.catalina.startup.Bootstrap initClassLoaders
SEVERE: Class loader creation threw exception
java.lang.UnsatisfiedLinkError: sun.management.VMManagementImpl.isThreadAllocatedMemoryEnabled()Z
at sun.management.VMManagementImpl.isThreadAllocatedMemoryEnabled(Native Method)
at sun.management.ThreadImpl.<init>(Unknown Source)
at sun.management.ManagementFactory.getThreadMXBean(Unknown Source)
at sun.management.ManagementFactory.createPlatformMBeanServer(Unknown Source)
at java.lang.management.ManagementFactory.getPlatformMBeanServer(Unknown Source)
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:158)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:91)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:227)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:426)
When I try to run it in eclipse. When I try to run it by itself by clicking the start server executable, it starts loading up and about a quarter of the way through it just stops and the loading window goes away with no error message or anything. I am not sure what else to do?
Upvotes: 2
Views: 913
Reputation: 719739
The exception says this:
java.lang.UnsatisfiedLinkError:
sun.management.VMManagementImpl.isThreadAllocatedMemoryEnabled()Z
This is saying that the call to the native method isThreadAllocatedMemoryEnabled()
in the system class VMManagementImpl
failed because the JVM couldn't find the native implementation of the method.
The only explanation I can think of is that the Java installation you are using to run Tomcat is broken.
Upvotes: 1