On Linux, Tomcat cannot use soft links.

Source: Internet
Author: User

Recently, I was using tomcat to develop a project. For special reasons, I cannot use the maven or web server environment that comes with IDE. Therefore, each modification requires copying the file to the production environment, however, when there are too many project files, the copy operation will be slow every time, so I thought of using the Linux soft connection method. However, after creating a soft link under my own webapp, I will never be able to access it, later found that if you need to use soft links, you need to modify some webapp settings, the specific method is to create a META-INF directory under the webapp directory, and create a context under it. XML file with the following content:

<? XML version = "1.0" encoding = "UTF-8"?> <Br/> <context Path = "/MyApp" allowlinking = "true"> <br/> </context>

 

Restart tomcat. Everything is OK.

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.