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