This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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: 14480
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Cannot Run Apache-tomcat 6 on Centos 5.4
 
Similar Threads
apache-ant installation problem.
please help running programs created in jsdk 1.4 into jsdk 1.6
Web Service with build.xml
Problem: Could not find the main class: weblogic.appc. Program will exit.
Getting Exception while running a class file.