Tag Archives: Build a station

Tomcat9 Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

First I login is tomcat website, select the source package download, wget HTTP:// http://apache.fayea.com/tomcat/tomcat-9/v9.0.0.M26/src/apache-tomcat-9.0.0.M26-src.tar.gz
The tar xf – apache tomcat – 9.0.0. M26 – SRC. Tar. Gz
Mv apache tomcat – 9.0.0. M26 – SRC/MNT/tomcat
cd /mnt/tomcat/bin
Perform/startup. Sh
The results show that the startup is normal
Using CATALINA_BASE:/MNT /tomcat
Using CATALINA_HOME:/MNT /tomcat
Using CATALINA_TMPDIR:/MNT /tomcat/temp
Using JRE_HOME: /usr/ Java/JDK 1.8.0_77
Using CLASSPATH: /mnt/tomcat/bin/bootstrap.jar:/mnt/tomcat/bin/tomcat-juli.jar
Tomcat started.
But with netstat LNTP | grep 8080 will find no start tomcat, view/MNT/tomcat/logs/catalina out, an error:
Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
I feel very strange, first check the/MNT/tomcat/bin/bootstrap jar does not exist, and then use the find/-name the bootstrap. The jar can’t find it in the local. So where does that come from?
 
After looking at the post on the Internet, I realized that the source package in the official website of Tomcat was incomplete. The logs folder and some important files of bootstrap.jar were not available. The correct Tomcat should download its bin package

Write it down so you don’t waste time checking your journal!