Modifying a JSP page with eclipse requires that you restart the Tomcat solution __jsp

Source: Internet
Author: User

Using Eclipse to modify a JSP page requires that you restart the Tomcat workaround:

A, the context node determines that reloadable is set to true.

Second, determine how your project is deployed in Tomcat, or to see the Server.xml file in the context node, see if the thaw is more antijarlocking= "true" and antiresourcelocking= "true" These two property configurations, if more, indicate that the project has been thermally deployed, and if this argument is true, any file locks will be organized. This will significantly affect the startup time of the application, but allows WebApps, which may occur under the locking platform and configuration, to support full thermal deployment and thermal uninstall. If not configured, the default value is false; If set to true, there are some side effects, including masking the reload of the JSP file on the running server. If set to true and deployed outside the AppBase directory of host (default is WebApps), the application will be deleted when Tomcat shuts down. The most important thing is to translate here. In fact, if false, because there is a lock, some of the code may not be updated when you redistribute it. Because the original file may not be deleted because it is locked. Of course, if false, then the deployed directory is the same as the package name. If False, it is placed under a temporary directory each time, a temp directory. This is also a side effect caused by this configuration.
Another similar configuration, antijarlocking, prevents the Jar class library from being locked and cannot be removed. So if we have antijarlocking= "true" and antiresourcelocking= "true" in the Server.xml file after the method that is automatically deployed through Eclipse, consider using a manual deployment attempt.

Related Article

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.