Project: Tomcat
Bug 41558 Unnecessary synchronization caused by JspFactory.getDefaultFactory while servicing JSPs
Reported: 2007-02-07 06:03:18 | Status: resolved fixed

Tomcat version: 6.0.x trunk Every generated JSP has try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html"); in its _jspService method. The use of JspFactory.getDefaultFactory during request processing should be avoided as it is a *static synchronized* method. I have a diff that addresses this and will attach it to this bug.

Files changed in fix:
java/org/apache/jasper/compiler/Generator.java java/org/apache/jasper/compiler/JspRuntimeContext.java java/org/apache/jasper/runtime/HttpJspBase.java