Jsp is recompiled on each access
--------------------------------
Key: GERONIMO-6295
URL: https://issues.apache.org/jira/browse/GERONIMO-6295
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: osgi, web
Affects Versions: 3.0-beta-1
Reporter: Jarek Gawor
JSPs are recompiled on each access under certain circumstances.
Jasper must be configured with development mode.
There are two problems:
1) Bug 52744 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52744) as
discovered by Forrest. This happens on file systems with time resolution of 1s
(for example ext3 on Linux).
2) If JSP (in an WAB) uses tag files provided by another (separate) bundle, the
generated Java file for the JSP will contain the following dependent
information (for example):
static {
_jspx_dependants = new
java.util.HashMap<java.lang.String,java.lang.Long>(2);
_jspx_dependants.put("bundleentry://231.fwk1401888126/META-INF/tags/sharedTest.tag",
Long.valueOf(-1L));
}
The problem is code checking the dependent timestamps in Compiler.isOutDated()
does not know how to deal with bundleentry:// urls and the code assumes the
file is outdated (and needs to be recompiled).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira