You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/02/14 05:46:54 UTC
DO NOT REPLY [Bug 41606] New: - The jspInit method is called twice.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41606>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41606
Summary: The jspInit method is called twice.
Product: Tomcat 5
Version: 5.5.20
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: suzuki.yuichiro@jp.fujitsu.com
The problem is:
The jspInit method is called twice.
The definition is:
-The JSP background compilations are enable.
(In default web.xml, define checkInterval and define development false.)
-Define the JSP with <servlet> and <load-on-startup> tag in web.xml.
The proposing:
org/apache/jasper/compiler/Compiler.java
----
public void compile(boolean compileClass, boolean jspcMode)
throws FileNotFoundException, JasperException, Exception
{
....
if( compileClass ) {
File targetFile = new File(ctxt.getClassFileName());
if (targetFile.exists()) {
long targetLastModified = targetFile.lastModified();
if (jsw != null) {
jsw.setServletClassLastModifiedTime(targetLastModified);
}
}
}
}// last of the method.
----
Regards,
Yuichiro
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41606] - The jspInit method is called twice.
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41606>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41606
------- Additional Comments From chris@sourcelabs.com 2007-03-09 12:42 -------
Created an attachment (id=19692)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19692&action=view)
Patch to prevent double jspInit() when a JSP is set in web.xml to
load-on-startup
Confirmed in 5.5.23. I've attached a patch based on the OP's suggested fix.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org