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
![](https://programmerah.com/wp-content/uploads/2020/11/1092354-20170829151006358-63130715.png)
Write it down so you don’t waste time checking your journal!
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
![](https://programmerah.com/wp-content/uploads/2020/11/1092354-20170829151006358-63130715.png)
Write it down so you don’t waste time checking your journal!
Read More:
- Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
- Problems encountered after Maven installation or upgrade: could not find or load main class org.codehaus.plexus .class…..
- Error: Could not find or load main class ***
- The Java command could not find or load the main class
- Could not find or load main class
- tomcat Issues org.apache.catalina.LifecycleException: Failed to start component
- Error: could not find or load main class
- Idea error: unable to find or load the main class
- Java error: unable to find or load the main class
- Unable to find or load master class org.codehaus.groovy.grails.cli.support
- Caused by: org.apache.catalina.LifecycleException: A child container failed during start
- Idea startup project: main class not found or cannot be loaded
- Tomcat startup project warning: org.apache.jasper.servlet.tldscanner.scanjars at least one jar has been scanned for TLD but does not contain TLD
- org.apache.catalina.LifecycleException: Protocol handler start failed
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standar
- Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibat
- Failed to execute goal org.apache.tomcat . maven:tomcat7-maven-plugin : 2.2: run solution
- Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project
- Error: the main class usertest could not be found or loaded
- [Solved] IE Browser Upload Files Error: org.apache.tomcat.util.http.fileupload.FileUploadException: Stream ended unexpectedly