The moose likes Tomcat and the fly likes Cannot Run Apache-tomcat 6 on Centos 5.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cannot Run Apache-tomcat 6 on Centos 5.4" Watch "Cannot Run Apache-tomcat 6 on Centos 5.4" New topic
Author

Cannot Run Apache-tomcat 6 on Centos 5.4

Ahmad 'Izzuddin
Greenhorn

Joined: Dec 29, 2010
Posts: 1
Hello,

Please help me, i dont know what to do..this is what i get from /logs/catalina.out

Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.

Please help me.

Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17148
    
  27

My Beta test server is using exactly that setup and has been for some time with no problems.

My suspicion is that you may not have installed the Sun JDK. Don't attempt to run Tomcat using the vendor-supplied java implementation and don't set JAVA_HOME to a JRE. It must point to a JDK installation.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot Run Apache-tomcat 6 on Centos 5.4
 
It's not a secret anymore!