The welcome page does not appear after Tomcat is started.

Source: Internet
Author: User
Recently installed, the operating system of Hongqi 5.0 workstation version found that it comes with java1. JDK 5 and eclipse3. 0. 1
That is, there is no tomcat, so I want to install one.
Because of the network speed problem, a tomcat5.0.28 tool is installed on another host with Windows XP. The following is the tar package. For simple reasons, I used WinRAR in Windows to release the package, and then copied it directly to the red flag. Then, I configured the environment variable as follows:
########################
I made a link to jdk1.5.0 _ 04 In usr/Java /.
# Ln-S/usr/Java/jdk1.5.0 _ 04/usr/Java/JDK

My tomcat also made a link in the/opt/jakarta-tomcat-5.0.28
# Ln-T/opt/jakarta-tomcat-5.0.28/opt/tomcat

######################################## ####
### VI Java 1.5.0 _ 06
Java_home =/usr/Java/JDK
Export java_home

Path = $ java_home/bin: $ java_home/JRE/bin: $ path
Export path

Jre_home =/usr/Java/JDK/JRE
Export jre_home

Classpath =.: $ java_home/lib/tools. jar: $ java_home/lib/dt. jar: $ jre_home/lib
Export classpath

######################################## ##########
# V2 Tomcat 5.0.28
#/Opt/tomcat
Tomcat_home =/opt/tomcat
Export tomcat_home

Catalina_home =/opt/tomcat
Export catalina_home

Catalina_home =/opt/tomcat

Classpath = $ classpath: $ catalina_home/common/lib: $ catalina_home/comon/lib/servlet-api.jar
Export classpath

Save the configuration file and log out and restart.
In # cd/opt/tomcat/bin
#./Startup. Sh
The error message "no permission root" is displayed.
I am under root. How can I not have the permission? Then I can see that the attributes of startup. Sh do not have the execution permission,
After changing the permission, I log out and restart.
After restarting tomcat,
No welcome page in the browser Test

Check the log. No error is displayed, but the message "missing... web. xml" is displayed"

* ************************************ Solution *************************************

From the beginning, we can see that the system prompts that you do not have the permission. We changed the startup. Sh permission, but did not change the execution permission of other files. I think the problem is that I unwrapped the tomcat installation package in the window. Because it is a tar package, the permissions are lost in windows. Finally, I deleted Tomcat under the red flag and copied the package to decompress it again,
Tar xvzf/opt/tomcatfilename.tar
Relink the Tomcat link to the decompressed tomcat.
Start Tomcat and enter http: // localhost: 8080 in the browser.
The welcome page appears.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.