When Tomcat starts successfully in a Linux environment, the request page appears 404

Source: Internet
Author: User

This is a lot of things, this document I encountered more wonderful situation.

The first time Tomact started successfully, access 404, disorderly tinkering somehow good, the second Tomcat started successfully, can access some links, some are reported 404, but the code and data are still previous, unchanged. Very strange!

Frequent colleagues pointing out the reasons:

Request that the Jsp,tomcat in Tomcat automatically produce the relevant JSP files in the work directory, and the Web Access is in work, not webapps. This happens because Tomcat starts with a normal user, requests several pages and then starts with root, and then requests several pages to turn Tomcat into a normal user. At this point, Tomcat has no access to the root file in the work, except for the general user's permission. So this happens.

Workaround: Empty the files in the Work/catalina. You can do it.

Here comes the portal http://bbs.51cto.com/thread-1104050-1.html written by the Great God work Directory

When Tomcat starts successfully in a Linux environment, the request page appears 404

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.