We help IT Professionals succeed at work.

New Tomcat 7.0.25 install doesn't start

809 Views
Last Modified: 2012-06-21
I just downloaded the apache-tomcat-7.0.25-windows-x64.zip file from apache and unzipped it. went to the bin directory to start it up just to validate it works, and I get this error:

C:\myTest\server\tomcat 7.0.25\bin>startup
Using CATALINA_BASE:   "C:\myTest\server\tomcat 7.0.25"
Using CATALINA_HOME:   "C:\myTest\server\tomcat 7.0.25"
Using CATALINA_TMPDIR: "C:\myTest\server\tomcat 7.0.25\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.6.0_27"
Using CLASSPATH:       "C:\myTest\server\tomcat 7.0.25\bin\bootstrap.jar;C:\myTest\server\tomcat 7.0.25\bin\tomcat-juli.jar"
Exception in thread "main" java.lang.NoClassDefFoundError: Xms1024m
Caused by: java.lang.ClassNotFoundException: Xms1024m
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Xms1024m.  Program will exit.

Note: to see the error as the window just closes right down I edited the startup.bat
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS%

What in the world is it looking for? Is this a bad build from Apache?
Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Somehow you have messed up the startup options. The Xms1024m means "start tomcat with a minimum of 1024MB of memory" but it should be -Xms1024m. So I guess somewhere you removed the dash from the memory settings. Look up where the memory settings are defined (probably in the CMD_LINE_ARGS or EXECUTABLE) and add a - in front of the Xms1024m. The problem should go away.

Author

Commented:
I wish I had made a change. As mentioned, I unzipped the files and from the bin directory clicked on start. When the window closed, I made the one change from start to run n order to keep the window open and be able to see the error.
I have searched the files for 1024 and see nothing, thus the headscratch.
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
It must be my machine. I have to go back to 7.0.11 to get it to work.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.