Did not move any configuration file, today there is a modified JSP content in the page does not reflect. is still the old page content

Source: Internet
Author: User

Phenomenon:

Did not move any configuration file, today there is a modified JSP content in the page does not reflect. is still the old page content

Problem Analysis:

Since can be used, so the system should be detected file updates, the reason is not recompiled JSP, estimated when the file date problem. Because Tomcat is judged based on the file date, the JSP file is not better than the existing translation. The Java file is new to decide whether to recompile.

After asking, yesterday changed the system time to 1 years later, used to test certain functions. It was later changed back.

The problem has been found. Because the date was adjusted yesterday and the JSP file was modified, the system records the date of the compiled file after 1 years. After the time recovery, no matter how modified, the file modification time can not be greater than one year later, so Tomcat think the current compiled files are more new, so do not compile again.

Problem solving:

Find the temporary working directory of Tomcat, which is the directory where Jsp->java->class is stored

Standard Catalog is

\tomcat\work\catalina\localhost\

Some of the integration of Tomcat using eclipse may be

Eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\catalina\localhost\

In short, to find work or Catalina subdirectory as the standard, if necessary, the overall search speed faster.

When found, the org\apache\jsp subdirectory under the project directory contains the translated. Java and. class files

Remove all content from the work\catalina\localhost\ below

Again, Tomcat regenerates the missing file, and the date is restored to the current


Did not move any configuration file, today there is a modified JSP content in the page does not reflect. is still the old page content

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.